Hi all,
I currently have a problem with applying Style for TextBlock when TextBlock is in RadDocking control. I have a simple example below.
- The app will use Windows8Theme
The TextBlock is set with FontWeight Bold.
In the designer it was correctly displayed
http://i.imgur.com/dRAuixu.png
But in runtime it was not
http://i.imgur.com/F1Cchw1.png
I think that setting ApplicationTheme in App() has overwritten the Style of TextBlock.
Question: What should I do to keep FontWeight of TextBlock from overwriting by StyleManager?
I currently have a problem with applying Style for TextBlock when TextBlock is in RadDocking control. I have a simple example below.
- The app will use Windows8Theme
public
App()
{
StyleManager.ApplicationTheme =
new
Windows8Theme();
}
The TextBlock is set with FontWeight Bold.
<
telerik:RadDocking
Grid.Row
=
"1"
HasDocumentHost
=
"False"
>
<
telerik:RadSplitContainer
Orientation
=
"Horizontal"
>
<
telerik:RadPaneGroup
telerik:ProportionalStackPanel.RelativeSize
=
"200, 200"
>
<
telerik:RadPane
PaneHeaderVisibility
=
"Collapsed"
>
<
Grid
>
<
TextBlock
FontWeight
=
"Bold"
Margin
=
"50"
Foreground
=
"Green"
Text
=
"HIHI"
/>
</
Grid
>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking
>
In the designer it was correctly displayed
http://i.imgur.com/dRAuixu.png
But in runtime it was not
http://i.imgur.com/F1Cchw1.png
I think that setting ApplicationTheme in App() has overwritten the Style of TextBlock.
Question: What should I do to keep FontWeight of TextBlock from overwriting by StyleManager?