English 中文(简体)
• 如何实施WPF Ribbon Contextual Tabs MVVM
原标题:How to implement WPF Ribbon Contextual Tabs MVVM way
  • 时间:2011-06-24 13:21:35
  •  标签:
  • c#
  • wpf
  • ribbon

I m 采用WPF Ribbon控制,利用SI许可证网站作为主要菜单开发微型和小型机械设备。 我不能约束或某种方式将背景表格注入我方言的控制。 我不想在我的主要观点中储存所有带有背景标志和指挥约束力的表格,我想根据所选观点使用这种表格,并同样地储存这种表格,或者仅以这种表格为特殊观点。 是否可能?

问题回答

One thing you could do is to write Styles or even ControlTemplates for the various RibbonTabs in your App.config, avoiding the need to put that markup in the MainWindow. Then simply add all the RibbonTabs into the Ribbon in MainWindow.xaml and set the Visibility properties of each by binding to the main view model. You could use a load of bool properties in the main view model with a simple bool to Visibility converter.





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签