摘要:
两个对象是否为同一个对象:是看两个对象是否指向堆中的同一块内存。 1、使用object.ReferenceEquals() class Program { static void Main(string[] args) { Person p1 = new Person(); p1.Name = "M 阅读全文
posted @ 2021-07-17 18:52
MaxBruce
阅读(469)
评论(0)
推荐(0)
摘要:
auto folder1="./.mm"; QDir *folder = new QDir; bool exist = folder->exists(folder1); if(exist) { QMessageBox::warning(this, tr("createDir"), tr("Dir i 阅读全文
posted @ 2021-07-17 18:33
MaxBruce
阅读(80)
评论(0)
推荐(0)
摘要:
在WPF中,数据模板是非常强大的工具,他是一块定义如何显示绑定的对象的XAML标记。有两种类型的控件支持数据模板:(1)内容控件通过ContentTemplate属性支持数据模板;(2)列表控件通过ItemTemplate属性支持数据模板。为了能够进一步提升数据模板的功能,在使用中常常会要求动态选择 阅读全文
posted @ 2021-07-17 16:57
MaxBruce
阅读(501)
评论(0)
推荐(0)
摘要:
参考网址:https://www.cnblogs.com/dxmfans/p/9434612.html <Window x:Class="Wpf180706.Window5" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentati 阅读全文
posted @ 2021-07-17 16:29
MaxBruce
阅读(311)
评论(0)
推荐(0)
摘要:
这篇博客介绍如何在UWP开发时,如何存储App Data和获取。 App Data是指用户的一些设定,偏好等。例如,App的主题,是否接收推送,离线接收消息等。需要区分下App Data和User Data,一般情况下User Data是一些文档,文件,数据库记录。 App Data的类型有Sett 阅读全文
posted @ 2021-07-17 12:52
MaxBruce
阅读(185)
评论(0)
推荐(0)
摘要:
Say I have a standard WPF ItemsControl bound to an ObservableCollection of "Dog" objects like so: <ItemsControl ItemsSource="{Binding Dogs}"> <ItemsCo 阅读全文
posted @ 2021-07-17 10:39
MaxBruce
阅读(1733)
评论(0)
推荐(0)
摘要:
我们通常说的模板是用来参照的,同样在WPF中,模板是用来作为制作控件的参照。 一、认识模板 1.1WPF菜鸟看模板 前面的记录有提过,控件主要是算法和数据的载体。控件的算法主要体现在可以激发的事件、可以调用的方法、能进行的操作等方面;控件的数据体现为:控件能展示哪些数据。上面两方面终决定了控件,在以 阅读全文
posted @ 2021-07-17 08:43
MaxBruce
阅读(1077)
评论(0)
推荐(0)

浙公网安备 33010602011771号