-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathQuickAccessMenu.xaml
139 lines (99 loc) · 6.03 KB
/
QuickAccessMenu.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<classes:ControllerWindow x:Class="Handheld_Hardware_Tools.QuickAccessMenu"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:classes="clr-namespace:Handheld_Hardware_Tools.Classes.Controller_Object_Classes"
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:local="clr-namespace:Handheld_Hardware_Tools"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
mc:Ignorable="d"
xmlns:Converter="clr-namespace:Handheld_Hardware_Tools.Classes.Converters"
Title="Everything Handhelds Tool"
Left="0"
Top="0"
x:Name="quickAccessMenu"
Topmost="True"
Width="0"
MinWidth="0"
MaxWidth="0"
Height="0"
MaxHeight="0"
MinHeight="0"
WindowStyle="None"
AllowsTransparency="True"
SizeToContent="Height"
ResizeMode="NoResize"
Loaded="UiWindow_Loaded"
Closing="Window_Closing"
ContentRendered="quickAccessMenu_ContentRendered"
>
<Window.Resources>
<Style x:Key="_ListBoxItemStyle" TargetType="ListBoxItem">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ListBoxItem">
<Border Name="_Border"
Padding="2"
CornerRadius="7"
SnapsToDevicePixels="true">
<StackPanel CanHorizontallyScroll="False">
<ui:SymbolIcon Name="icon" FontFamily="Segoe MDL2 Assets" FontSize="50" Symbol="{Binding Item1}"/>
<Viewbox Width="55" MaxHeight="15">
<TextBlock Text="{Binding Item2}"/>
</Viewbox>
</StackPanel>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsSelected" Value="true">
<Setter TargetName="_Border" Property="Background" Value="{DynamicResource HighlightedSideMenuBackground}"/>
<Setter TargetName="icon" Property="Foreground" Value="Black"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Grid Margin="0,0,0,0" Background="{DynamicResource MainWindowBackground}" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="65"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="60" />
<RowDefinition Height="*"/>
<RowDefinition Height="40" />
</Grid.RowDefinitions>
<DockPanel Grid.Column="0" Grid.ColumnSpan="2">
<Image Name="MainWindowLogo" Margin="10,4,0,4" />
<DockPanel Margin="0,0,15,0" >
<Button DockPanel.Dock="Right" Click="Button_Click" Background="{DynamicResource ControlsBackground}">
<ui:SymbolIcon x:Name="hideIcon" Symbol="ArrowExit20" FontSize="30" Filled="False" Visibility="Visible" />
</Button>
<Viewbox MaxHeight="30" DockPanel.Dock="Right" HorizontalAlignment="Right" Margin="0,0,20,0" >
<TextBlock x:Name="timeStatusBar" FontSize="30" />
</Viewbox>
<ui:SymbolIcon x:Name="controllerStatusBarIcon" Symbol="XboxController48" FontSize="30" Filled="True" Margin="0,0,25,0" Visibility="Hidden" DockPanel.Dock="Right"/>
<ui:SymbolIcon x:Name="wifiStatusBarIcon" Symbol="Wifi120" FontSize="30" Filled="True" Margin="6,3,0,4" Visibility="Visible" DockPanel.Dock="Right"/>
<ui:SymbolIcon x:Name="noInternetStatusBarIcon" Symbol="WifiOff20" FontSize="30" Filled="True" Margin="6,0,0,4" Visibility="Visible" DockPanel.Dock="Right"/>
<ui:SymbolIcon x:Name="chargingStatusBarIcon" Symbol="BatteryCharge20" FontSize="30" Filled="True" Margin="0,0,0,0" Visibility="Visible" DockPanel.Dock="Right"/>
<ui:SymbolIcon x:Name="batteryStatusBarIcon" Symbol="Battery020" FontSize="30" Filled="False" Margin="0,0,0,0" Visibility="Visible" DockPanel.Dock="Right"/>
<Viewbox MaxHeight="30" Margin="0,0,0,0" DockPanel.Dock="Right" HorizontalAlignment="Right" Name="viewBoxBatteryPercentage" >
<TextBlock x:Name="batteryPercentageStatusBar" HorizontalAlignment="Left" FontSize="30"/>
</Viewbox>
</DockPanel>
</DockPanel>
<ui:Card Grid.Row="1" Name="cardBorder" Margin="6,0,6,0" Grid.Column="1" Background="{DynamicResource PageBackground}" VerticalAlignment="Stretch" VerticalContentAlignment="Top">
<Frame x:Name="frame" HorizontalAlignment="Stretch" />
</ui:Card>
<ListView x:Name="navigationViewListBox" Grid.Row="1" ItemContainerStyle="{DynamicResource _ListBoxItemStyle}" SelectedIndex="0" Width="60" Margin="4,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Top" SelectionChanged="navigationViewListBox_SelectionChanged" >
<ListView.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Vertical"></StackPanel>
</ItemsPanelTemplate>
</ListView.ItemsPanel>
</ListView>
<ui:InfoBar Grid.Column="1" Grid.Row="2" VerticalAlignment="Bottom" />
<Frame x:Name="frameControllerInput" Grid.Row="2" Grid.Column="1" HorizontalAlignment="Stretch" />
</Grid>
</classes:ControllerWindow>