摘要:
1、完成Region的定义 新建一个Dmeo2的wpf窗体,完成区域定义 <Window x:Class="WpfProject_Study.Views.Demo2" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 阅读全文
posted @ 2024-03-22 14:37
行稳致远ac
阅读(130)
评论(0)
推荐(0)
摘要:
在Prism框架中如何使用Region(区域)呢? 1、区域的定义方式 区域的定义方式有XML定义的方式,以及代码定义,此处使用代码定义。 新建一个WPF窗口Demo2,在Grid中,使用如下代码完成区域的定义 <ContentControl Grid.Column="1" prism:Region 阅读全文
posted @ 2024-03-22 14:23
行稳致远ac
阅读(144)
评论(0)
推荐(0)
摘要:
本节使用MVVM模式进行演示 MyCommand为自定义的命令类,代码如下: public class MyComand : ICommand { private readonly Action<object> _action; private readonly Func<object,bool>? 阅读全文
posted @ 2024-03-22 11:59
行稳致远ac
阅读(107)
评论(0)
推荐(0)
摘要:
ICommand 接口在 System.Windows.Input 命名空间内定义。它有两个方法和一个事件。 // // 摘要: // Occurs when changes occur that affect whether or not the command should execute. e 阅读全文
posted @ 2024-03-22 11:12
行稳致远ac
阅读(260)
评论(0)
推荐(0)

浙公网安备 33010602011771号