Is it possible to allow maximizing of a modal window?
Hi Brian!
It is not possible to maximize a modal window,
but it is possible to simulate maximized size for modal XamWebDialogWindow.
<Grid x:Name="LayoutRoot"> <ig:XamWebDialogWindow x:Name="DialogWindow2" IsModal="True" Left="50" Top="50" Width="300" Height="300"> <Grid> <Canvas Background="Bisque" > <Button TabIndex="0" Width="50" Height="20" Content="Button1" Canvas.Left="5" Canvas.Top="5" Click="Button_Click"></Button> </Canvas> </Grid></Grid>
private void Button_Click(object sender, RoutedEventArgs e){ this.DialogWindow2.Left = 0; this.DialogWindow2.Top = 0; this.DialogWindow2.Width = this.LayoutRoot.ActualWidth; this.DialogWindow2.Height = this.LayoutRoot.ActualHeight;}
I hope that can help.
Kind Regards!
Mihail
I build LOB applications in Silverlight and due to the amount of data we load our object that will be edited into a XamWebDialogWindow, but we need the window to be model, not alowing interaction until the user has completed the edit, but we need the ability to allow maximizing the XamWebDialogWindow for screen realestate. This is a very common usage scenario. Is there a way to accomplish this?