forked from BornToBeRoot/NETworkManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStatusWindow.xaml
More file actions
65 lines (65 loc) · 3.41 KB
/
Copy pathStatusWindow.xaml
File metadata and controls
65 lines (65 loc) · 3.41 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<mah:MetroWindow x:Class="NETworkManager.StatusWindow"
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"
xmlns:mah="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization"
xmlns:networkManager="clr-namespace:NETworkManager"
xmlns:converters="clr-namespace:NETworkManager.Converters;assembly=NETworkManager.Converters"
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
mc:Ignorable="d" d:DataContext="{d:DesignInstance networkManager:StatusWindow}"
TitleAlignment="Left"
Style="{DynamicResource DefaultWindow}"
Deactivated="MetroWindow_Deactivated"
Topmost="True"
ShowInTaskbar="False"
Width="950"
SizeToContent="Height"
ResizeMode="NoResize"
IsWindowDraggable="False"
ShowMinButton="False"
ShowMaxRestoreButton="False"
ShowCloseButton="True"
Closing="MetroWindow_Closing">
<mah:MetroWindow.Resources>
<converters:BooleanToVisibilityCollapsedConverter x:Key="BooleanToVisibilityCollapsedConverter" />
</mah:MetroWindow.Resources>
<mah:MetroWindow.RightWindowCommands>
<mah:WindowCommands ShowSeparators="False">
<Button Command="{Binding Path=ShowMainWindowCommand}"
ToolTip="{x:Static Member=localization:Strings.Show}"
Cursor="Hand"
Focusable="False"
Margin="0,0,5,0">
<StackPanel Orientation="Horizontal">
<Rectangle Width="16" Height="16"
Fill="{Binding RelativeSource={RelativeSource AncestorType=Button}, Path=Foreground}">
<Rectangle.OpacityMask>
<VisualBrush Stretch="Uniform" Visual="{iconPacks:Material Kind=OpenInNew}" />
</Rectangle.OpacityMask>
</Rectangle>
</StackPanel>
</Button>
</mah:WindowCommands>
</mah:MetroWindow.RightWindowCommands>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<ContentControl Grid.Column="0" Grid.Row="0"
x:Name="ContentControlNetworkConnection"
Margin="10" />
<ProgressBar Grid.Column="0" Grid.Row="1"
Height="3"
MinHeight="3"
Margin="0"
Minimum="0"
Maximum="{Binding TimeMax, Mode=OneWay}"
Value="{Binding Time, Mode=OneWay}"
Visibility="{Binding ShowTime, Converter={StaticResource BooleanToVisibilityCollapsedConverter}}"
BorderThickness="0"
Padding="0" />
</Grid>
</mah:MetroWindow>