星火微课系统客户端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

MinToolbar.xaml 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <Window x:Class="XHWK.WKTool.MinToolbar"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:XHWK.WKTool"
  7. mc:Ignorable="d"
  8. Title="MinToolbar" Height="50" Width="20" AllowsTransparency="True"
  9. Topmost="True"
  10. ShowInTaskbar="False"
  11. WindowStyle="None" Margin="0" Left="0" Top="0">
  12. <Window.Background>
  13. <SolidColorBrush Opacity="0" Color="#00000000" />
  14. </Window.Background>
  15. <Viewbox>
  16. <Grid>
  17. <Border Background="White" CornerRadius="3">
  18. <!--<Grid x:Name="buttonMin" Height="25" Width="3"
  19. Margin="0.5" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
  20. MouseEnter="buttonMin_MouseEnter">
  21. <Button.Template>
  22. <ControlTemplate TargetType="{x:Type Button}">
  23. <ContentPresenter
  24. HorizontalAlignment="Center"
  25. VerticalAlignment="Center"
  26. Content="{TemplateBinding ContentControl.Content}" />
  27. </ControlTemplate>
  28. </Button.Template>
  29. </Grid>-->
  30. <Grid x:Name="buttonMin" Height="25" Width="3" Margin="0.5" MouseEnter="buttonMin_MouseEnter">
  31. <Border x:Name="BorderBlack" BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="0" CornerRadius="3" Background="#2d8cf0">
  32. </Border>
  33. </Grid>
  34. </Border>
  35. </Grid>
  36. </Viewbox>
  37. </Window>