问题标签 [ribboncontrolslibrary]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - RibbonGallery items 命令单击
使用 WPF MVVM'ish 风格。尝试使用由于某种原因可单击的项目创建 RibbonGallery 我无法让项目启动我的委托命令
XAML 代码:
数据上下文已设置为视图模型。视图模型:
我已经使用标准按钮测试了这个命令并触发了它,但是使用特定的 XAML 代码我无法在我的 RibbonGallery 控件中获得可点击的项目。
有任何想法吗?
c# - 如何解决 RibbonApplicationMenu 的绑定错误
这是xaml:
查看型号:
绑定错误:
System.Windows.Data 错误:40:BindingExpression 路径错误:在“对象”“EmployeeViewModel”(HashCode=41834681)上找不到“ImageUri”属性。绑定表达式:路径=ImageUri;DataItem='EmployeeViewModel' (HashCode=41834681); 目标元素是'RibbonApplicationMenu'(名称='');目标属性是“SmallImageSource”(类型“ImageSource”)
System.Windows.Data 错误:40:BindingExpression 路径错误:在“对象”“RibbonContentPresenter”(名称=“PART_ContentPresenter”)上找不到“IsDropDownOpen”属性。绑定表达式:路径=IsDropDownOpen;DataItem='RibbonContentPresenter'(名称='PART_ContentPresenter');目标元素是'RibbonButton'(名称='');目标属性是“NoTarget”(类型“对象”)
我在这里缺少什么?
c# - 当 Windows dpi 值为 125% 或更大时,RibbonGallery 中的异常
我在我的 WPF 应用程序中使用RibbonGallery 。
视图模型:
当我打开 RibbonGallery 并单击其中一个 RibbonGalleryItem 时,将打开所需的屏幕,并自动关闭 RibbonGallery。但是,如果该特定屏幕已经打开,并且我再次单击相同的 RibbonGalleryItem,RibbonGallery 将保持打开状态。
要手动关闭 RibbonGallery,我重置了 RibbonGallery 的 ItemSource 的值,如下所示:
这成功关闭了 RibbonGallery,但是当 Windows dpi 值设置为 125%,并且单击了相同的 RibbonGalleryItem(其屏幕已经处于焦点)时,我得到以下异常:
值不能为 NULL。参数名称:PresentationCore 中的 menuSite
这是堆栈跟踪:
仅当 Windows dpi 值为 125% 或更高时才会出现此问题。
此外,这无法在调试模式下重现。
有关此异常的实际原因的任何想法以及有关如何解决此问题的任何建议?
c# - 应用程序/窗口图标未显示在 QAT RibbonControl 中
我正在使用一个有功能区的 WPF 应用程序。我还有一个快速访问工具栏 (QAT)。正如您在此处看到的,没有显示窗口/应用程序图标,而是该位置是空的。
我搜索了很多,我什至尝试了 RibbonWindow,但在 QAT 中这个地方仍然是空的。请让我知道我是否遗漏了我应该设置的任何属性?
我的xml:
c# - WPF RibbonWindow Minimize, Maximize / Restore, and Close Buttons Not Visible
So I've googled all day trying to find an answer and have come up short. I've found stuff close and maybe even found a solution and just didn't realized it but I cant seem to get the Minimize, Maximize / Restore, and Close buttons to show up (be visible) on my windows 10 machine. No one but myself and another developer who just got new laptops have this issue. I've tried changing my windows theme around and I did get them to show up with I turned some high contrast setting on but no luck otherwise. Despite not being visible they are there and functional because I can click in the area and see the window min, max, restore, close.
We are using .Net 4.0 and a RibbonWindow with a custom theme (BureauBlue.xaml). I'd like to believe it may have something to do with that but I don't know anything about it or where to start unfortunately.
Another thing I noticed but haven't verified by pulling out my old laptop yet is I'm pretty sure the nice looking buttons showed up at design time as well and didn't look like this.
Bonus question/issue is sometimes when our computers go to sleep/hibernate go from docking station to no station (not sure which one or both) the theme bar will also randomly black out like this. If I could look at fixing this at the same time that would be great.
I did change it to a normal Window and was able to see all the buttons correctly but I guess I'd rather not go that route and know what the issue is and solve it.
Any thoughts ideas or suggestions are greatly appreciated.
Edit: So I don't think it has anything to do with the theme? I commented out everything having to do with the theme and they still don't show up... Not sure why I didn't take that simple step a long time ago.
c# - WPF 应用程序 .Core 3.0 和 microsoft 功能区控件库 4.0
您好,我尝试使用 WPF、.Netcore 3.0 和 microsoft 功能区控件库 4.0 构建应用程序,但失败了。
我需要帮助或网络上的示例。我确实在 GitHub 上查看了Microsoft WPF-Sample,但没有找到适用于 .netcore 3.0 的功能区示例
主窗口.Xaml
主窗口.cs
参考:Github 项目
vba - 集成用于将注释消息文本框添加到现有 .docm 模板的宏
我知道如何自定义功能区栏以添加新选项卡以及预定义的文本框元素如何工作,但它是系统特定的。如下:

我真正需要的是集成一个宏,用于将注释消息文本框添加到 Springer Publishing 模板中的现有 .docm 中,如下图所示:

怎么做?