|
8 | 8 | xmlns:helpers="using:Files.App.Helpers"
|
9 | 9 | xmlns:local="using:Files.App.UserControls.Settings"
|
10 | 10 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
| 11 | + xmlns:uc="using:Files.App.UserControls" |
11 | 12 | xmlns:vm="using:Files.App.ViewModels.Settings"
|
12 | 13 | mc:Ignorable="d">
|
13 | 14 |
|
|
65 | 66 | <FontIcon Glyph="" />
|
66 | 67 | </local:SettingsBlockControl.Icon>
|
67 | 68 |
|
68 |
| - <ComboBox AutomationProperties.Name="{helpers:ResourceString Name=LayoutType}" SelectedIndex="{x:Bind ViewModel.SelectedDefaultLayoutModeIndex, Mode=TwoWay}"> |
| 69 | + <uc:ComboBoxEx AutomationProperties.Name="{helpers:ResourceString Name=LayoutType}" SelectedIndex="{x:Bind ViewModel.SelectedDefaultLayoutModeIndex, Mode=TwoWay}"> |
69 | 70 | <ComboBoxItem Content="{helpers:ResourceString Name=Details}" />
|
70 | 71 | <ComboBoxItem Content="{helpers:ResourceString Name=List}" />
|
71 | 72 | <ComboBoxItem Content="{helpers:ResourceString Name=Tiles}" />
|
72 | 73 | <ComboBoxItem Content="{helpers:ResourceString Name=Columns}" />
|
73 | 74 | <ComboBoxItem Content="{helpers:ResourceString Name=Grid}" />
|
74 | 75 | <ComboBoxItem Content="{helpers:ResourceString Name=Adaptive}" IsEnabled="{x:Bind ViewModel.SyncFolderPreferencesAcrossDirectories, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}" />
|
75 |
| - </ComboBox> |
| 76 | + </uc:ComboBoxEx> |
76 | 77 | </local:SettingsBlockControl>
|
77 | 78 |
|
78 | 79 | <!-- Sorting & grouping -->
|
|
88 | 89 | <FontIcon Glyph="" />
|
89 | 90 | </local:SettingsBlockControl.Icon>
|
90 | 91 |
|
91 |
| - <ComboBox AutomationProperties.Name="{helpers:ResourceString Name=SortBy}" SelectedIndex="{x:Bind ViewModel.SelectedDefaultSortingIndex, Mode=TwoWay}"> |
| 92 | + <uc:ComboBoxEx AutomationProperties.Name="{helpers:ResourceString Name=SortBy}" SelectedIndex="{x:Bind ViewModel.SelectedDefaultSortingIndex, Mode=TwoWay}"> |
92 | 93 | <ComboBoxItem Content="{helpers:ResourceString Name=Name}" />
|
93 | 94 | <ComboBoxItem Content="{helpers:ResourceString Name=DateModifiedLowerCase}" />
|
94 | 95 | <ComboBoxItem Content="{helpers:ResourceString Name=DateCreated}" />
|
95 | 96 | <ComboBoxItem Content="{helpers:ResourceString Name=Size}" />
|
96 | 97 | <ComboBoxItem Content="{helpers:ResourceString Name=Type}" />
|
97 | 98 | <ComboBoxItem Content="{helpers:ResourceString Name=Tag}" />
|
98 |
| - </ComboBox> |
| 99 | + </uc:ComboBoxEx> |
99 | 100 | <local:SettingsBlockControl.ExpandableContent>
|
100 | 101 | <StackPanel>
|
101 | 102 | <!-- Sort in Descending order -->
|
|
108 | 109 |
|
109 | 110 | <!-- Sort Priority -->
|
110 | 111 | <local:SettingsBlockControl Title="{helpers:ResourceString Name=SortPriority}" HorizontalAlignment="Stretch">
|
111 |
| - <ComboBox AutomationProperties.Name="{helpers:ResourceString Name=SortPriority}" SelectedIndex="{x:Bind ViewModel.SelectedDefaultSortPriorityIndex, Mode=TwoWay}"> |
| 112 | + <uc:ComboBoxEx AutomationProperties.Name="{helpers:ResourceString Name=SortPriority}" SelectedIndex="{x:Bind ViewModel.SelectedDefaultSortPriorityIndex, Mode=TwoWay}"> |
112 | 113 | <ComboBoxItem Content="{helpers:ResourceString Name=SortFoldersFirst}" />
|
113 | 114 | <ComboBoxItem Content="{helpers:ResourceString Name=SortFilesFirst}" />
|
114 | 115 | <ComboBoxItem Content="{helpers:ResourceString Name=SortFilesAndFoldersTogether}" />
|
115 |
| - </ComboBox> |
| 116 | + </uc:ComboBoxEx> |
116 | 117 | </local:SettingsBlockControl>
|
117 | 118 | </StackPanel>
|
118 | 119 | </local:SettingsBlockControl.ExpandableContent>
|
|
124 | 125 | <FontIcon Glyph="" />
|
125 | 126 | </local:SettingsBlockControl.Icon>
|
126 | 127 |
|
127 |
| - <ComboBox AutomationProperties.Name="{helpers:ResourceString Name=GroupBy}" SelectedIndex="{x:Bind ViewModel.SelectedDefaultGroupingIndex, Mode=TwoWay}"> |
| 128 | + <uc:ComboBoxEx AutomationProperties.Name="{helpers:ResourceString Name=GroupBy}" SelectedIndex="{x:Bind ViewModel.SelectedDefaultGroupingIndex, Mode=TwoWay}"> |
128 | 129 | <ComboBoxItem Content="{helpers:ResourceString Name=None}" />
|
129 | 130 | <ComboBoxItem Content="{helpers:ResourceString Name=Name}" />
|
130 | 131 | <ComboBoxItem Content="{helpers:ResourceString Name=DateModifiedLowerCase}" />
|
131 | 132 | <ComboBoxItem Content="{helpers:ResourceString Name=DateCreated}" />
|
132 | 133 | <ComboBoxItem Content="{helpers:ResourceString Name=Size}" />
|
133 | 134 | <ComboBoxItem Content="{helpers:ResourceString Name=Type}" />
|
134 | 135 | <ComboBoxItem Content="{helpers:ResourceString Name=Tag}" />
|
135 |
| - </ComboBox> |
| 136 | + </uc:ComboBoxEx> |
136 | 137 | <local:SettingsBlockControl.ExpandableContent>
|
137 | 138 | <StackPanel>
|
138 | 139 | <!-- Group in Descending order -->
|
|
146 | 147 |
|
147 | 148 | <!-- Group by date unit -->
|
148 | 149 | <local:SettingsBlockControl Title="{helpers:ResourceString Name=GroupByDateUnit}" HorizontalAlignment="Stretch">
|
149 |
| - <ComboBox |
| 150 | + <uc:ComboBoxEx |
150 | 151 | AutomationProperties.Name="{helpers:ResourceString Name=GroupByDateUnit}"
|
151 | 152 | IsEnabled="{x:Bind ViewModel.IsGroupByDate, Mode=OneWay}"
|
152 | 153 | SelectedIndex="{x:Bind ViewModel.SelectedDefaultGroupByDateUnitIndex, Mode=TwoWay}">
|
153 | 154 | <ComboBoxItem Content="{helpers:ResourceString Name=Year}" />
|
154 | 155 | <ComboBoxItem Content="{helpers:ResourceString Name=Month}" />
|
155 | 156 | <ComboBoxItem Content="{helpers:ResourceString Name=Day}" />
|
156 |
| - </ComboBox> |
| 157 | + </uc:ComboBoxEx> |
157 | 158 | </local:SettingsBlockControl>
|
158 | 159 | </StackPanel>
|
159 | 160 | </local:SettingsBlockControl.ExpandableContent>
|
|
0 commit comments