摘要: 右键菜单,tootip等弹出时,弹出的位置经常在左侧,使用体验不好。 弹出方向有左对齐和右对齐 SystemParameters.MenuDropAlignment 当右对齐时,值为false 可以在控制面板中查看当前的设置: 如何在软件中强制向右弹出显示? 可以设置SystemParameters 阅读全文
posted @ 2020-10-14 15:37 Index_Zero 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 2020/3/30 ScaleTransform :控件缩放,ScaleX,ScaleY,两个值都是取(0到1) BlurEffect :模糊控件 Radius RenderTransformOrigin :渲染变换的点。例如:一个圆,他的中心点就是(0.5,0.5),两个值都是取(0到1) <Bo 阅读全文
posted @ 2020-03-20 10:58 Index_Zero 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 1、MeasureOverride测量方法,ArrangeOverride排列方法。 2、当自己写容器时会用到这两个方法,需要在自定义类中重写MeasureOverride和ArrangeOverride(名字也能看出) //测量public class NavigationPanel:Panel 阅读全文
posted @ 2020-03-19 13:40 Index_Zero 阅读(352) 评论(0) 推荐(1) 编辑
摘要: <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="ViewStates"> <VisualStateGroup.Transitions> <VisualTransition GeneratedDuration="0:0: 阅读全文
posted @ 2020-03-18 16:11 Index_Zero 阅读(1075) 评论(0) 推荐(0) 编辑
摘要: 1、同步方法中有异步方法 执行顺序是:Await就等待。同步方法中当遇见异步方法中Await将直接跳出异步方法,继续往下执行同步方法的代码,当异步Await处理完后接着CallBack到异步方法中,执行(刚跳出)Await下面的代码 public void DoRun1() { Console.Wr 阅读全文
posted @ 2020-03-13 18:15 Index_Zero 阅读(1703) 评论(0) 推荐(0) 编辑
摘要: 直接上代码: 服务端: private static string ServerChannelId = $"ScanSnapHome-{Environment.UserName}"; var serverChannel = IpcServerChannelUtil.GetIpcServerChann 阅读全文
posted @ 2020-03-10 14:20 Index_Zero 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 什么是委托?委托是种:引用方法的对象。 此对象可以将指针指向引用的方法,也可以说对象(委托)将消息发给订阅者(方法) 什么是事件?事件与委托的区别?事件是种:特殊的委托区别:事件是解决委托的两个缺陷1、不小心取消掉订阅者 (封装订阅) 委托允许使用 +=和= 两种运算符,就会导致不小心取消掉订阅者, 阅读全文
posted @ 2019-12-23 13:55 Index_Zero 阅读(2185) 评论(0) 推荐(0) 编辑
摘要: <Style x:Key="MyFocusVisual"> <Setter Property="Control.Template"> <Setter.Value> <ControlTemplate> <Rectangle Margin="-2" StrokeThickness="1" Stroke= 阅读全文
posted @ 2019-06-11 09:42 Index_Zero 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 牛牛的博客 https://www.cnblogs.com/smallidea/p/3412699.html 参照官网教程: https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/focus-overview#Keyboard_ 阅读全文
posted @ 2019-06-06 10:24 Index_Zero 阅读(466) 评论(0) 推荐(0) 编辑
摘要: http://idea.iteblog.com/ http://idea.iteblog.com/key.php http://xidea.online 阅读全文
posted @ 2019-05-28 15:35 Index_Zero 阅读(165) 评论(0) 推荐(0) 编辑