Eabei.UI/XToolMenu.xaml

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<UserControl x:Class="Eabei.UI.XToolMenu"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:Eabei.UI"
             mc:Ignorable="d" 
             d:DesignHeight="50" d:DesignWidth="500">
    <UserControl.Resources>
        <Style TargetType="{x:Type Button}">
            <Setter Property="Width" Value="16"/>
            <Setter Property="Height" Value="16"/>
            <Setter Property="Cursor" Value="Hand"/>
            <Setter Property="Margin" Value="12,0,0,0"/>
            <Setter Property="BorderBrush" Value="{x:Null}"/>
            <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Button}">
                        <Border Background="{TemplateBinding Background}" BorderBrush="Transparent" BorderThickness="0">
                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </UserControl.Resources>

    <StackPanel Height="30" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,16,5">
        <Button>
            <Button.Background>
                <ImageBrush ImageSource="pack://application:,,,/EabeiPlayer;component/Images/More.png"/>
            </Button.Background>
        </Button>

        <Button Name="btnSkin" ToolTip="个性皮肤">
            <Button.Background>
                <ImageBrush ImageSource="pack://application:,,,/EabeiPlayer;component/Images/Skin.png"/>
            </Button.Background>
        </Button>
        
        <Button Name="btnEmail" ToolTip="信息中心">
            <Button.Background>
                <ImageBrush ImageSource="pack://application:,,,/EabeiPlayer;component/Images/Email.png"/>
            </Button.Background>
        </Button>

        <Button Name="btnMainMenu" ToolTip="主菜单">
            <Button.Background>
                <ImageBrush ImageSource="pack://application:,,,/EabeiPlayer;component/Images/Setting.png"/>
            </Button.Background>
        </Button>

        <Button Name="btnMin" Click="BtnMin_Click" ToolTip="最小化">
            <Button.Background>
                <ImageBrush ImageSource="pack://application:,,,/EabeiPlayer;component/Images/Min.png"/>
            </Button.Background>
        </Button>

        <Button Name="btnMax" Click="BtnMax_Click" ToolTip="最大化">
后面还有 12 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。