WINUI3_BOOKMS/obj/x86/Debug/net8.0-windows10.0.19041.0/win-x86/App.xaml

(开头部分) 2KB

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

<?xml version="1.0" encoding="utf-8"?>
<Application
    x:Class="WINUI3_BOOKMS.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:WINUI3_BOOKMS">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
                <!-- Other merged dictionaries here -->
            </ResourceDictionary.MergedDictionaries>
			
            <!-- Other app resources here -->
			<Style x:Key="ButtonStyle" TargetType="Button">
				<Setter Property="Background" Value="#0078D7"/>
				<Setter Property="Foreground" Value="White"/>
				<Setter Property="FontSize" Value="18"/>
				<Setter Property="BorderBrush" Value="Gray"/>
				<Setter Property="Template">
					<Setter.Value>
						<ControlTemplate TargetType="Button">
							<Border x:Name="Border" Padding="10,5" Background="{TemplateBinding Background}" CornerRadius="8" BorderBrush="LightGray" BorderThickness="2">
								<VisualStateManager.VisualStateGroups>
									<VisualStateGroup x:Name="CommonStates">
										<VisualState x:Name="Normal"/>
										<VisualState x:Name="PointerOver">
											<VisualState.Setters>
												<Setter Target="Border.Background" Value="#005A9E"/>
											</VisualState.Setters>
										</VisualState>
										<VisualState x:Name="Pressed">
											<VisualState.Setters>
												<Setter Target="Border.Background" Value="#00396B"/>
											</VisualState.Setters>
										</VisualState>
									</VisualStateGroup>
								</VisualStateManager.VisualStateGroups>
								<ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center"/>
							</Border>
						</ControlTemplate>
					</Setter.Value>
				</Setter>
			</Style>

			<Style x:Key="TextBoxStyle" TargetType="TextBox">
				<Setter Property="FontSize" Value="16"/>
				<Setter Property="Padding" Value="10"/>
				<Setter Property="Margin" Value="5"/>
				<Setter Property="BorderBrush" Value="#ccc"/>
				<Setter Property="BorderThickness" Value="1"/>
				<Setter Property="CornerRadius" Value="5"/>
			</Style>

			<Style TargetType="TextBlock">
				<Setter Property="FontSize" Value="16"/>
				<Setter Property="Margin" Value="5"/>
				<Setter Property="Foreground" Value="#333"/>
			</Style>
		</ResourceDictionary>
后面还有 5 行代码,解锁后查看完整代码

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

AI 解读

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

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