-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBatInfo.xaml
71 lines (64 loc) · 3.32 KB
/
BatInfo.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
<ui:FluentWindow x:Class="PowerTray.BatInfo"
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:local="clr-namespace:PowerTray"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
mc:Ignorable="d"
Title="Battery Info" Height="480" Width="320" MinHeight="115" MinWidth="300"
Topmost="True"
ExtendsContentIntoTitleBar="True"
WindowBackdropType="Mica"
WindowCornerPreference="Round"
WindowStartupLocation="CenterScreen">
<Grid x:Name="Window">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<ui:TitleBar
Title="Battery Info"
FontSize="15"
FontWeight="Bold"
Grid.Row="0"
Height="30"
Icon="pack://application:,,,/Assets/applicationIcon-256.png" />
<ui:DynamicScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
<ItemsControl x:Name="Data" Grid.Row="1">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Vertical" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<ui:Badge Height="35" Margin="10,5,5,5" Appearance="Transparent">
<Label Content="{Binding Name}" VerticalAlignment="Bottom"/>
</ui:Badge>
<ui:Badge Height="35" Margin="5,5,10,5" Grid.Column="1" Appearance="Transparent">
<Label Content="{Binding Value}" VerticalAlignment="Bottom" HorizontalAlignment="Right" FontWeight="Bold"/>
</ui:Badge>
</Grid>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</ui:DynamicScrollViewer>
<Grid x:Name="BottomControls" Grid.Row ="2" Margin="0,5,0,5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*" />
<ColumnDefinition Width="1*" />
<ColumnDefinition Width="1*" />
</Grid.ColumnDefinitions>
<Button x:Name="GraphButton" Grid.Column="0" Width ="100" HorizontalAlignment="Center">Graphs</Button>
<Button x:Name="ResetButton" Grid.Column="1" Width ="100" ToolTip ="Clear the calculate charge rate buffer" HorizontalAlignment="Center">Clear Buffer</Button>
<Button x:Name="CloseButton" Grid.Column="2" Width ="100" HorizontalAlignment="Center">Close</Button>
</Grid>
</Grid>
</ui:FluentWindow>