Skip to content

Commit 9b01d57

Browse files
committed
Update TaskbarItemInfoExample.xaml
1 parent 81755dc commit 9b01d57

File tree

1 file changed

+43
-22
lines changed

1 file changed

+43
-22
lines changed
Lines changed: 43 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,53 @@
1-
<wpfdev:Window x:Class="WPFDevelopers.Samples.ExampleViews.TaskbarItemInfoExample"
2-
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3-
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4-
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
5-
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6-
xmlns:local="clr-namespace:WPFDevelopers.Samples"
7-
xmlns:wpfdev="https://github.com/WPFDevelopersOrg/WPFDevelopers"
8-
Owner="{x:Static local:App.CurrentMainWindow}"
9-
WindowStartupLocation="CenterOwner" Icon="/WPFDevelopers.ico"
10-
Title="TaskbarItemInfoExample" TitleHeight="40"
11-
WindowStyle="ToolWindow" ResizeMode="NoResize"
12-
mc:Ignorable="d" Height="211" Width="363"
13-
d:DesignHeight="450" d:DesignWidth="800">
1+
<wpfdev:Window
2+
x:Class="WPFDevelopers.Samples.ExampleViews.TaskbarItemInfoExample"
3+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6+
xmlns:local="clr-namespace:WPFDevelopers.Samples"
7+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
8+
xmlns:wpfdev="https://github.com/WPFDevelopersOrg/WPFDevelopers"
9+
Title="TaskbarItemInfoExample"
10+
Width="363"
11+
Height="211"
12+
d:DesignHeight="450"
13+
d:DesignWidth="800"
14+
Icon="/WPFDevelopers.ico"
15+
Owner="{x:Static local:App.CurrentMainWindow}"
16+
ResizeMode="NoResize"
17+
TitleHeight="40"
18+
WindowStartupLocation="CenterOwner"
19+
WindowStyle="ToolWindow"
20+
mc:Ignorable="d">
1421
<Window.TaskbarItemInfo>
1522
<TaskbarItemInfo />
1623
</Window.TaskbarItemInfo>
1724
<Window.Resources>
1825
<DataTemplate x:Key="TaskbarIcon">
19-
<Border Width="20" Height="20"
20-
Background="{StaticResource WD.PrimaryPressedSolidColorBrush}"
21-
BorderBrush="{StaticResource WD.BackgroundSolidColorBrush}" BorderThickness="2">
22-
<TextBlock Text="{Binding}" TextAlignment="Center" Foreground="White"
23-
VerticalAlignment="Center"/>
26+
<Border
27+
Width="20"
28+
Height="20"
29+
Background="{StaticResource WD.PrimaryPressedSolidColorBrush}"
30+
BorderBrush="{StaticResource WD.BackgroundSolidColorBrush}"
31+
BorderThickness="2">
32+
<TextBlock
33+
VerticalAlignment="Center"
34+
Foreground="White"
35+
Text="{Binding}"
36+
TextAlignment="Center" />
2437
</Border>
2538
</DataTemplate>
2639
</Window.Resources>
27-
<WrapPanel VerticalAlignment="Center" HorizontalAlignment="Center">
28-
<Button Content="增加" Click="Button_Click" Tag="add"
29-
Style="{StaticResource WD.DefaultButton}" />
30-
<Button Content="移除" Click="Button_Click" Tag="remove"/>
40+
<WrapPanel HorizontalAlignment="Center" VerticalAlignment="Center">
41+
<Button
42+
Click="Button_Click"
43+
Content="增加"
44+
Style="{StaticResource WD.PrimaryButton}"
45+
Tag="add" />
46+
<Button
47+
Margin="10,0"
48+
Click="Button_Click"
49+
Content="移除"
50+
Style="{StaticResource WD.SuccessPrimaryButton}"
51+
Tag="remove" />
3152
</WrapPanel>
3253
</wpfdev:Window>

0 commit comments

Comments
 (0)