|
5 | 5 | xmlns:vm="clr-namespace:FileHider.ViewModels" |
6 | 6 | mc:Ignorable="d" |
7 | 7 | x:Class="FileHider.Views.MainView" |
8 | | - x:DataType="vm:MainViewModel"> |
| 8 | + x:DataType="vm:MainViewModel" |
| 9 | + Design.Width="800" |
| 10 | + Design.Height="500"> |
9 | 11 | <Design.DataContext> |
10 | 12 | <vm:MainViewModel /> |
11 | 13 | </Design.DataContext> |
|
27 | 29 | <TextBox Grid.Column="1" Height="24" Text="{Binding InputFile, Mode=TwoWay}"></TextBox> |
28 | 30 | <Button Grid.Column="2" Margin="5, 0, 0, 0" Command="{Binding BrowseInputFileCommand}" HorizontalAlignment="Right">Browse</Button> |
29 | 31 | </Grid> |
30 | | - <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="0, 5"> |
31 | | - <Button Command="{Binding AddFilesCommand}" |
32 | | - Margin="5, 0">Add files</Button> |
33 | | - <Button Command="{Binding AddDirCommand}" |
34 | | - Margin="5, 0">Add folder</Button> |
35 | | - <Button Command="{Binding RemoveCommand}" |
36 | | - Margin="5, 0">Remove</Button> |
37 | | - <Button Command="{Binding RemoveAllCommand}" |
38 | | - Margin="5, 0">Remove All</Button> |
39 | | - <Button Command="{Binding BackCommand}" |
40 | | - HorizontalAlignment="Right" |
41 | | - Margin="5, 0">Back</Button> |
42 | | - <Button Name="HideFilesBtn" |
43 | | - Command="{Binding HideFilesCommand}" |
44 | | - HorizontalAlignment="Right" |
45 | | - Margin="5, 0">Hide Files</Button> |
46 | | - </StackPanel> |
| 32 | + <Grid Grid.Row="1"> |
| 33 | + <Grid.ColumnDefinitions> |
| 34 | + <ColumnDefinition/> |
| 35 | + <ColumnDefinition/> |
| 36 | + </Grid.ColumnDefinitions> |
| 37 | + <StackPanel Grid.Column="0" Orientation="Horizontal" Margin="0, 5"> |
| 38 | + <Button Command="{Binding AddFilesCommand}" |
| 39 | + Margin="5, 0">Add files</Button> |
| 40 | + <Button Command="{Binding AddDirCommand}" |
| 41 | + Margin="5, 0">Add folder</Button> |
| 42 | + <Button Command="{Binding RemoveCommand}" |
| 43 | + Margin="5, 0">Remove</Button> |
| 44 | + <Button Command="{Binding RemoveAllCommand}" |
| 45 | + Margin="5, 0">Remove All</Button> |
| 46 | + <Button Command="{Binding BackCommand}" |
| 47 | + Margin="5, 0">Back</Button> |
| 48 | + </StackPanel> |
| 49 | + <StackPanel Grid.Column="1" Orientation="Horizontal" FlowDirection="RightToLeft"> |
| 50 | + <Button Command="{Binding HideFilesCommand}" |
| 51 | + Margin="5, 0">Hide Files</Button> |
| 52 | + </StackPanel> |
| 53 | + </Grid> |
47 | 54 |
|
48 | 55 | <ProgressBar Grid.Row="2" |
49 | 56 | Margin="5" |
|
0 commit comments