|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- <Window x:Class="XHZB.Desktop.ToolbarWindow"
- 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:gifLib="http://wpfanimatedgif.codeplex.com"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:XHZB.Desktop" xmlns:views1="clr-namespace:Common.ZB;assembly=Common"
-
- Title="ToolbarWindow" Width="276"
- Height="568"
- AllowsTransparency="True"
- Background="Transparent"
- BorderThickness="1"
- Closed="toolbar_win_Closed"
- ContentRendered="toolbar_win_ContentRendered"
- Loaded="toolbar_win_Loaded"
- Opacity="1"
- ResizeMode="NoResize"
- ShowInTaskbar="False"
- WindowStyle="None"
- mc:Ignorable="d">
- <Window.Resources>
- <DataTemplate x:Key="ToolbarMenu">
- <Button
- x:Name="toolbar_item"
- Height="73"
- Background="Transparent"
- BorderBrush="Transparent"
- BorderThickness="0"
- Click="toolbar_item_Click"
- Cursor="Hand">
- <Button.Content>
- <StackPanel Width="Auto" Background="Transparent">
- <Image
- Width="43"
- HorizontalAlignment="Center"
- gifLib:ImageBehavior.AnimatedSource="{Binding Pic}" />
- <TextBlock
- Padding="0,2,1,0"
- HorizontalAlignment="Center"
- FontSize="14"
- Foreground="#3C525B"
- Text="{Binding Name}" />
- </StackPanel>
- </Button.Content>
- </Button>
- </DataTemplate>
- </Window.Resources>
-
- <Canvas Background="Transparent" ClipToBounds="True">
-
- <views1:ClippingBorder
- x:Name="toolbar"
- Canvas.Right="24"
- Canvas.Bottom="96"
- Width="77"
- Height="450"
- Padding="0,0,0,0"
- Background="#f3f3f3"
- BorderBrush="#66000000"
- BorderThickness="1"
- ClipToBounds="True"
- CornerRadius="10">
- <ItemsControl
- x:Name="toolbar_list"
- Grid.Row="0"
- Width="77"
- Height="666"
- BorderThickness="0"
- ItemTemplate="{StaticResource ToolbarMenu}"
- ItemsSource="{Binding menuList}"
- ScrollViewer.HorizontalScrollBarVisibility="Disabled"
- ScrollViewer.VerticalScrollBarVisibility="Disabled" />
- </views1:ClippingBorder>
- <Grid
- Canvas.Right="0"
- Canvas.Bottom="0"
- Width="125"
- Height="122"
- Margin="0,0,0,0">
-
- <Image Width="auto" HorizontalAlignment="Center">
- <Image.Style>
- <Style TargetType="Image">
- <Style.Triggers>
- <DataTrigger Binding="{Binding IsOpen}" Value="true">
- <Setter Property="Source" Value="./Images/ToolBar/toolbar_bottom2_0.png" />
- </DataTrigger>
- <DataTrigger Binding="{Binding IsOpen}" Value="false">
- <Setter Property="Source" Value="./Images/ToolBar/toolbar_bottom2.png" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Image.Style>
- </Image>
- <TextBlock
- x:Name="txbName"
- Margin="0,65,0,0"
- HorizontalAlignment="Center"
- FontSize="18"
- FontWeight="Black"
- Foreground="White"
- Text="" />
- <Rectangle
- Width="auto"
- Height="auto"
- Cursor="SizeAll"
- Fill="Transparent"
- MouseLeftButtonDown="Window_MouseLeftButtonDown_1"
- MouseLeftButtonUp="Rectangle_MouseLeftButtonUp"
- MouseMove="Rectangle_MouseMove" />
- </Grid>
-
- <UniformGrid
- Name="ketangTool"
- Canvas.Top="238"
- Canvas.Right="100"
- Width="0"
- Height="73"
- Background="#f3f3f3"
- Rows="1">
- <Button
- x:Name="heiban_btn"
- Background="Transparent"
- BorderBrush="Transparent"
- BorderThickness="0"
- Cursor="Hand">
- <Button.Content>
- <StackPanel Width="Auto" Background="Transparent">
- <Image
- Width="43"
- HorizontalAlignment="Center"
- Source="./Images/ToolBar/黑板01@2x.png" />
- <TextBlock
- Padding="0,2,0,0"
- HorizontalAlignment="Center"
- FontSize="14"
- Foreground="#3C525B"
- Text="黑板" />
- </StackPanel>
- </Button.Content>
- </Button>
- <Button
- x:Name="pizhu_btn"
- Background="Transparent"
- BorderBrush="Transparent"
- BorderThickness="0"
- Cursor="Hand">
- <Button.Content>
- <StackPanel Width="Auto" Background="Transparent">
- <Image
- Width="43"
- HorizontalAlignment="Center"
- Source="./Images/ToolBar/讲评@2x.png" />
- <TextBlock
- Padding="0,2,0,0"
- HorizontalAlignment="Center"
- FontSize="14"
- Foreground="#3C525B"
- Text="批注" />
- </StackPanel>
- </Button.Content>
- </Button>
- </UniformGrid>
- </Canvas>
- </Window>
|