Is there a way to pop a usercontrol/control let say a Grid,ViewBox or custom control from a WPF application to fullscreen or to a modal window? And put it back to it’s orginal place when you press esc.
A Scenario could be that you have a WPF application consisting of a grid with two columns. Where the first shows a image preview and the second one shows list of images. When you double click the image preview it pops to fullscreen or as a modal dialog.
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Image Content="Left" Grid.Column="0" />
<GridSplitter HorizontalAlignment="Right"
VerticalAlignment="Stretch"
Grid.Column="1" Width="5">
<ListBox Content="Right" Grid.Column="2" />
</Grid>
I have scouted the www for a answer without any success.
Any Ideas or examples or links would be appreciated.
You cannot cover full screen as explained by MSDN here. Maximum a pop up dialog can cover 75% of the full screen