摘要:
前端用一个ScrollViewer 加文本 使用TouchDown 和 touchMove事件 后台事件代码:
阅读全文
posted @ 2019-02-21 11:46
电脑小白
阅读(400)
推荐(0)
摘要:
前几天做一个项目的时候出现了一个异常: “System.Windows.Markup.XamlParseException”类型的未经处理的异常在 PresentationFramework.dll 中发生 其他信息: “在“System.Windows.Markup.StaticResourceH
阅读全文
posted @ 2017-06-21 12:10
电脑小白
阅读(19152)
推荐(1)
摘要:
RelativePanel.Above RelativePanel.AlignBottomWith RelativePanel.AlignBottomWithPanel RelativePanel.AlignHorizontalCenterWith RelativePanel.AlignHorizo
阅读全文
posted @ 2016-04-29 15:05
电脑小白
阅读(336)
推荐(0)
摘要:
foreach (Control c in this.Controls){if (c is ComboBox){c.Enabled = false;}}
阅读全文
posted @ 2015-07-09 11:35
电脑小白
阅读(2217)
推荐(0)
摘要:
/// /// 遍历界面中的所有控件 /// /// private void SetNotEditable(UIElementCollection uiControls) { foreach (UIElement element in uiControls) { if (element i...
阅读全文
posted @ 2015-07-09 11:32
电脑小白
阅读(6834)
推荐(0)
摘要:
private DispatcherTimer TimeClose; //定义TimeClose = new DispatcherTimer(); TimeClose.Tick += new EventHandler(TimeClose_Tick); TimeClose.Interval = ne...
阅读全文
posted @ 2015-06-04 15:27
电脑小白
阅读(726)
推荐(0)
摘要:
this.SourceInitialized += new EventHandler(win_SourceInitialized); //这里写在构造函数里 void win_SourceInitialized(object sender, EventArgs e) { HwndSource hwn...
阅读全文
posted @ 2015-06-04 15:25
电脑小白
阅读(1128)
推荐(0)
摘要:
this.TB_tis.Dispatcher.Invoke(new Action(() => { this.TB_tis.Text = e.Message ; }));
阅读全文
posted @ 2015-06-04 15:21
电脑小白
阅读(394)
推荐(0)
摘要:
窗体: IntPtr hwnd = new WindowInteropHelper(this).Handle; 控件: IntPtr hwnd = ((HwndSource)PresentationSource.FromVisual(uielement)).Handle;注:该调用不能在多线程里面使用
阅读全文
posted @ 2013-09-24 10:46
电脑小白
阅读(1601)
推荐(0)
摘要:
随便看了一下,原来我的园龄也一年多了,但发现里面什么也没有,有点小失落啊。但在这一段时间里面向园友们学了不少东西,先谢谢了。决定以后把学来的东西储存进来,以便自己和园友们共同学习,提高。
阅读全文
posted @ 2012-06-28 10:05
电脑小白
阅读(122)
推荐(0)