The attached screenshot is for my WPF app with expander controls open and closed.
Now, when I am working in Tab 'Task1' (say on hitting the 'Submit' button) I want this tab item to take the entire screenspace and all controls enclosing this (parent and ancestor tab, expander, ...) should auto-hide. In other other words I should only see the Yellow background content. When I move the mouse near the top of the screen the hidden objects should be then visible. How can I achieve this?
I already built an advanced working WPF app and therefore would prefer the minimal change possible for auto-hide.
<Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"><Grid><Grid.RowDefinitions><RowDefinition Height="Auto"></RowDefinition><RowDefinition Height="*"></RowDefinition></Grid.RowDefinitions><Expander Grid.Row="0" Header="Main"><Label>Some Main expander content</Label></Expander><TabControl Grid.Row="1"><TabItem Header="DEV"><Grid><Grid.RowDefinitions><RowDefinition Height="Auto"></RowDefinition><RowDefinition Height="*"></RowDefinition></Grid.RowDefinitions><Expander Grid.Row="0" Header="Env"><Label>Some Env expander content</Label></Expander><TabControl Grid.Row="1"><TabItem Header="Task1"><Grid Background="Yellow"><Grid.RowDefinitions><RowDefinition Height="Auto"></RowDefinition><RowDefinition Height="*"></RowDefinition></Grid.RowDefinitions><Button HorizontalAlignment="Left">Submit</Button></Grid></TabItem><TabItem Header="Task2"></TabItem><TabItem Header="Task3"></TabItem></TabControl></Grid></TabItem><TabItem Header="UAT"></TabItem><TabItem Header="PRD"></TabItem></TabControl></Grid></Window>
Thanks,
-srinivas y.
sri