When this project is loaded in debug mode the RadButton is not visible, however if I Comment out the code for the button during debug, save it, uncomment the code and save again - T
he button becomes visible...
<
Window
x:Class
=
"ButtonsDisappear.MainWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
Title
=
"MainWindow"
Height
=
"600"
Width
=
"800"
WindowState
=
"Maximized"
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"35"
/>
<
RowDefinition
Height
=
"*"
/>
<
RowDefinition
Height
=
"35"
/>
</
Grid.RowDefinitions
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"*"
/>
</
Grid.ColumnDefinitions
>
<
Grid
Grid.Row
=
"2"
Grid.Column
=
"0"
>
<
Grid.RowDefinitions
>
<
RowDefinition
x:Name
=
"gridRow2"
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
x:Name
=
"gridColumn0"
Width
=
"*"
/>
<
ColumnDefinition
x:Name
=
"gridColumn1"
Width
=
"*"
/>
</
Grid.ColumnDefinitions
>
<
telerik:RadButton
Grid.Row
=
"0"
Grid.Column
=
"0"
x:Name
=
"radButton"
Content
=
"Test Button"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
Width
=
"{Binding ElementName=gridColumn0, Path=ActualWidth}"
Height
=
"{Binding ElementName=gridRow2, Path=ActualHeight}"
Click
=
"radButton_Click"
/>
</
Grid
>
</
Grid
>
</
Window
>
using
System.Windows;
using
Telerik.Windows.Controls;
namespace
ButtonsDisappear
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public
partial
class
MainWindow : Window
{
public
MainWindow()
{
InitializeComponent();
}
private
void
radButton_Click(
object
sender, RoutedEventArgs e)
{
RadButton b = (RadButton)sender;
}
}
}