55 xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
66 xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
77 xmlns : syncfusion =" http://schemas.syncfusion.com/wpf"
8+ xmlns : utils =" clr-namespace:Advanced_PortChecker.Classes.Utils"
89 mc : Ignorable =" d"
910 AllowsTransparency =" True"
1011 UseLayoutRounding =" True"
1112 Title =" Advanced PortChecker - Settings"
1213 Height =" 300" Width =" 400"
14+ Closing =" SettingsWindow_OnClosing"
1315 WindowStartupLocation =" CenterScreen" Icon =" /Advanced PortChecker;component/globe.ico"
1416 TitleTextAlignment =" Center" >
1517 <Grid >
2123 AllowDragDrop =" False" DefaultContextMenuItemVisibility =" Hidden"
2224 TabItemSize =" ShrinkToFit" TabScrollButtonVisibility =" Hidden" >
2325
24- <syncfusion : TabItemExt Header =" General" Image =" /Advanced PortChecker;component/Resources/Images/settings.png" >
26+ <syncfusion : TabItemExt Header =" General"
27+ Image =" /Advanced PortChecker;component/Resources/Images/settings.png" >
2528 <Grid HorizontalAlignment =" Center" VerticalAlignment =" Center" >
2629 <Grid .RowDefinitions>
2730 <RowDefinition Height =" Auto" />
2831 <RowDefinition Height =" Auto" />
2932 <RowDefinition Height =" Auto" />
3033 </Grid .RowDefinitions>
31- <CheckBox x : Name =" ChbAutoUpdate" Content =" Automatically check for updates" Margin =" 2" />
32- <CheckBox Grid.Row=" 1" x : Name =" ChbWindowDraggable" Content =" Window draggable" Margin =" 2" />
34+ <CheckBox Content =" Automatically check for updates" Margin =" 2"
35+ IsChecked =" {utils:SettingsBinder AutoUpdate}" />
36+ <CheckBox Grid.Row=" 1" Content =" Window draggable" Margin =" 2"
37+ IsChecked =" {utils:SettingsBinder WindowDraggable}" />
3338 <Grid Grid.Row=" 2" >
3439 <Grid .RowDefinitions>
3540 <RowDefinition Height =" Auto" />
4146 <ColumnDefinition Width =" Auto" />
4247 </Grid .ColumnDefinitions>
4348 <Label Grid.Row=" 0" Grid.Column=" 0" Content =" Connection time-out:" Margin =" 2" />
44- <syncfusion : IntegerTextBox Grid.Row=" 0" Grid.Column=" 1" x : Name =" IntTimeOut" MinValue =" 1" Margin =" 2" />
49+ <syncfusion : IntegerTextBox Grid.Row=" 0" Grid.Column=" 1" x : Name =" IntTimeOut" MinValue =" 1"
50+ Margin =" 2" />
4551 <ComboBox Grid.Row=" 0" Grid.Column=" 2" x : Name =" CboTimeOut" Margin =" 2" >
4652 <ComboBoxItem >millisecond(s)</ComboBoxItem >
4753 <ComboBoxItem >second(s)</ComboBoxItem >
4854 <ComboBoxItem >minute(s)</ComboBoxItem >
4955 </ComboBox >
5056 <Label Grid.Row=" 1" Grid.Column=" 0" Margin =" 2" Content =" Number of scan threads:" />
51- <syncfusion : IntegerTextBox x : Name =" IntScanThreads" Grid.Row=" 1" Grid.Column=" 1" Grid.ColumnSpan=" 2" Margin =" 2" MinValue =" 1" />
57+ <syncfusion : IntegerTextBox Grid.Row=" 1" Grid.Column=" 1"
58+ Grid.ColumnSpan=" 2" Margin =" 2" MinValue =" 1"
59+ Value =" {utils:SettingsBinder ScanThreads}" />
5260 </Grid >
5361 </Grid >
5462 </syncfusion : TabItemExt >
7078 <ColumnDefinition Width =" Auto" />
7179 <ColumnDefinition />
7280 </Grid .ColumnDefinitions>
73- <Label Margin =" 2" Content =" Style:" />
74- <ComboBox Margin =" 2" x : Name =" ChbStyle" SelectedValuePath =" Content" Grid.Row=" 0" Grid.Column=" 1" IsReadOnly =" True" >
75- <ComboBoxItem >Metro</ComboBoxItem >
76- <ComboBoxItem >Blend</ComboBoxItem >
77- <ComboBoxItem >VS2010</ComboBoxItem >
78- <ComboBoxItem >Office2003</ComboBoxItem >
79- <ComboBoxItem >Office2007Blue</ComboBoxItem >
80- <ComboBoxItem >Office2007Black</ComboBoxItem >
81- <ComboBoxItem >Office2007Silver</ComboBoxItem >
82- <ComboBoxItem >Office2010Blue</ComboBoxItem >
83- <ComboBoxItem >Office2010Black</ComboBoxItem >
84- <ComboBoxItem >Office2010Silver</ComboBoxItem >
85- <ComboBoxItem >ShinyRed</ComboBoxItem >
86- <ComboBoxItem >ShinyBlue</ComboBoxItem >
87- <ComboBoxItem >SyncOrange</ComboBoxItem >
88- <ComboBoxItem >Transparent</ComboBoxItem >
89- <ComboBoxItem >None</ComboBoxItem >
81+ <Label Margin =" 2" Content =" Style:" />
82+ <ComboBox Margin =" 2" SelectedValuePath =" Content" Grid.Row=" 0" Grid.Column=" 1"
83+ IsReadOnly =" True" SelectionChanged =" ChbStyle_OnSelectionChanged"
84+ SelectedValue =" {utils:SettingsBinder VisualStyle}" >
85+ <ComboBoxItem Content =" Metro" />
86+ <ComboBoxItem Content =" Blend" />
87+ <ComboBoxItem Content =" VS2010" />
88+ <ComboBoxItem Content =" Office2003" />
89+ <ComboBoxItem Content =" Office2007Blue" />
90+ <ComboBoxItem Content =" Office2007Black" />
91+ <ComboBoxItem Content =" Office2007Silver" />
92+ <ComboBoxItem Content =" Office2010Blue" />
93+ <ComboBoxItem Content =" Office2010Black" />
94+ <ComboBoxItem Content =" Office2010Silver" />
95+ <ComboBoxItem Content =" ShinyRed" />
96+ <ComboBoxItem Content =" ShinyBlue" />
97+ <ComboBoxItem Content =" SyncOrange" />
98+ <ComboBoxItem Content =" Transparent" />
99+ <ComboBoxItem Content =" None" />
90100 </ComboBox >
91101 <Label Margin =" 2" Grid.Row=" 1" Grid.Column=" 0" Content =" Metro brush:" />
92- <syncfusion : ColorPicker Margin =" 2" x : Name =" CpMetroBrush" Grid.Row=" 1" Grid.Column=" 1" />
102+ <syncfusion : ColorPicker Margin =" 2" Grid.Row=" 1" Grid.Column=" 1"
103+ Color =" {utils:SettingsBinder MetroColor}" />
93104 <Label Margin =" 2" Grid.Row=" 2" Grid.Column=" 0" Content =" Border thickness:" />
94- <syncfusion : IntegerTextBox Margin =" 2" x : Name =" IntBorderThickness" Grid.Row=" 2" Grid.Column=" 1" MinValue =" 0" />
105+ <Slider Margin =" 3" Grid.Row=" 2" Grid.Column=" 1" Minimum =" 1"
106+ ValueChanged =" SldBorderThickness_OnValueChanged"
107+ Value =" {utils:SettingsBinder BorderThickness}" />
95108 <Label Margin =" 3" Grid.Row=" 3" Grid.Column=" 0" Content =" Window opacity:" />
96- <Slider x : Name =" SldOpacity" Margin =" 3" Grid.Row=" 3" Grid.Column=" 1" Minimum =" 30" Maximum =" 100" Width =" 180" ValueChanged =" SldOpacity_OnValueChanged" />
109+ <Slider x : Name =" SldOpacity" Margin =" 3" Grid.Row=" 3" Grid.Column=" 1" Minimum =" 30" Maximum =" 100"
110+ Width =" 180" ValueChanged =" SldOpacity_OnValueChanged"
111+ Value =" {utils:SettingsBinder WindowOpacity}" />
97112 <Label Margin =" 3" Grid.Row=" 4" Grid.Column=" 0" Content =" Resize border:" />
98- <Slider x : Name =" SldWindowResize" Margin =" 3" Grid.Row=" 4" Grid.Column=" 1" Minimum =" 2" Maximum =" 10" Width =" 180" ValueChanged =" SldWindowResize_OnValueChanged" />
113+ <Slider x : Name =" SldWindowResize" Margin =" 3" Grid.Row=" 4" Grid.Column=" 1" Minimum =" 2"
114+ Maximum =" 10" Width =" 180" ValueChanged =" SldWindowResize_OnValueChanged"
115+ Value =" {utils:SettingsBinder WindowResizeBorder}" />
99116 </Grid >
100117 </Grid >
101118 </syncfusion : TabItemExt >
109126 <Button Grid.Column=" 1" Click =" BtnSave_Click" Margin =" 5" IsDefault =" True" Content =" Save" />
110127 </Grid >
111128 </Grid >
112- </syncfusion : ChromelessWindow >
129+ </syncfusion : ChromelessWindow >
0 commit comments