问题标签 [ribbon-control]
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# - 使用 c# 为 excel 2010 打开两个功能区,一次加载
我有两条要加载的色带,一条在主色带上,一条在后台。我必须在覆盖方法中加载这两个,但我遇到了麻烦:
如果我这样做,Ribbon1 会显示,但后台不会,如果我这样做:
我无法使用 RibbonManager 创建抽象类或接口的实例。我被卡住了,有人可以帮忙吗?
visual-studio-2010 - Microsoft.SharePoint.WebControls.SPRibbon 在 Sharepoint 沙盒解决方案中不起作用?
我想在沙盒解决方案中使用 Webpart 创建上下文选项卡..那个时候我得到如下错误当我添加 Custom-Webpart 时:
Web 部件错误:部分信任应用程序域中的沙盒代码包装器的 Execute 方法引发了未处理的异常:发生了意外错误。
在我的 Webpart 的代码中
是否有另一种解决方案来创建自定义功能区选项卡?
sharepoint-2010 - CRM 2011 - 导出翻译问题 - 功能区中的 LocLabels 问题
我最近在导出实体的翻译时遇到了一些问题。起初我认为问题不仅仅在于功能区。但经过一些测试,我发现是我的 LocLabels 导致了问题。按钮本身(+ 在线翻译)工作正常!我在 Ribbon-XML 中定义了 3 种使用的语言(“荷兰语”、“法语”和“英语”),一切似乎都被正确翻译了。但是当我想导出该特定实体的翻译时,似乎什么都没有发生......
如果不是“$LocLabels:”,我只使用纯文本,一切似乎都正常,我可以导出该实体的翻译。
XML 如下所示:
自定义操作 XML 片段
LocLabels XML 片段
有没有人遇到和我们一样的问题?
wpf - RibbonComboBox 如何做“文本更改事件”
我想获取在功能区组合框中输入的值来过滤我的列表视图,但它没有“文本更改事件”,如果我使用 KeyUp/Down 事件或 PreviewTextIntput 它会重置组合框的值
如果我像下面那样尝试combobox.text
得到正确的值,但选择从组合框的开头开始。
使用ribbonComboBox - 来自Microsoft http://msdn.microsoft.com/en-us/library/ff799534.aspx 下载链接:http ://www.microsoft.com/download/en/details.aspx?id=11877
c# - 将 Ribbon 控件与 Caliburn Micro 接口的好方法是什么?
我在我的项目中使用 Caliburn Micro,我决定使用 Fluent Ribbon 作为 UI 的一部分。我的 ShellView 非常简单,布局如下:
- 带 4 个选项卡的功能区控件。
- 活动项目。
活动项目根据功能区的选定选项卡动态更改。
问题:
将 Ribbon 控件用作我当前活动的 ViewModel (ActiveItem) 的第二个视图的正确方法是什么,同时保持模块化和 CM 本身继承的所有好东西?另外,在我的 ViewModel 之间“共享”我的 Ribbon 控件需要什么?
细节:
我的 ShellViewModel 属于“ Conductor.Collection.OneActive ”类型,它将 ActiveItem 更改为我与选定选项卡关联的特定 ViewModel(触发事件时)。
我的功能区在 XAML 中定义如下:
如图所示,功能区控件绑定到当前活动项,因为它是上下文视图。这实际上适用于一个视图,因为由于默认的 CM 约定,它会在子命名空间中查找上下文视图(例如,如果我的视图路径是Views.TasksTabView,它将在Views.TasksTab 中查找上下文视图。丝带)。
问题是,当我更改 ActiveItem 时,由于命名空间不同,无法再定位上下文视图,因此它仅适用于一个选项卡。
我也尝试过编写自己的 ViewLocator 约定,但没有成功。
谢谢你。
c# - WPF 应用程序功能区崩溃
我在 Visual Studio 2008 中创建了一个带有多个窗口的程序。其中一个窗口使用窗口功能区控件。现在该程序在我的计算机(Windows XP)上运行良好,但是当我想在另一台全新安装了 .net 3.5 SP1 的计算机上运行它时,我可以启动该程序,但是当我使用功能区控件打开窗口时出现崩溃。这是我尝试 catch 时得到的错误文件:
System.Windows.Markup.XamlParseException:调用的目标已引发异常。对象“System.Windows.Data.Binding”出错。---> System.Reflection.TargetInvocationException:调用的目标已抛出异常。---> System.ComponentModel.Win32Exception: HRESULT_FROM_WIN32(ERROR_NOT_FOUND) at Standard.HRESULT.ThrowIfFailed(String message) at Standard.NativeMethods.GetCurrentThemeName(String& themeFileName, String& color, String& size) at Microsoft.Windows.Shell.SystemParameters2._InitializeThemeInfo () 在 Microsoft.Windows.Shell.SystemParameters2..ctor() 在 Microsoft.Windows.Shell.SystemParameters2.get_Current() --- 内部异常堆栈跟踪结束 --- 在 System.RuntimeMethodHandle._InvokeMethodFast(Object target,
在 System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfoculture) 在 System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index) 在 System.Windows.Markup。在 System.Windows.Markup.BamlRecordReader.GetStaticExtensionValue(Int16 memberId) 在 System.Windows.Markup.BamlRecordReader.GetExtensionValue(IOptimizedMarkupExtension optimizeMarkupExtensionRecord, String propertyName) 在 System.Windows.Markup.TemplateBamlRecordReader.ReadPropertyWithExtensionRecord(BamlPropertyWithExtensionRecord) 的 StaticExtension.ProvideValue(IServiceProvider serviceProvider) bamlPropertyRecord) 在 System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord) --- 内部异常堆栈跟踪结束 --- 在 System.Windows.Markup。XamlParseException.ThrowException(字符串消息,异常 innerException,Int32 lineNumber,Int32 linePosition,Uri baseUri,XamlObjectIds currentXamlObjectIds,XamlObjectIds contextXamlObjectIds,Type objectType)在 System.Windows.Markup.XamlParseException.ThrowException(ParserContext parserContext,Int32 lineNumber,Int32 linePosition,字符串消息, 异常 innerException) 在 System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord) 在 System.Windows.Markup.TemplateBamlRecordReader.ReadNonContentRecord(BamlRecord bamlRecord) 在 System.Windows.Markup.TemplateBamlRecordReader.ReadRecord(BamlRecord bamlRecord) 在 System.Windows System.Windows.Markup.TemplateTreeBuilderBamlTranslator.ParseFragment() 处 System.Windows.Markup 处的 .Markup.BamlRecordReader.Read(Boolean singleRecord)。System.Windows.Markup.BamlRecordReader.ReadElementStartRecord(BamlElementStartRecord bamlElementRecord) 的 System.Windows.Markup.BamlRecordReader.ReadElementStartRecord(BamlElementStartRecord bamlElementRecord) 的 System.Windows.Markup.BamlRecordReader.ReadRecord( BamlRecord bamlRecord) 在 System.Windows.Markup.BamlRecordReader.ReadElement(Int64 startPosition, XamlObjectIds contextXamlObjectIds, Object dictionaryKey) 在 System.Windows.ResourceDictionary.CreateObject(Int32 valuePosition, Object key) 在 System.Windows.ResourceDictionary.RealizeDeferContent(Object key, System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache) 在 System.Windows.ResourceDictionary 的 Object& 值,Boolean&canCache)。在 System.Windows.DependencyPropertyChangedEventArgs.get_NewValue() 在 System.Windows.Controls.Control.OnTemplateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) 在 System.Windows.DeferredThemeResourceReference.GetValue(BaseValueSourceInternal valueSource) 在 System.Windows.DeferredThemeResourceReference.GetValue(Object key, Boolean& canCache)。 Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) 在 System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) 在 System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) 在 System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata 元数据, EffectiveValueEntry oldEntry, EffectiveValueEntry&newEntry,Boolean coerceWithDeferredReference, OperationType operationType) 在 System.Windows.StyleHelper.ApplyStyleOrTemplateValue(FrameworkObject fo, DependencyProperty dp) 在 System.Windows.StyleHelper.InvalidateContainerDependents(DependencyObject 容器, FrugalStructList1& exclusionContainerDependents, FrugalStructList
1& oldContainerDependents, FrugalStructList`1& newContainerDependents) 在 System.Windows.StyleHelper.DoThemeStyleInvalidations(FrameworkElement fe, FrameworkContentElement fce, Style oldThemeStyle, Style newThemeStyle, Style style) at System.Windows.StyleHelper.UpdateThemeStyleCache(FrameworkElement fe, FrameworkContentElement fce, Style oldThemeStyle,在 System.Windows.StyleHelper.GetThemeStyle(FrameworkElement fe, FrameworkContentElement fce) 在 System.Windows.FrameworkElement.UpdateThemeStyleProperty() 在 System.Windows.FrameworkElement.OnThemeStyleChanged(DependencyObject d, Object oldValue, Object newValue) 的样式 newThemeStyle, Style& themeStyleCache) System.Windows.FrameworkElement.OnInitialized(EventArgs e) 在 System.Windows.Controls.MenuItem。OnInitialized(EventArgs e) 在 System.Windows.FrameworkElement.TryFireInitialized() 在 System.Windows.FrameworkElement.EndInit() 在 System.Windows.Controls.ItemsControl.EndInit() 在 System.Windows.Markup.BamlRecordReader.ElementEndInit(Object& 元素) 在 System.Windows.Markup.BamlRecordReader.ReadElementEndRecord(Boolean fromNestedBamlRecordReader) 在 System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord) 在 System.Windows.Markup.BamlRecordReader.Read(Boolean singleRecord) 在 System.Windows.Markup。 System.Windows.Markup.TreeBuilder.Parse() 在 System.Windows.Markup.XamlReader.LoadBaml 中的 TreeBuilderBamlTranslator.ParseFragment()(流流,ParserContext parserContext,Object parent,Boolean closeStream)在 System.Windows.Application.LoadComponent(Object零件,Uri resourceLocator) 在 Waak.WeegschaalProgramma.WeegAuteurWindow.InitializeComponent() 在 Waak.WeegschaalProgramma.WeegAuteurWindow..ctor(WeegschaalProcessor weegschaalProcessor)
有人以前见过此错误或有任何提示可以帮助我吗?我已经删除了 .net 并完全重新安装了它。
winforms - 如何在 WinForms 上隐藏 devexpressribbonControl 栏项目
我想根据用户的标准隐藏DevExpress RibbonControl栏项目(我知道如何隐藏页面,但不知道 pageGroup 和项目)。但是,我觉得要找到合适的财产来做到这一点。我恳请您伸出援助之手。
谢谢
dynamics-crm - Dynamics CRM 2011:CommandProperties CrmParameter 在传递给 FlyoutAnchor JavaScript 函数时设置不正确
我正在尝试根据以下 SO 答案创建三个动态填充的 FlyoutAnchor 功能区按钮:将下拉菜单添加到 CRM 2011 功能区
所有三个 FlyoutAnchor 按钮都使用相同的PopulateQueryCommand。链接到命令的 JavaScript 函数(参见下面的代码块)获取作为第一个参数传递的CommandProperties CrmParameter,以便能够识别被单击的弹出按钮(并且应该填充动态添加的下拉菜单项)。
该函数被很好地调用并传递了“CommandProperties”参数(它不是null
和不是undefined
),但是当我尝试设置 PopulationXML 时出现错误,因为这个属性是undefined
. 下面列出的其他三个预期属性也是undefined
:
- SourceControlId:启动事件的 Ribbon 控件的 Id 值。
- CommandValueId:单击按钮时与命令事件一起发送的字符串。
- MenuItemId:从控件到菜单项的 Id 的引用。
当我传入第二个不同的 CrmParameter 时,例如PrimaryEntityTypeName,此参数已正确填充/设置。
CommandProperties
争论混乱的原因可能是什么?
2012 年 2 月 21 日更新:为了完整起见,我还尝试了单按钮方法,例如将下拉菜单添加到 CRM 2011 功能区中所述,但这给了我相同的结果(没有可用的 Commandproperties 对象)。我的 CRM 服务器正在运行 Rollup 6,这可能与它有关吗?有没有不同的方法来获得这种弹出式功能区菜单?也许是纯 JavaScript 的东西?它也应该在 Outlook CRM 客户端中工作......
ribbon - Fluent Ribbon 后台开启?
是否可以在 Fluent Ribbon 中以编程方式打开 Backstage 控件?
wpf - 最大化 WPF RibbonWindow 隐藏 Windows 任务栏
我有一个默认为最大化的 WPF RibbonWindow。问题是如果用户有他们的窗口的任务栏自动隐藏,一旦隐藏,它就不会回来。将鼠标悬停在屏幕底部似乎不会触发它。有什么想法可能导致这种情况吗?