WPF - XBAP style deployment
Version 2009.2.701.35
I'm trying to use the RadWindow to create a dynamic modal dialog from the code behind.
I'm creating the RadWinow as such:
var window = new RadWindow
{
WindowStartupLocation =
WindowStartupLocation.CenterOwner,
CanClose =
true,
CanMove =
true,
ResizeMode =
ResizeMode.NoResize,
Content =
new UnhandledError(),
Height = 300,
Width = 500
};
window.ShowDialog();
The problem is that the UserControl doesn't get displayed at all in the content.
The UserControl is pure XAML as:
<
UserControl x:Class="PCSWeb.WPFShell.Views.UnhandledError"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Height="300" Width="300" Name="window" Loaded="window_Loaded" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<Grid Background="AliceBlue" Height="Auto" Width="Auto">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Border Grid.Row="0" BorderBrush="#feca00" CornerRadius="0,10,20,40"
BorderThickness="2" Height="Auto">
<StackPanel>
<TextBlock Text="Error">adafdfasdf</TextBlock>
</StackPanel>
</Border>
</Grid>
</
UserControl>