1+ <UserControl x : Class =" SimpleDnsCrypt.Views.FallbackResolversView"
2+ xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+ xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
4+ xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
5+ xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
6+ xmlns : lex =" http://wpflocalizeextension.codeplex.com"
7+ xmlns : converters =" clr-namespace:SimpleDnsCrypt.Converters"
8+ xmlns : cal =" http://www.caliburnproject.org"
9+ xmlns : iconPacks =" http://metro.mahapps.com/winfx/xaml/iconpacks"
10+ xmlns : mah =" http://metro.mahapps.com/winfx/xaml/controls"
11+ mc : Ignorable =" d"
12+ Height =" Auto" Width =" 250"
13+ lex:LocalizeDictionary.DesignCulture=" en"
14+ lex:ResxLocalizationProvider.DefaultAssembly=" SimpleDnsCrypt"
15+ lex:ResxLocalizationProvider.DefaultDictionary=" Translation" >
16+ <Grid Background =" #198AB328" >
17+ <Border BorderThickness =" 1" Grid.Row=" 0" Grid.Column=" 0" Background =" #198AB328" Margin =" 10"
18+ Padding =" 10" >
19+ <Border .BorderBrush>
20+ <DrawingBrush Viewport =" 0,0,8,8" ViewportUnits =" Absolute" TileMode =" Tile" Opacity =" 0.4" >
21+ <DrawingBrush .Drawing>
22+ <DrawingGroup >
23+ <GeometryDrawing Brush =" #FF8ab329" >
24+ <GeometryDrawing .Geometry>
25+ <GeometryGroup >
26+ <RectangleGeometry Rect =" 0,0,50,50" />
27+ <RectangleGeometry Rect =" 50,50,50,50" />
28+ </GeometryGroup >
29+ </GeometryDrawing .Geometry>
30+ </GeometryDrawing >
31+ </DrawingGroup >
32+ </DrawingBrush .Drawing>
33+ </DrawingBrush >
34+ </Border .BorderBrush>
35+ <StackPanel Orientation =" Vertical" >
36+ <StackPanel Orientation =" Horizontal" >
37+ <iconPacks : PackIconMaterial Height =" 20"
38+ Width =" 20" Kind =" Ethernet" Opacity =" 0.7"
39+ Foreground =" #FF8ab329"
40+ HorizontalAlignment =" Left"
41+ VerticalAlignment =" Center" />
42+ <TextBlock Text =" {lex:Loc Key=fallback_resolver_settings_addresses}"
43+ TextWrapping =" Wrap" VerticalAlignment =" Center"
44+ Foreground =" #FF8ab329" FontSize =" 20"
45+ Opacity =" 0.7" Margin =" 5,0,0,3" FontWeight =" Bold" >
46+ </TextBlock >
47+ </StackPanel >
48+ <StackPanel Orientation =" Vertical" >
49+ <ListBox ItemsSource =" {Binding FallbackResolvers}" SelectionMode =" Single" SelectedItem =" {Binding SelectedFallbackResolver}" />
50+ <TextBox Margin =" 0,5,0,0" mah:TextBoxHelper.Watermark=" 9.9.9.9:53" Text =" {Binding AddressInput}" ></TextBox >
51+ </StackPanel >
52+ <StackPanel Orientation =" Horizontal" Margin =" 0,5,0,0" >
53+ <Button x : Name =" AddAddress"
54+ cal:Message.Attach=" AddAddress"
55+ Background =" White"
56+ Width =" 30"
57+ Height =" 30"
58+ Cursor =" Hand"
59+ HorizontalContentAlignment =" Center"
60+ VerticalContentAlignment =" Center"
61+ BorderBrush =" {DynamicResource AccentColorBrush}"
62+ FocusVisualStyle =" {DynamicResource MahApps.Metro.Styles.MetroCircleFocusVisual}"
63+ Style =" {DynamicResource MahApps.Metro.Styles.MetroCircleButtonStyle}"
64+ Margin =" 5,0,5,0" >
65+ <iconPacks : PackIconMaterial
66+ Kind =" Plus"
67+ Width =" 15"
68+ Height =" 15"
69+ HorizontalContentAlignment =" Center"
70+ VerticalContentAlignment =" Center"
71+ Foreground =" {DynamicResource AccentColorBrush}" />
72+ <Button .ToolTip>
73+ <Label
74+ Content =" {lex:Loc Key=address_settings_add}"
75+ FontWeight =" DemiBold" />
76+ </Button .ToolTip>
77+ </Button >
78+ <Button x : Name =" RemoveAddress"
79+ cal:Message.Attach=" RemoveAddress"
80+ Background =" White"
81+ Width =" 30"
82+ Height =" 30"
83+ Cursor =" Hand"
84+ HorizontalContentAlignment =" Center"
85+ VerticalContentAlignment =" Center"
86+ BorderBrush =" {DynamicResource AccentColorBrush}"
87+ FocusVisualStyle =" {DynamicResource MahApps.Metro.Styles.MetroCircleFocusVisual}"
88+ Style =" {DynamicResource MahApps.Metro.Styles.MetroCircleButtonStyle}"
89+ Margin =" 5,0,5,0" >
90+ <iconPacks : PackIconMaterial
91+ Kind =" Minus"
92+ Width =" 15"
93+ Height =" 15"
94+ HorizontalContentAlignment =" Center"
95+ VerticalContentAlignment =" Center"
96+ Foreground =" {DynamicResource AccentColorBrush}" />
97+ <Button .ToolTip>
98+ <Label
99+ Content =" {lex:Loc Key=address_settings_remove}"
100+ FontWeight =" DemiBold" />
101+ </Button .ToolTip>
102+ </Button >
103+ <Button x : Name =" RestoreDefault"
104+ cal:Message.Attach=" RestoreDefault"
105+ Background =" White"
106+ Width =" 30"
107+ Height =" 30"
108+ Cursor =" Hand"
109+ HorizontalContentAlignment =" Center"
110+ VerticalContentAlignment =" Center"
111+ BorderBrush =" {DynamicResource AccentColorBrush}"
112+ FocusVisualStyle =" {DynamicResource MahApps.Metro.Styles.MetroCircleFocusVisual}"
113+ Style =" {DynamicResource MahApps.Metro.Styles.MetroCircleButtonStyle}"
114+ Margin =" 5,0,5,0" >
115+ <iconPacks : PackIconMaterial
116+ Kind =" Restore"
117+ Width =" 15"
118+ Height =" 15"
119+ HorizontalContentAlignment =" Center"
120+ VerticalContentAlignment =" Center"
121+ Foreground =" {DynamicResource AccentColorBrush}" />
122+ <Button .ToolTip>
123+ <Label
124+ Content =" {lex:Loc Key=address_settings_restore}"
125+ FontWeight =" DemiBold" />
126+ </Button .ToolTip>
127+ </Button >
128+ </StackPanel >
129+ </StackPanel >
130+ </Border >
131+ </Grid >
132+ </UserControl >
0 commit comments