|
14 | 14 |
|
15 | 15 | <Page.Resources> |
16 | 16 | <ResourceDictionary> |
17 | | - <ResourceDictionary.MergedDictionaries> |
18 | | - <ResourceDictionary Source="/Styles/ToggleSwitchStyles.xaml" /> |
19 | | - </ResourceDictionary.MergedDictionaries> |
20 | | - |
21 | 17 | <converters:BoolNegationConverter x:Key="BoolNegationConverter" /> |
22 | 18 | </ResourceDictionary> |
23 | 19 | </Page.Resources> |
|
98 | 94 | <ToggleSwitch |
99 | 95 | AutomationProperties.Name="{helpers:ResourceString Name=SettingsOpenInLogin}" |
100 | 96 | IsEnabled="{x:Bind ViewModel.CanOpenOnWindowsStartup, Mode=OneWay}" |
101 | | - IsOn="{x:Bind ViewModel.OpenOnWindowsStartup, Mode=TwoWay}" |
102 | | - Style="{StaticResource RightAlignedToggleSwitchStyle}"> |
| 97 | + IsOn="{x:Bind ViewModel.OpenOnWindowsStartup, Mode=TwoWay}"> |
103 | 98 | <i:Interaction.Behaviors> |
104 | 99 | <i:EventTriggerBehavior EventName="Toggled"> |
105 | 100 | <i:InvokeCommandAction Command="{x:Bind ViewModel.OpenFilesOnWindowsStartupCommand, Mode=OneWay}" /> |
|
114 | 109 | <wctcontrols:SettingsCard.HeaderIcon> |
115 | 110 | <FontIcon Glyph="" /> |
116 | 111 | </wctcontrols:SettingsCard.HeaderIcon> |
117 | | - <ToggleSwitch |
118 | | - AutomationProperties.Name="{helpers:ResourceString Name=SettingsLeaveAppRunning}" |
119 | | - IsOn="{x:Bind ViewModel.LeaveAppRunning, Mode=TwoWay}" |
120 | | - Style="{StaticResource RightAlignedToggleSwitchStyle}" /> |
| 112 | + <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=SettingsLeaveAppRunning}" IsOn="{x:Bind ViewModel.LeaveAppRunning, Mode=TwoWay}" /> |
121 | 113 | </wctcontrols:SettingsCard> |
122 | 114 |
|
123 | 115 | <!-- System Tray Icon --> |
124 | 116 | <wctcontrols:SettingsCard HorizontalAlignment="Stretch" Header="{helpers:ResourceString Name=ShowSystemTrayIcon}"> |
125 | 117 | <wctcontrols:SettingsCard.HeaderIcon> |
126 | 118 | <FontIcon Glyph="" /> |
127 | 119 | </wctcontrols:SettingsCard.HeaderIcon> |
128 | | - <ToggleSwitch |
129 | | - AutomationProperties.Name="{helpers:ResourceString Name=ShowSystemTrayIcon}" |
130 | | - IsOn="{x:Bind ViewModel.ShowSystemTrayIcon, Mode=TwoWay}" |
131 | | - Style="{StaticResource RightAlignedToggleSwitchStyle}" /> |
| 120 | + <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=ShowSystemTrayIcon}" IsOn="{x:Bind ViewModel.ShowSystemTrayIcon, Mode=TwoWay}" /> |
132 | 121 | </wctcontrols:SettingsCard> |
133 | 122 |
|
134 | 123 | <!-- Experimental Settings --> |
|
147 | 136 | <wctcontrols:SettingsCard.HeaderIcon> |
148 | 137 | <FontIcon Glyph="" /> |
149 | 138 | </wctcontrols:SettingsCard.HeaderIcon> |
150 | | - <ToggleSwitch |
151 | | - AutomationProperties.Name="{helpers:ResourceString Name=SettingsSetAsDefaultFileManager}" |
152 | | - IsOn="{x:Bind ViewModel.IsSetAsDefaultFileManager, Mode=TwoWay}" |
153 | | - Style="{StaticResource RightAlignedToggleSwitchStyle}"> |
| 139 | + <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=SettingsSetAsDefaultFileManager}" IsOn="{x:Bind ViewModel.IsSetAsDefaultFileManager, Mode=TwoWay}"> |
154 | 140 | <i:Interaction.Behaviors> |
155 | 141 | <i:EventTriggerBehavior EventName="Toggled"> |
156 | 142 | <i:InvokeCommandAction Command="{x:Bind ViewModel.SetAsDefaultExplorerCommand, Mode=OneWay}" /> |
|
168 | 154 | <wctcontrols:SettingsCard.HeaderIcon> |
169 | 155 | <FontIcon Glyph="" /> |
170 | 156 | </wctcontrols:SettingsCard.HeaderIcon> |
171 | | - <ToggleSwitch |
172 | | - IsEnabled="{x:Bind ViewModel.IsSetAsDefaultFileManager, Mode=OneWay}" |
173 | | - IsOn="{x:Bind ViewModel.IsSetAsOpenFileDialog, Mode=TwoWay}" |
174 | | - Style="{StaticResource RightAlignedToggleSwitchStyle}"> |
| 157 | + <ToggleSwitch IsEnabled="{x:Bind ViewModel.IsSetAsDefaultFileManager, Mode=OneWay}" IsOn="{x:Bind ViewModel.IsSetAsOpenFileDialog, Mode=TwoWay}"> |
175 | 158 | <i:Interaction.Behaviors> |
176 | 159 | <i:EventTriggerBehavior EventName="Toggled"> |
177 | 160 | <i:InvokeCommandAction Command="{x:Bind ViewModel.SetAsOpenFileDialogCommand, Mode=OneWay}" /> |
|
188 | 171 | <wctcontrols:SettingsCard.HeaderIcon> |
189 | 172 | <FontIcon Glyph="" /> |
190 | 173 | </wctcontrols:SettingsCard.HeaderIcon> |
191 | | - <ToggleSwitch |
192 | | - AutomationProperties.Name="{helpers:ResourceString Name=ShowFlattenOptions}" |
193 | | - IsOn="{x:Bind ViewModel.ShowFlattenOptions, Mode=TwoWay}" |
194 | | - Style="{StaticResource RightAlignedToggleSwitchStyle}" /> |
| 174 | + <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=ShowFlattenOptions}" IsOn="{x:Bind ViewModel.ShowFlattenOptions, Mode=TwoWay}" /> |
195 | 175 | </wctcontrols:SettingsCard> |
196 | 176 | </StackPanel> |
197 | 177 | </Grid> |
|
0 commit comments