学海无涯

导航

上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 45 下一页

2023年1月5日 #

Wpf原生MvvM

摘要: using System.ComponentModel; namespace WpfTestBlankApp.Models { public class Nickname : INotifyPropertyChanged { public event PropertyChangedEventHand 阅读全文

posted @ 2023-01-05 09:03 宁静致远. 阅读(65) 评论(0) 推荐(0)

2023年1月4日 #

Layout 布局

摘要: WPF 附带以下通用面板布局控件: Grid(网格) 按开发人员指定的行和列排列内容,不用固定大小和位置。最强大的内置布局控件 1 <Grid> 2 <Grid.RowDefinitions> 3 <RowDefinition /> 4 <RowDefinition /> 5 <RowDefinit 阅读全文

posted @ 2023-01-04 17:35 宁静致远. 阅读(120) 评论(0) 推荐(0)

2023年1月3日 #

特殊字符和空白

摘要: XMAL 字符实体 特殊字符 字符实体 < &lt; > &gt; & &amp; " &quot; <Button> &lt;Click Me&gt; </Button> 保留字符串的首尾空格 <TextBox xml:space="preserve" Foreground="White"> Th 阅读全文

posted @ 2023-01-03 16:13 宁静致远. 阅读(84) 评论(0) 推荐(0)

2023年1月2日 #

FontAwesome 字体图标 IconFont

摘要: 一、Nuget 上安装 FontAwesome 阅读全文

posted @ 2023-01-02 12:56 宁静致远. 阅读(16) 评论(0) 推荐(0)

MaterialDesign 控件

摘要: 为按钮添加阴影 <Button Width="250" materialDesign:ElevationAssist.Elevation="Dp5" Style="{StaticResource MaterialDesignRaisedButton}" ToolTip="MaterialDesign 阅读全文

posted @ 2023-01-02 12:02 宁静致远. 阅读(125) 评论(0) 推荐(0)

WPF常用控件

摘要: <ImageBrush ImageSource="/background.png" Stretch="UniformToFill" Opacity="0.3"/> background.png 属性->生成操作->资源 填充渐变颜色 <Grid> <Grid.Background> <LinearG 阅读全文

posted @ 2023-01-02 11:02 宁静致远. 阅读(45) 评论(0) 推荐(0)

2023年1月1日 #

IDialogAware 对话框

摘要: <Grid Background="White"> <Grid.RowDefinitions> <RowDefinition Height="Auto"></RowDefinition> <RowDefinition></RowDefinition> <RowDefinition Height="A 阅读全文

posted @ 2023-01-01 15:51 宁静致远. 阅读(283) 评论(0) 推荐(0)

导航 IRegionManager

摘要: <Window x:Class="PrismWpfBlankApp.Views.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsof 阅读全文

posted @ 2023-01-01 11:38 宁静致远. 阅读(60) 评论(0) 推荐(0)

2022年12月31日 #

MVVM框架 数据绑定 事件命令 发布订阅消息

摘要: <StackPanel> <Button Command="{Binding OpenCommand}" Content="事件" /> <Button Command="{Binding PublishCommand}" Content="发布消息"/> <Button Command="{Bin 阅读全文

posted @ 2022-12-31 16:32 宁静致远. 阅读(96) 评论(0) 推荐(0)

Region 区域

摘要: Region 的作用:在指定区域展示用户控件,是模块化的核心功能,其主要目的是弱化模块与模块之间的耦合关系。 一、定义XML区域: 1.1 使用XML设置区域名称 <ContentControl prism:RegionManager.RegionName="ContentRegion" /> 1. 阅读全文

posted @ 2022-12-31 14:40 宁静致远. 阅读(148) 评论(0) 推荐(0)

上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 45 下一页