This question is locked. New answers and comments are not allowed.
Hello,
here is a sample Silverlight page that shows the problem.
To use it, just create a new Silverlight application and replace Page.xaml with the following code:
As you can see in the designer, and running the application, the fourth button has no content!
Normally, each button should show its content, which is defined properly.
This bug is very annoying because I can't define buttons with complex content with a style.
Do you have a workaround, excepted defining each button manually?
Patrick
here is a sample Silverlight page that shows the problem.
To use it, just create a new Silverlight application and replace Page.xaml with the following code:
<?xml version='1.0' encoding='utf-8' ?><UserControl x:Class="SilverlightApplication1.MainPage" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400"> <StackPanel> <StackPanel.Resources> <Style x:Key="Button3" TargetType="tk:RadButton"> <Setter Property="Content" Value="Button 3" /> </Style> <Style x:Key="Button4" TargetType="tk:RadButton"> <Setter Property="Content"> <Setter.Value> <TextBlock Text="Button 4" /> </Setter.Value> </Setter> </Style> </StackPanel.Resources> <tk:RadButton Content="Button 1" /> <tk:RadButton> <tk:RadButton.Content> <TextBlock Text="Button 2" /> </tk:RadButton.Content> </tk:RadButton> <tk:RadButton Style="{StaticResource Button3}" /> <tk:RadButton Style="{StaticResource Button4}" /> </StackPanel></UserControl>As you can see in the designer, and running the application, the fourth button has no content!
Normally, each button should show its content, which is defined properly.
This bug is very annoying because I can't define buttons with complex content with a style.
Do you have a workaround, excepted defining each button manually?
Patrick
