摘要:
bool? is nullable while bool is not. In the above code, first will be null while second will be false. The ? symbol after a type is only a shortcut to 阅读全文
posted @ 2018-02-25 16:52
po-A
阅读(7762)
评论(0)
推荐(1)
摘要:
WPF程序启动登录界面: 建立media文件夹,导入素材: 在画面中导入启动图片。 将启动png图片,增加一些属性:transparent属性,以及启动位置在CenterScreen; 设置启动画面:更改startupUrl。 点击图片可以drag,我们写一个move事件。 图片界面最小化: 阅读全文
posted @ 2018-02-25 15:35
po-A
阅读(162)
评论(0)
推荐(0)
摘要:
微软官网:https://docs.microsoft.com/en-us/dotnet/framework/wpf/app-development/wpf-xaml-browser-applications-overview 在 DataGrid 控件中显示 SQL Server 数据库中的数据: 阅读全文
posted @ 2018-02-25 15:00
po-A
阅读(196)
评论(0)
推荐(0)
摘要:
WPF 03 - Model Validation with IDataErrorInfo 例子 VIEWMODEL: 界面: 运行结果: 当为空时,error被触发。边框变为红色。 如何进化成下面有文字提示呢? 只需要在界面code里改一下:增加label Content (grid改成stack 阅读全文
posted @ 2018-02-25 14:24
po-A
阅读(194)
评论(0)
推荐(0)
摘要:
结构: main window预览: Model: view model1: viewmodel2: CustomerInfoViewModel 其中上方缩小部分的代码如下: 创建一个view: CustomeInfoView 看一下父子窗体: 疑问:DataContext指的是? The Data 阅读全文
posted @ 2018-02-25 13:42
po-A
阅读(1133)
评论(0)
推荐(0)
浙公网安备 33010602011771号