Hello,
My RadWindow is defined as follow in XAML:
To open my RadWindow, I use the following code:
When I debug this, I see that the loaded event of usrCtrlSearchUserInAD gets called twice.
This only happens when the Radwindow is created the first time. When I close the RadWindow and open it again and press the open window button, the loaded event only gets called once.
Any help :)
Thanks,
Nicolas
My RadWindow is defined as follow in XAML:
<telerik:RadWindow Width="800" Height="500" x:Name="window" PinMode="NoPin" ResizeMode="NoResize" Header="Search User in AD" LeftOffset="-150" TopOffset="-50" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> |
<ADTool:SearchUserInAD x:Name="usrCtrlSearchUserInAD" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" /> |
</telerik:RadWindow> |
To open my RadWindow, I use the following code:
void btnChangeManager_Click(object sender, RoutedEventArgs e) |
{ |
window.WindowAnimation = Telerik.Windows.Controls.WindowAnimation.OnShow; |
//usrCtrlSearchUserInAD.DataContext = (ADUserData)grdResults.SelectedItem; |
usrCtrlSearchUserInAD.Width = window.Width; |
usrCtrlSearchUserInAD.Height = window.Height; |
window.ShowDialog(); |
} |
When I debug this, I see that the loaded event of usrCtrlSearchUserInAD gets called twice.
This only happens when the Radwindow is created the first time. When I close the RadWindow and open it again and press the open window button, the loaded event only gets called once.
Any help :)
Thanks,
Nicolas