Skip to content

Commit 8ad0789

Browse files
author
Yair Aichenbaum
committed
Added a search box to settings
Made settings even more responsive
1 parent 84eb01a commit 8ad0789

File tree

4 files changed

+28
-21
lines changed

4 files changed

+28
-21
lines changed

Files/Settings.xaml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,23 @@
1212
<Grid>
1313
<muxc:NavigationView
1414
x:Name="SettingsPane"
15-
PaneTitle="Settings"
1615
Margin="0,8,0,0"
1716
IsBackButtonVisible="Collapsed"
18-
IsSettingsVisible="False"
19-
OpenPaneLength="250"
2017
IsPaneToggleButtonVisible="True"
18+
IsSettingsVisible="False"
2119
ItemInvoked="NavigationView_ItemInvoked"
22-
PaneDisplayMode="LeftCompact">
23-
<muxc:NavigationView.MenuItems>
20+
OpenPaneLength="250"
21+
PaneDisplayMode="Top"
22+
PaneTitle="Settings">
23+
<muxc:NavigationView.AutoSuggestBox>
24+
<AutoSuggestBox
25+
MinWidth="150"
26+
AutomationProperties.Name="Search"
27+
PlaceholderText="Search"
28+
QueryIcon="Find" />
29+
</muxc:NavigationView.AutoSuggestBox>
30+
31+
<muxc:NavigationView.MenuItems>
2432
<muxc:NavigationViewItem Content="Personalization" IsSelected="True">
2533
<muxc:NavigationViewItem.Icon>
2634
<FontIcon Glyph="&#xE790;" />
@@ -43,8 +51,16 @@
4351
</muxc:NavigationViewItem>
4452
</muxc:NavigationView.MenuItems>
4553
<Grid>
46-
<Rectangle x:Name="Divider" Width=".5" Opacity=".5" Fill="{ThemeResource AppBarItemForegroundThemeBrush}" HorizontalAlignment="Left" Visibility="Collapsed" VerticalAlignment="Stretch" Margin="-0,20,0,20"/>
47-
<Frame x:Name="SettingsContentFrame" Margin="1,0,0,0"/>
54+
<Rectangle
55+
x:Name="Divider"
56+
Width=".5"
57+
Margin="-0,20,0,20"
58+
HorizontalAlignment="Left"
59+
VerticalAlignment="Stretch"
60+
Fill="{ThemeResource AppBarItemForegroundThemeBrush}"
61+
Opacity=".5"
62+
Visibility="Collapsed" />
63+
<Frame x:Name="SettingsContentFrame" Margin=".5,0,0,0" />
4864
</Grid>
4965
</muxc:NavigationView>
5066
<VisualStateManager.VisualStateGroups>
@@ -56,7 +72,6 @@
5672
<VisualState.Setters>
5773
<Setter Target="SettingsPane.PaneDisplayMode" Value="Left" />
5874
<Setter Target="Divider.Visibility" Value="Visible" />
59-
<Setter Target="SettingsPane.IsPaneToggleButtonVisible" Value="False" />
6075
</VisualState.Setters>
6176
</VisualState>
6277
</VisualStateGroup>

Files/SettingsPages/About.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<Grid >
1313
<ScrollViewer >
14-
<StackPanel Margin="12,12"
14+
<StackPanel Margin="12,12,8,8"
1515
HorizontalAlignment="Stretch"
1616
VerticalAlignment="Stretch"
1717
Orientation="Vertical"

Files/SettingsPages/Personalization.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
88
mc:Ignorable="d">
99

10-
<Grid Margin="12,12">
10+
<Grid Margin="12,12,4,4">
1111

1212
<ScrollViewer HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
1313
<StackPanel Orientation="Vertical" Spacing="14">

Files/SettingsPages/Preferences.xaml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
1010
mc:Ignorable="d">
1111

12-
<Grid Margin="12,12">
12+
<Grid Margin="12,12,8,8">
1313
<ScrollViewer>
1414
<StackPanel
1515
HorizontalAlignment="Stretch"
@@ -29,12 +29,12 @@
2929
Grid.Column="0"
3030
VerticalAlignment="Center"
3131
FontSize="16"
32-
Text="Replaces common locations" />
32+
Text="Replace common locations" />
3333

3434
<ToggleSwitch
3535
x:Name="CustomLocationToggle"
3636
Grid.Column="2"
37-
Width="50"
37+
Width="40"
3838
HorizontalAlignment="Right"
3939
OffContent=""
4040
OnContent=""
@@ -67,7 +67,6 @@
6767
x:Name="DesktopL"
6868
Grid.Row="0"
6969
Grid.Column="1"
70-
Margin="0,0,8,0"
7170
HorizontalAlignment="Stretch"
7271
VerticalAlignment="Center"
7372
PlaceholderText="Set custom desktop location" />
@@ -83,7 +82,6 @@
8382
x:Name="DownloadsL"
8483
Grid.Row="1"
8584
Grid.Column="1"
86-
Margin="0,0,8,0"
8785
HorizontalAlignment="Stretch"
8886
VerticalAlignment="Center"
8987
PlaceholderText="Set custom downloads location" />
@@ -99,7 +97,6 @@
9997
x:Name="DocumentsL"
10098
Grid.Row="2"
10199
Grid.Column="1"
102-
Margin="0,0,8,0"
103100
HorizontalAlignment="Stretch"
104101
VerticalAlignment="Center"
105102
PlaceholderText="Set custom documents location" />
@@ -131,7 +128,6 @@
131128
x:Name="MusicL"
132129
Grid.Row="4"
133130
Grid.Column="1"
134-
Margin="0,0,8,0"
135131
HorizontalAlignment="Stretch"
136132
VerticalAlignment="Center"
137133
PlaceholderText="Set custom mcusic location" />
@@ -146,7 +142,6 @@
146142
x:Name="VideosL"
147143
Grid.Row="5"
148144
Grid.Column="1"
149-
Margin="0,0,8,0"
150145
HorizontalAlignment="Stretch"
151146
VerticalAlignment="Center"
152147
PlaceholderText="Set custom video location" />
@@ -162,7 +157,6 @@
162157
x:Name="OneDriveL"
163158
Grid.Row="6"
164159
Grid.Column="1"
165-
Margin="0,0,8,0"
166160
HorizontalAlignment="Stretch"
167161
VerticalAlignment="Center"
168162
PlaceholderText="Set custom OneDrive location" />
@@ -171,7 +165,6 @@
171165
x:Name="SaveCustomL"
172166
Grid.Row="7"
173167
Grid.Column="2"
174-
Margin="0,0,8,0"
175168
HorizontalAlignment="Right"
176169
Click="SaveCustomL_Click"
177170
Content="Save Locations"
@@ -195,7 +188,6 @@
195188

196189
<StackPanel
197190
Grid.Column="2"
198-
Margin="0,0,8,0"
199191
HorizontalAlignment="Right"
200192
Orientation="Horizontal">
201193
<HyperlinkButton

0 commit comments

Comments
 (0)