I have two user controls that contain the radwindow
<UserControl xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" x:Class="MyApplication.MyForm" |
xmlns="http://schemas.microsoft.com/client/2007" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
xmlns:extp="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls" |
xmlns:ext="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" |
Width="Auto" Height="Auto"> |
<Grid x:Name="LayoutRoot" Width="Auto" Height="Auto"> |
<telerikNavigation:RadWindow x:Name="form" WindowStartupLocation="CenterScreen" IconTemplate="{x:Null}" ResizeMode="CanMaximize"> |
<Grid Height="Auto" Width="Auto" Margin="2,2,2,2"> |
<Grid.RowDefinitions> |
<RowDefinition Height="0.918*"/> |
<RowDefinition Height="0.082*"/> |
</Grid.RowDefinitions> |
<Button x:Name="cancelButton1" HorizontalAlignment="Right" Grid.Row="1" Height="25" Width="70" /> |
<Button x:Name="okButton" Width="70" Grid.Row="1" Height="25"\> |
<Grid x:Name="content" Margin="0,0,0,0"> |
</Grid> |
</Grid> |
</telerikNavigation:RadWindow> |
</Grid> |
<UserControl xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" x:Class="MyApplication.MyDialog" |
xmlns="http://schemas.microsoft.com/client/2007" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
xmlns:extp="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls" |
xmlns:ext="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" |
Width="Auto" Height="Auto"> |
<Grid x:Name="LayoutRoot" Width="Auto" Height="Auto"> |
<telerikNavigation:RadWindow x:Name="dialog" WindowStartupLocation="CenterScreen" IconTemplate="{x:Null}" ResizeMode="CanMaximize"> |
<Grid Height="Auto" Width="Auto" Margin="2,2,2,2"> |
<Grid.RowDefinitions> |
<RowDefinition Height="0.918*"/> |
<RowDefinition Height="0.082*"/> |
</Grid.RowDefinitions> |
<Button x:Name="cancelButton1" HorizontalAlignment="Right" Grid.Row="1" Height="25" Width="70" /> |
<Button x:Name="okButton" Width="70" Grid.Row="1" Height="25"\> |
<TextBlock x:Name="message" Margin="0,0,0,0"> |
</TextBlock> |
</Grid> |
</telerikNavigation:RadWindow> |
</Grid> |
when the two windows need to be displayed, I get the exception: "Value does not fall within the expected range".
I got the expected because they contain elements with the same name.
when only one RadWindow is displayed, I do not receive an exception.
why is it impossible to define 2 diferrent classes (user control) that contains a RadWindow control with same name?
Thanks
Toiby