151 lines
9.2 KiB
XML
151 lines
9.2 KiB
XML
<UserControl x:Class="BetterEN5.UI.BetterEN5Module"
|
|
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"
|
|
mc:Ignorable="d" d:DesignWidth="320" d:DesignHeight="600">
|
|
<UserControl.Resources>
|
|
<Style x:Key="CardBorder" TargetType="Border">
|
|
<Setter Property="Background" Value="{Binding ElementName=Root, Path=Resources[CardBackground]}"/>
|
|
<Setter Property="BorderBrush" Value="#20FFFFFF"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="CornerRadius" Value="10"/>
|
|
<Setter Property="Margin" Value="6,4"/>
|
|
<Setter Property="Padding" Value="12,10"/>
|
|
<Setter Property="Effect">
|
|
<Setter.Value>
|
|
<DropShadowEffect BlurRadius="8" ShadowDepth="2" Opacity="0.15" Color="Black"/>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="ActionButton" TargetType="Button">
|
|
<Setter Property="Background" Value="#00FFFFFF"/>
|
|
<Setter Property="Foreground" Value="{Binding ElementName=Root, Path=Resources[Foreground]}"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="Cursor" Value="Hand"/>
|
|
<Setter Property="Padding" Value="8,6"/>
|
|
<Setter Property="FontSize" Value="13"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border x:Name="border" Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="6" Padding="{TemplateBinding Padding}">
|
|
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="Center"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="border" Property="Background" Value="#15FFFFFF"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="True">
|
|
<Setter TargetName="border" Property="Background" Value="#30FFFFFF"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Color x:Key="AccentColor">#60B0FF</Color>
|
|
<SolidColorBrush x:Key="CardBackground" Color="#1E1E2E"/>
|
|
<SolidColorBrush x:Key="Foreground" Color="#E0E0E0"/>
|
|
<SolidColorBrush x:Key="AccentBrush" Color="#60B0FF"/>
|
|
<SolidColorBrush x:Key="SubText" Color="#909090"/>
|
|
</UserControl.Resources>
|
|
|
|
<Border x:Name="Root" Background="#161625" CornerRadius="0">
|
|
<Grid Margin="0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Border Grid.Row="0" Background="#1E1E30" BorderBrush="#30FFFFFF" BorderThickness="0,0,0,1"
|
|
CornerRadius="0" Padding="16,14">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Grid.Row="0" Text="Better-EN5" FontSize="20" FontWeight="Medium"
|
|
Foreground="{StaticResource AccentBrush}"/>
|
|
<TextBlock Grid.Row="1" Text="希沃白板增强模块" FontSize="12"
|
|
Foreground="{StaticResource SubText}" Margin="0,2,0,0"/>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto"
|
|
HorizontalScrollBarVisibility="Disabled"
|
|
Padding="8,4" Margin="0">
|
|
<StackPanel>
|
|
<Border Style="{StaticResource CardBorder}">
|
|
<StackPanel>
|
|
<TextBlock Text="墨迹管理" FontSize="14" FontWeight="SemiBold"
|
|
Foreground="{StaticResource AccentBrush}" Margin="0,0,0,6"/>
|
|
<Button Content="📝 导出墨迹..." Style="{StaticResource ActionButton}" Click="ExportInk_Click"/>
|
|
<Button Content="📂 导入墨迹..." Style="{StaticResource ActionButton}" Click="ImportInk_Click"/>
|
|
<TextBlock x:Name="InkStatus" Text="" FontSize="11" Foreground="{StaticResource SubText}"
|
|
Margin="8,4,0,0"/>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<Border Style="{StaticResource CardBorder}">
|
|
<StackPanel>
|
|
<TextBlock Text="文件转换" FontSize="14" FontWeight="SemiBold"
|
|
Foreground="{StaticResource AccentBrush}" Margin="0,0,0,6"/>
|
|
<Button Content="📄 PPT → ENBX" Style="{StaticResource ActionButton}" Click="ConvertPptx_Click"/>
|
|
<Button Content="📄 ENBX → PPT" Style="{StaticResource ActionButton}" Click="ConvertEnbx_Click"/>
|
|
<TextBlock x:Name="ConversionStatus" Text="" FontSize="11" Foreground="{StaticResource SubText}"
|
|
Margin="8,4,0,0"/>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<Border Style="{StaticResource CardBorder}">
|
|
<StackPanel>
|
|
<TextBlock Text="触摸修复" FontSize="14" FontWeight="SemiBold"
|
|
Foreground="{StaticResource AccentBrush}" Margin="0,0,0,6"/>
|
|
<Button Content="🔍 检测触摸状态" Style="{StaticResource ActionButton}" Click="CheckTouch_Click"/>
|
|
<Button Content="🔧 应用触摸修复" Style="{StaticResource ActionButton}" Click="ApplyTouchFix_Click"/>
|
|
<TextBlock x:Name="TouchStatus" Text="" FontSize="11" Foreground="{StaticResource SubText}"
|
|
Margin="8,4,0,0"/>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<Border Style="{StaticResource CardBorder}">
|
|
<StackPanel>
|
|
<TextBlock Text="大板支持" FontSize="14" FontWeight="SemiBold"
|
|
Foreground="{StaticResource AccentBrush}" Margin="0,0,0,6"/>
|
|
<TextBlock Text="为非触摸大屏启用完整白板模式" FontSize="11"
|
|
Foreground="{StaticResource SubText}" Margin="0,0,0,6"/>
|
|
<Button Content="🖥️ 配置大屏模式" Style="{StaticResource ActionButton}" Click="EnableBoardSupport_Click"/>
|
|
<Button Content="💻 启用 IWB 模式" Style="{StaticResource ActionButton}" Click="EnableIWB_Click"/>
|
|
<TextBlock x:Name="BoardStatus" Text="" FontSize="11" Foreground="{StaticResource SubText}"
|
|
Margin="8,4,0,0"/>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<Border Style="{StaticResource CardBorder}">
|
|
<StackPanel>
|
|
<TextBlock Text="专业版 / 激活" FontSize="14" FontWeight="SemiBold"
|
|
Foreground="{StaticResource AccentBrush}" Margin="0,0,0,6"/>
|
|
<TextBlock x:Name="ActivationStatusText" Text="当前状态: 社区版" FontSize="11"
|
|
Foreground="{StaticResource SubText}" Margin="0,0,0,6"/>
|
|
<Button Content="🔑 输入激活码..." Style="{StaticResource ActionButton}" Click="ActivatePro_Click"/>
|
|
<Button Content="📦 打开注册补丁..." Style="{StaticResource ActionButton}" Click="LaunchInstaller_Click"/>
|
|
</StackPanel>
|
|
</Border>
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
|
|
<Border Grid.Row="2" Background="#1A1A2E" BorderBrush="#20FFFFFF" BorderThickness="0,1,0,0"
|
|
Padding="12,8" CornerRadius="0">
|
|
<TextBlock x:Name="FooterText" Text="v1.1.0 · 就绪" FontSize="11"
|
|
Foreground="{StaticResource SubText}" TextAlignment="Center"/>
|
|
</Border>
|
|
</Grid>
|
|
</Border>
|
|
</UserControl>
|