-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSettingsControl.xaml
43 lines (42 loc) · 1.56 KB
/
SettingsControl.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<UserControl
x:Class="Flow.Launcher.Plugin.Weather.SettingsControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Height="Auto"
DataContext="{Binding RelativeSource={RelativeSource Self}, Path=_settings}"
d:DesignHeight="300"
d:DesignWidth="500"
mc:Ignorable="d">
<Grid Margin="20">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0"
Grid.Column="0">Default Location (City)</TextBlock>
<TextBox
Margin="40,0,0,0"
Grid.Row="0"
Grid.Column="1"
Text="{Binding defaultLocation}"/>
<CheckBox
Grid.Row="1"
Content="Use Fahrenheit (°F)"
IsChecked="{Binding useFahrenheit}"/>
<CheckBox Grid.Row="2"
IsChecked="{Binding useGlyphs}">
<TextBlock>
<Run Text="Use Glyphs "/>
<Run Text="(requires enabling 'Use Segoe Fluent Icons' in 'Appearance')"
FontSize="12"/>
</TextBlock>
</CheckBox>
</Grid>
</UserControl>