星火微课系统客户端
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

MinToolbar.xaml 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. <Button 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. <Border
  24. BorderBrush="{TemplateBinding Control.BorderBrush}"
  25. BorderThickness="0"
  26. CornerRadius="3">
  27. <Border.Background>#2d8cf0</Border.Background>
  28. <ContentPresenter
  29. HorizontalAlignment="Center"
  30. VerticalAlignment="Center"
  31. Content="{TemplateBinding ContentControl.Content}" />
  32. </Border>
  33. </ControlTemplate>
  34. </Button.Template>
  35. </Button>
  36. </Border>
  37. </Grid>
  38. </Viewbox>
  39. </Window>