Come specificare il tag BasedOn in uno stile in uno stile definito in qualche altro file.Ereditarietà stile basata su diversi XAML
Esempio,
Dictionary1.xaml definisce
<Style x:Key="basicStyle" TargetType="TextBlock" >
<Setter Property="FontSize" Value="24"></Setter>
<Setter Property="Foreground" Value="DarkGray"></Setter>
<Setter Property="FontWeight" Value="Bold"></Setter>
</Style>
In Dictionary2.xaml ho bisogno di qualcosa di simile
<Style x:Key="headerStyle" TargetType="TextBlock" >
<Setter Property="FontSize" Value="46"></Setter>
<Setter Property="Foreground" Value="DarkGray"></Setter>
<Setter Property="FontWeight" Value="Bold"></Setter>
</Style>
Come raggiungere questo obiettivo?
Stavo cercando esattamente la stessa cosa al momento userò il modo semplice e continuerò a esplorare SharedResourceDictionary. – Tilak