当前位置: 首页 > news >正文

简约淘宝网站模板免费下载建立 wiki 网站

简约淘宝网站模板免费下载,建立 wiki 网站,服装印花图案网站,wordpress可视化主题Application.Resources应用程序资源,资源:【样式】,图片,字体文件,音频,视频等 在此处定义的资源,是全局性的,整个应用程序都可以共享此资源 此处定义的样式,称为全局样式…

Application.Resources应用程序资源,资源:【样式】,图片,字体文件,音频,视频等
在此处定义的资源,是全局性的,整个应用程序都可以共享此资源
此处定义的样式,称为全局样式,整个应用程序都可用。 优先级最低。
局部样式:某个窗体内可用。优先级次之。
行内样式:某个控件可用,某个控件(标签),开始标签中的属性都是行内样式。 优先级最高。

<Application.Resources><ResourceDictionary><Style x:Key="buttonDefaultStyle" TargetType="Button"><Setter Property="Background" Value="Blue" /><Setter Property="Foreground" Value="White" /></Style><Style x:Key="buttonWarnStyle" TargetType="Button"><Setter Property="Background" Value="Red" /><Setter Property="Foreground" Value="White" /></Style><!--  合并资源字典文件(导入样式文件)  --><ResourceDictionary.MergedDictionaries><ResourceDictionary Source="pack://application:,,,/WpfApp1;component/Resources/Dictionary1.xaml" /><ResourceDictionary Source="pack://application:,,,/WpfApp1;component/Resources/Dictionary2.xaml" /></ResourceDictionary.MergedDictionaries></ResourceDictionary>
</Application.Resources>

WpfApp1;component/Resources/Dictionary1.xaml 路径来源
在这里插入图片描述

Dictionary1.xaml

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"><Style x:Key="LabelStyle" TargetType="Label"><Setter Property="Margin" Value="0,10" /><Setter Property="Grid.Column" Value="0" /><Setter Property="Grid.Row" Value="0" /><Setter Property="Margin" Value="0,10" /><Setter Property="Content" Value="_Account:" /><Setter Property="Target" Value="{Binding ElementName=txtAccount}" /></Style><Stylex:Key="LabelStyle2"BasedOn="{StaticResource LabelStyle}"TargetType="Label"><Setter Property="Grid.Row" Value="1" /><Setter Property="Content" Value="_Password:" /><Setter Property="Target" Value="{Binding ElementName=txtPassword}" /></Style></ResourceDictionary>

Dictionary2.xaml

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"><Style x:Key="ButtonBaseStyle" TargetType="Button"><Setter Property="Width" Value="100" /><Setter Property="Height" Value="30" /></Style><Stylex:Key="ButtonStyle"BasedOn="{StaticResource ButtonBaseStyle}"TargetType="Button"><Setter Property="Grid.Row" Value="2" /><Setter Property="Grid.Column" Value="0" /><Setter Property="Grid.ColumnSpan" Value="2" /><Setter Property="Margin" Value="0,5" /><Setter Property="HorizontalAlignment" Value="Center" /><Setter Property="Background" Value="#399ae7" /><Setter Property="BorderThickness" Value="0" /><Setter Property="Content" Value="登录" /><Setter Property="Foreground" Value="#ffffff" /></Style><Style x:Key="BaseStyle" TargetType="Control"><Setter Property="Width" Value="120" /><Setter Property="Height" Value="30" /><Setter Property="Padding" Value="5,0" /></Style><Stylex:Key="TextBoxStyle"BasedOn="{StaticResource BaseStyle}"TargetType="TextBox"><Setter Property="Grid.Row" Value="0" /><Setter Property="Grid.Column" Value="1" /><Setter Property="Width" Value="120" /><Setter Property="Height" Value="30" /><Setter Property="Padding" Value="5,0" /><Setter Property="VerticalContentAlignment" Value="Center" /></Style><Stylex:Key="PasswordBoxStyle"BasedOn="{StaticResource BaseStyle}"TargetType="PasswordBox"><Setter Property="Grid.Row" Value="1" /><Setter Property="Grid.Column" Value="1" /><Setter Property="Width" Value="120" /><Setter Property="Height" Value="30" /><Setter Property="Padding" Value="5,0" /><Setter Property="VerticalContentAlignment" Value="Center" /></Style>
</ResourceDictionary>
http://www.dtcms.com/a/478184.html

相关文章:

  • 【Unity】uNet游戏服务端框架(三)心跳机制
  • 二叉树的深搜
  • C++设计模式之行为型模式:模板方法模式(Template Method)
  • 做3dh春丽网站叫什么重庆十大软件公司
  • 长沙电商网站开发php开发网站后台
  • QT6中Combo Box与Combo BoxFont 功能及用法
  • 软考网工知识点-1
  • win10下Qt应用程序使用FastDDS
  • 链表相关的知识以及算法题
  • 模板网站建站步骤微信公众号和小程序的区别
  • Shell 使用指南
  • 重庆网站seo服务没效果
  • 开源项目重构我们应该怎么做-以 SQL 血缘系统开源项目为例
  • Sora2:AIGC的技术革命与生态重构
  • Modbus RTU 数据结构(发送和返回/读/写)
  • Nginx IP 透传
  • 海外IP的主要应用业务
  • 门户网站建设工序做微信网站要多少钱
  • 南阳网站优化费用推进网站 集约化建设
  • 算法训练之BFS实现FloodFill算法
  • Typescript - 枚举类型 enum,详细介绍与使用教程(快速入门)
  • 机器视觉2D贴合引导项目从哪里入手,案例知识分享
  • 家庭烹饪用油选择
  • 「工具设计」JS字段信息加密解密工具设计
  • 注意力机制-10.1.3注意力可视化
  • 网站维护公司苏州网站推广优化
  • Codeforces Educational 183(ABCD)
  • 为什么建设网站要年年交钱石家庄最新今天消息
  • 2025年语音识别(ASR)与语音合成(TTS)技术趋势分析对比
  • TortoiseSVN-1.8.10.26129-x64-svn-1.8.11.msi