摘要: <!-- 两个按钮来回切换样式 --> <Style x:Key="SwicthFunctionMetroToggleButton" TargetType="{x:Type ToggleButton}"> <Setter Property="Background" Value="White" /> 阅读全文
posted @ 2019-05-20 13:31 Index_Zero 阅读(1724) 评论(0) 推荐(0) 编辑
摘要: public static class SystemMenuManager { [DllImport("user32.dll", EntryPoint = "GetSystemMenu")] private static extern IntPtr GetSystemMenu(IntPtr hwnd 阅读全文
posted @ 2019-05-16 13:23 Index_Zero 阅读(618) 评论(0) 推荐(0) 编辑
摘要: namespace Microsoft.Win32 选择文件: if (string.IsNullOrEmpty(folderInitialDirectory)) { folderInitialDirectory = FileAndFolderOperation.Instance.GetUserDo 阅读全文
posted @ 2019-05-05 13:28 Index_Zero 阅读(1440) 评论(0) 推荐(0) 编辑
摘要: 本示例必须在prism5.0版本以上 PopupWindowAction如何使用MetroWindow? public class Window1ViewModel:BindableBase,IInteractionRequestAware { #region Properties private 阅读全文
posted @ 2019-04-04 16:03 Index_Zero 阅读(786) 评论(0) 推荐(0) 编辑
摘要: 写的非常详细: 作者地址:https://www.cnblogs.com/atskyline/archive/2012/11/16/2773806.html 参考资料: http://www.codeproject.com/Articles/14340/Creating-a-look-less-cu 阅读全文
posted @ 2018-12-15 13:51 Index_Zero 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 当然这只是个半成品,还可以向NavigationPanel中加入子控件来做一个完整的导航。 用MeasureOverride和 ArrangeOverride做导航最大的好处是: 1、在控件的最上层 2、可以随着窗体大小来调整Height 导航实现方式有很多,这个纯粹是为了MeasureOverri 阅读全文
posted @ 2018-12-12 15:51 Index_Zero 阅读(285) 评论(0) 推荐(0) 编辑
摘要: public class Diagnol:Panel { /// /// 测量 /// /// This的尺寸 /// protected override Size MeasureOverride(Size availableSize) { Si... 阅读全文
posted @ 2018-12-12 15:15 Index_Zero 阅读(295) 评论(0) 推荐(0) 编辑
摘要: XAML调试工具不见了怎么办? 1、调试 > 选项 > 选中 启用XAML的UI调试工具 2、调试 > 选项 > 禁用 使用托管兼容模式 欧了! 阅读全文
posted @ 2018-12-10 19:54 Index_Zero 阅读(578) 评论(0) 推荐(0) 编辑
摘要: 就是这种错误。这种错误怎么办? 以下步骤: (以上图dll为例) 1、看项目的Debug文件夹下是否有以下三个文件 2、看项目的.csproj文件下引用的报错dll的publickeytoken和版本是否正确 [可能需要使用sn.exe 来查看 dll的publickey值],我也不知道为什么vs重 阅读全文
posted @ 2018-12-10 13:24 Index_Zero 阅读(2203) 评论(2) 推荐(0) 编辑
摘要: GAC : ———> 全局程序集缓存 介绍GAC的好文章(怎么:生成SNK,给项目加强名称,加入到GAC,多个版本共存,介绍了不同的工具): http://www.makaidong.com/%E5%8D%9A%E5%AE%A2%E5%9B%AD%E6%8E%A8%E8%8D%90/48783.sh 阅读全文
posted @ 2018-12-09 16:51 Index_Zero 阅读(210) 评论(0) 推荐(0) 编辑