随笔分类 -  WPF

摘要:倒影效果 代码 更加复杂的应用 参考 https://blogs.msdn.microsoft.com/wpfedevcon/2007/01/05/use-transforms-and-o... 阅读全文
posted @ 2017-02-08 17:40 霍旭东 阅读(1569) 评论(0) 推荐(1) 编辑
摘要:WebBrowser WebBrowser 报错如何屏蔽 CEF(Chromium Embedded Framework) 参考 WPF, Chrome Embedded and WebApi Self-hosted介绍了WPF通过CEF调用WebAPI CEFSharp.WPF – Getting Started CefSharp.Tutorial 个人更喜欢... 阅读全文
posted @ 2015-12-11 13:14 霍旭东 阅读(1081) 评论(0) 推荐(0) 编辑
摘要:WPFTextBoxAutoComplete AvalonEdit WPF SyntaxHighlightBox WinForm 下的 Fast Colored TextBox for Syntax Highlighting 阅读全文
posted @ 2015-09-11 15:58 霍旭东 阅读(423) 评论(0) 推荐(0) 编辑
摘要:现在物联网概念这么火,如果监控的信息能够实时在手机的客服端中以3D形式展示给我们,那种体验大家可以发挥自己的想象。 3D 用来增加视觉效果,给人以更加直观,真实的感觉。 3D如此美妙,那我们在WPF中又该从何处入手开启我们的3D编程旅程? 阅读全文
posted @ 2015-08-07 11:38 霍旭东 阅读(22418) 评论(11) 推荐(18) 编辑
摘要:Use a ScaleTransform with a ScaleX of -1 for horizontal and ScaleY of -1 for vertical flipping, applied to the image's RenderTransform property. Using RenderTransformOrigin="0.5,0.5" on the image make... 阅读全文
posted @ 2015-08-05 11:33 霍旭东 阅读(714) 评论(0) 推荐(0) 编辑
摘要:在给ImageBrush绑定动态图片是会报以下错误。 Error 4 The provided DependencyObject is not a context for this Freezable. Parameter name: context MSDN 中是怎么说的呢? A Freezable is a special type of object ... 阅读全文
posted @ 2015-07-31 14:31 霍旭东 阅读(813) 评论(0) 推荐(0) 编辑
摘要:引言 WPF中微软提供了一些基本的控件,但是工作中这些基础的控件往往不能满足我们的需求,这个时候我们就需要根据实际的需求去开发自己的控件,但要注意不是所有功能不满足的情况都需要通过自定义控件来实现。实际上一旦用到自定义控件,说明WPF提供的Style,Datatemplate,ControlTemplate的特性已不能满足我们的需求啦。 自定义控件简介 继... 阅读全文
posted @ 2015-05-07 21:53 霍旭东 阅读(433) 评论(0) 推荐(0) 编辑
摘要:示例: XAML(代码A): 请留意上面加粗文字部分。 WPF提供两个类来描述路径数据:一个是StreamGeometry,另一个是PathFigureCollection。 类似:的形式是StreamGeometry的XAML代码表示形式... 阅读全文
posted @ 2015-04-24 09:44 霍旭东 阅读(8413) 评论(0) 推荐(3) 编辑
摘要:自定义样式1 效果: 代码: 自定义样式2 效果: 代码: 参考 继续聊WPF——自定义CheckBox控件外观 Custom WPF check box with inner shadow effect. 阅读全文
posted @ 2015-04-21 15:37 霍旭东 阅读(2741) 评论(0) 推荐(0) 编辑
摘要:简介 图解 参考 Using the Model-View-ViewModel Pattern 阅读全文
posted @ 2015-04-15 10:35 霍旭东 阅读(532) 评论(0) 推荐(0) 编辑
摘要:控件:IconURLSupplierDynamic Data Display2009Windows Presentation Foundation (WPF)2010MicrosoftModern UI (Metro) Charts for Windows 8, WPF, Silverlight20... 阅读全文
posted @ 2015-04-15 09:51 霍旭东 阅读(7694) 评论(0) 推荐(0) 编辑
摘要:原文:http://brianlagunas.com/future-prism-library-meet-new-team/The Prism Library was born in 2008 in the offices of the Microsoft’s Patterns and Practi... 阅读全文
posted @ 2015-03-26 23:53 霍旭东 阅读(267) 评论(0) 推荐(0) 编辑
摘要:DockPanel The nice thing about dock panels is they already fill all the available space. LastChildFill is true by default (but I set it below for clarity), so just don't set the DockPanel attribut... 阅读全文
posted @ 2015-03-19 10:22 霍旭东 阅读(425) 评论(0) 推荐(0) 编辑
摘要:通过Style实现对Texbox添加水印 阅读全文
posted @ 2015-03-04 14:17 霍旭东 阅读(700) 评论(0) 推荐(0) 编辑
摘要:Style定义实例 给Textbox定义一个阴影效果。 UpdateSourceTrigger 默认UpdateSourceTrigger为LostFoucs,有时需要及时CommitValue,则需要设置为PropertyChanged。这样当Text属性的值发生变化时,我们的值就能及时更新到Datasource中。 更多参考 How to: Cont... 阅读全文
posted @ 2015-03-04 12:47 霍旭东 阅读(3080) 评论(0) 推荐(3) 编辑
摘要:MMVM模式示意图。 View绑定到ViewModel,然后执行一些命令在向它请求一个动作。而反过来,ViewModel跟Model通讯,ViewModel告诉Model更新来响应UI。 这样便使得为应用构建UI外观设计相对独立,也非常容易替换UI设计(“随心所欲”设计你的界面)。... 阅读全文
posted @ 2015-03-03 14:30 霍旭东 阅读(744) 评论(0) 推荐(0) 编辑
摘要:MUHAMMAD SHUJAAT SIDDIQI 阅读全文
posted @ 2015-03-03 09:24 霍旭东 阅读(239) 评论(0) 推荐(0) 编辑
摘要:Multithreaded UI: HostVisualCreating a Busy Indicator in a separate thread in WPF 阅读全文
posted @ 2015-02-25 14:26 霍旭东 阅读(539) 评论(0) 推荐(0) 编辑
摘要:示例 参考 WPF combobox SelectedValue binding to string Confused with wpf ComboBox DisplayMemberPath,SelectedValue and SelectedValuePath 阅读全文
posted @ 2015-02-06 17:10 霍旭东 阅读(443) 评论(0) 推荐(0) 编辑
摘要:Stackpanel: Height vs ActualHeight vs ExtentHeight vs ViewportHeight vs DesiredSize vs RenderSize 阅读全文
posted @ 2015-02-06 15:51 霍旭东 阅读(205) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示