|
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"> |
14 | 21 | <Window.TaskbarItemInfo>
|
15 | 22 | <TaskbarItemInfo />
|
16 | 23 | </Window.TaskbarItemInfo>
|
17 | 24 | <Window.Resources>
|
18 | 25 | <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" /> |
24 | 37 | </Border>
|
25 | 38 | </DataTemplate>
|
26 | 39 | </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" /> |
31 | 52 | </WrapPanel>
|
32 | 53 | </wpfdev:Window>
|
0 commit comments