55 xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
66 xmlns : mah =" clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
77 xmlns : localization =" clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization"
8- xmlns : resources =" clr-namespace:NETworkManager.Properties"
98 xmlns : networkManager =" clr-namespace:NETworkManager"
109 xmlns : converters =" clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters"
1110 xmlns : iconPacks =" http://metro.mahapps.com/winfx/xaml/iconpacks"
1615 Topmost =" True"
1716 ShowInTaskbar =" False"
1817 Width =" 950"
19- Height = " 241 "
18+ SizeToContent = " Height "
2019 ResizeMode =" NoResize"
2120 IsWindowDraggable =" False"
2221 ShowMinButton =" False"
2322 ShowMaxRestoreButton =" False"
2423 ShowCloseButton =" True"
25- ShowTitleBar =" True"
2624 Closing =" MetroWindow_Closing" >
2725 <mah : MetroWindow .Resources>
2826 <converters : BooleanToVisibilityCollapsedConverter x : Key =" BooleanToVisibilityCollapsedConverter" />
29- <converters : TimeToStrokeDashOffsetConverter x : Key =" TimeToStrokeDashOffsetConverter" />
3027 </mah : MetroWindow .Resources>
31- <mah : MetroWindow .LeftWindowCommands>
32- <mah : WindowCommands ShowSeparators =" False" >
33- <!-- Countdown progress ring -->
34- <Grid Width =" 20" Height =" 20"
35- Visibility =" {Binding ShowTime, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}"
36- VerticalAlignment =" Center"
37- Margin =" 10,0,0,0" >
38- <!-- Track (background ring) -->
39- <Ellipse StrokeThickness =" 2.5"
40- Stroke =" {DynamicResource MahApps.Brushes.Accent}"
41- Opacity =" 0.2" />
42- <!-- Foreground arc that shrinks as time counts down -->
43- <Ellipse StrokeThickness =" 2.5"
44- Stroke =" {DynamicResource MahApps.Brushes.Accent}"
45- StrokeDashCap =" Round"
46- StrokeDashArray =" 22 100"
47- RenderTransformOrigin =" 0.5,0.5" >
48- <Ellipse .RenderTransform>
49- <RotateTransform Angle =" -90" />
50- </Ellipse .RenderTransform>
51- <Ellipse .StrokeDashOffset>
52- <MultiBinding Converter =" {StaticResource TimeToStrokeDashOffsetConverter}"
53- ConverterParameter =" 22.0" >
54- <Binding Path =" Time" />
55- <Binding Path =" TimeMax" />
56- </MultiBinding >
57- </Ellipse .StrokeDashOffset>
58- </Ellipse >
59- </Grid >
60- </mah : WindowCommands >
61- </mah : MetroWindow .LeftWindowCommands>
6228 <mah : MetroWindow .RightWindowCommands>
6329 <mah : WindowCommands ShowSeparators =" False" >
6430 <Button Command =" {Binding Path=ShowMainWindowCommand}"
7743 </Button >
7844 </mah : WindowCommands >
7945 </mah : MetroWindow .RightWindowCommands>
80- <ContentControl Margin =" 10,5,10,10" x : Name =" ContentControlNetworkConnection" />
46+ <Grid >
47+ <Grid .RowDefinitions>
48+ <RowDefinition Height =" *" />
49+ <RowDefinition Height =" Auto" />
50+ </Grid .RowDefinitions>
51+ <ContentControl Grid.Column=" 0" Grid.Row=" 0"
52+ x : Name =" ContentControlNetworkConnection"
53+ Margin =" 10" />
54+ <ProgressBar Grid.Column=" 0" Grid.Row=" 1"
55+ Height =" 3"
56+ MinHeight =" 3"
57+ Margin =" 0"
58+ Minimum =" 0"
59+ Maximum =" {Binding TimeMax, Mode=OneWay}"
60+ Value =" {Binding Time, Mode=OneWay}"
61+ Visibility =" {Binding ShowTime, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}"
62+ BorderThickness =" 0"
63+ Padding =" 0" />
64+ </Grid >
8165</mah : MetroWindow >
0 commit comments