Skip to content

Commit 89f5d33

Browse files
Move Hide button to right
1 parent 422b76c commit 89f5d33

File tree

1 file changed

+25
-18
lines changed

1 file changed

+25
-18
lines changed

FileHider/Views/MainView.axaml

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
xmlns:vm="clr-namespace:FileHider.ViewModels"
66
mc:Ignorable="d"
77
x:Class="FileHider.Views.MainView"
8-
x:DataType="vm:MainViewModel">
8+
x:DataType="vm:MainViewModel"
9+
Design.Width="800"
10+
Design.Height="500">
911
<Design.DataContext>
1012
<vm:MainViewModel />
1113
</Design.DataContext>
@@ -27,23 +29,28 @@
2729
<TextBox Grid.Column="1" Height="24" Text="{Binding InputFile, Mode=TwoWay}"></TextBox>
2830
<Button Grid.Column="2" Margin="5, 0, 0, 0" Command="{Binding BrowseInputFileCommand}" HorizontalAlignment="Right">Browse</Button>
2931
</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>
4754

4855
<ProgressBar Grid.Row="2"
4956
Margin="5"

0 commit comments

Comments
 (0)