|
15 | 15 |
|
16 | 16 | <!--Main Menu--> |
17 | 17 | <Grid DockPanel.Dock="Top" WindowChrome.IsHitTestVisibleInChrome="True"> |
18 | | - <UniformGrid Columns="6" Height="30" Margin="2"> |
19 | 18 |
|
20 | | - <!--Logo--> |
21 | | - <Grid IsHitTestVisible="False"> |
22 | | - <Image Source="{StaticResource ImageTensorstackText}" Height="32" HorizontalAlignment="Left" Margin="4,2,20,0" /> |
23 | | - </Grid> |
| 19 | + <Grid.ColumnDefinitions> |
| 20 | + <ColumnDefinition Width="200" /> |
| 21 | + <ColumnDefinition Width="*" /> |
| 22 | + <ColumnDefinition Width="200" /> |
| 23 | + </Grid.ColumnDefinitions> |
| 24 | + |
| 25 | + <!--Logo--> |
| 26 | + <Grid Grid.Column="0" IsHitTestVisible="False"> |
| 27 | + <Image Source="{StaticResource ImageTensorstackText}" Height="32" HorizontalAlignment="Left" Margin="4,2,20,0" /> |
| 28 | + </Grid> |
| 29 | + |
| 30 | + |
| 31 | + <UniformGrid Grid.Column="1" Columns="2" Height="30" Margin="2"> |
24 | 32 |
|
25 | 33 | <!--Views--> |
26 | 34 | <Button Command="{Binding NavigateCommand}" CommandParameter="{x:Static Views:View.ImageExtractor}" Content="Image Extractor" /> |
27 | | - <Button Command="{Binding NavigateCommand}" CommandParameter="{x:Static Views:View.ImageBackground}" Content="Image Background" /> |
28 | 35 | <Button Command="{Binding NavigateCommand}" CommandParameter="{x:Static Views:View.VideoExtractor}" Content="Video Extractor" /> |
29 | | - <Button Command="{Binding NavigateCommand}" CommandParameter="{x:Static Views:View.VideoBackground}" Content="Video Background" /> |
30 | 36 |
|
31 | | - <!--Window Options--> |
32 | | - <StackPanel Orientation="Horizontal" HorizontalAlignment="Right"> |
33 | | - <UniformGrid Columns="3" > |
34 | | - <Button Command="{Binding MinimizeCommand}" Padding="10,1" > |
35 | | - <CommonControls:FontAwesome Icon="" /> |
| 37 | + </UniformGrid> |
| 38 | + |
| 39 | + <!--Window Options--> |
| 40 | + <StackPanel Grid.Column="2" Orientation="Horizontal" HorizontalAlignment="Right"> |
| 41 | + <UniformGrid Columns="3" > |
| 42 | + <Button Command="{Binding MinimizeCommand}" Padding="10,1" > |
| 43 | + <CommonControls:FontAwesome Icon="" /> |
| 44 | + </Button> |
| 45 | + <Grid> |
| 46 | + <Button Command="{Binding RestoreCommand}" Padding="10,1" Visibility="{Binding WindowState, Converter={StaticResource EnumToVisibilityConverter}, ConverterParameter=Maximized}"> |
| 47 | + <CommonControls:FontAwesome Icon="" /> |
36 | 48 | </Button> |
37 | | - <Grid> |
38 | | - <Button Command="{Binding RestoreCommand}" Padding="10,1" Visibility="{Binding WindowState, Converter={StaticResource EnumToVisibilityConverter}, ConverterParameter=Maximized}"> |
39 | | - <CommonControls:FontAwesome Icon="" /> |
40 | | - </Button> |
41 | | - <Button Command="{Binding MaximizeCommand}" Padding="10,1" Visibility="{Binding WindowState, Converter={StaticResource InverseEnumToVisibilityConverter}, ConverterParameter=Maximized}"> |
42 | | - <CommonControls:FontAwesome Icon="" /> |
43 | | - </Button> |
44 | | - </Grid> |
45 | | - <Button x:Name="CloseButton" Command="{Binding CloseCommand}" Padding="12,0" > |
46 | | - <CommonControls:FontAwesome Icon="" /> |
| 49 | + <Button Command="{Binding MaximizeCommand}" Padding="10,1" Visibility="{Binding WindowState, Converter={StaticResource InverseEnumToVisibilityConverter}, ConverterParameter=Maximized}"> |
| 50 | + <CommonControls:FontAwesome Icon="" /> |
47 | 51 | </Button> |
48 | | - </UniformGrid> |
49 | | - </StackPanel> |
50 | | - |
51 | | - </UniformGrid> |
| 52 | + </Grid> |
| 53 | + <Button x:Name="CloseButton" Command="{Binding CloseCommand}" Padding="12,0" > |
| 54 | + <CommonControls:FontAwesome Icon="" /> |
| 55 | + </Button> |
| 56 | + </UniformGrid> |
| 57 | + </StackPanel> |
52 | 58 | </Grid> |
53 | 59 |
|
54 | 60 | <!--View Container--> |
|
0 commit comments