Ribbon

Cannot find source for binding with reference with RibbonComboBox

不羁岁月 提交于 2019-12-07 23:54:36
问题 I'm trying to learn WPF and seem to be getting an error I really don't fully understand. System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.Ribbon.RibbonWindow', AncestorLevel='1''. BindingExpression:Path=WindowState; DataItem=null; target element is 'Ribbon' (Name=''); target property is 'NoTarget' (type 'Object') System.Windows.Data Error: 4 : Cannot find source for binding with reference

FeignClient超时配置

百般思念 提交于 2019-12-07 18:46:57
1前沿 使用Feign调用接口分两层,ribbon的调用和hystrix的调用,所以ribbon的超时时间和Hystrix的超时时间的结合就是Feign的超时时间 1.1ribbon配置 ribbon: OkToRetryOnAllOperations: false #对所有操作请求都进行重试,默认false ReadTimeout: 3000 #负载均衡超时时间,默认值5000 ConnectTimeout: 2000 #ribbon请求连接的超时时间,默认值2000 MaxAutoRetries: 0 #对当前实例的重试次数,默认0 MaxAutoRetriesNextServer: 0 #对切换实例的重试次数,默认1 1.2 hystrix熔断配置 hystrix: command: default: #default全局有效,service id指定应用有效 execution: timeout: #是否开启超时熔断 enabled: true isolation: thread: timeoutInMilliseconds: 4000 #断路器超时时间,默认1000ms feign: hystrix: enabled: true 2测试各个配置的效果 开了一个Eureka服务中心 开了两个个服务eureka-client,端口分别为 8762 和 8763 ,进行负载均衡

How to disable Excel built-in RibbonButton?

99封情书 提交于 2019-12-07 15:24:18
问题 Is it possible to set an excel 2010 built in RibbonButton to enabled=false from an excel VSTO Add-In? I tried the following: CommandBarControls controlls=Globals.ThisAddIn.Application.CommandBars.FindControls(MsoControlType.msoControlButton, 7374, null, false); /// 7374 is the office control id of the control I want to access foreach (CommandBarControl control in controlls) { control.Enabled = false; } But this seems to work only for the right click context menu. And not for the ribbon

Ribbon Toolbar and Visual Studio 2008 Service Pack 1

≡放荡痞女 提交于 2019-12-07 07:44:42
问题 Today I was listening to the Hanselminutes show about .NET 3.5 SP1...What's inside, and they twice mentioned the Office 2007-like Ribbon control that is included in Visual Studio 2008 Service Pack 1. I am very interested about this, as I was previously looking at purchasing this from a 3rd party vendor (likely DevComponent's DotNetBar). However, I did some research this morning and have found nothing about this control being included for use with C# and WPF. Does anyone know more about the

RibbonComboBox selected gallery item reverts to old value on mouse leave

﹥>﹥吖頭↗ 提交于 2019-12-07 04:10:20
问题 i have replaced WPF ribbons to the newest library, the combobox selection changed triggers reload of datagrid. I have problem with the RibbonComboBox. If i leave with mousecursor out of the selected item, the selected item is reverted to the old item. if i keep cursor on the selected item until the datagrid reload is finished, the new value is accepted to the ribboncombobox. Do i miss some special ribboncombobox property to accept change by click only or this is a bug in the combobox

Error in nested RibbonApplicationMenuItem

萝らか妹 提交于 2019-12-07 03:07:54
问题 I want to build a RibbonApplicationMenu . Within it shall be a nested RibbonApplicationMenuItem or RibbonApplicationSplitMenuItem , e.g. likes this: <ribbon:RibbonApplicationSplitMenuItem x:Name="item1" Header="open project" ImageSource="../img/img1.png"> <ribbon:RibbonApplicationMenuItem x:Name="item11" Header="sub1" ImageSource="../img/img2.png" /> <ribbon:RibbonApplicationMenuItem x:Name="item12" Header="sub2" ImageSource="../img/img3.png" /> <ribbon:RibbonApplicationMenuItem x:Name=

WPF Ribbon Tab view in Designer

亡梦爱人 提交于 2019-12-06 23:07:22
问题 I'm using "Microsoft Ribbon for WPF" and creating multiple RibbonTab. I cannot figure out a way to view/focus different tabs in the designer and it by default show the "Home" tab. To see design/xaml changes I made to tabs other than the "Home" tab, I have to debug the project every time and click through the tabs, which is not very convenient. Or I can command out the tab xaml I want to to ignore. Anyone body out there has a solution? 回答1: You can also use the SelectedIndex property on the

How can I add the images to button using the ribbon xml?

老子叫甜甜 提交于 2019-12-06 21:42:56
问题 How to add the custom images to the ribbon button in the tab and the context menu. I tried the link Adding Image to ribbon button but no luck :-(. I am designing the addin for Excel. I added this in the header. <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load" loadImage="Ribbon_LoadImage"> <button id="btn2d" keytip="L" screentip="2D Visualization" supertip="2D Part Visualization" label="2D" size="large"/> <contextMenu idMso="ContextMenuCell"> <button

Github Fork 缎带.html

眉间皱痕 提交于 2019-12-06 16:46:06
/*--> */ /*--> */ <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> .ribbon { background-color: #a00; overflow: hidden; /* top left corner */ position: absolute; left: -3em; top: 2.5em; /* 45 deg ccw rotation */ -moz-transform: rotate(-45deg); -webkit-transform: rotate(-45deg); /* shadow */ -moz-box-shadow: 0 0 1em #888; -webkit-box-shadow: 0 0 1em #888; } .ribbon a { border: 1px solid #faa; color: #fff; display: block; font: bold 81.25% 'Helvetiva Neue', Helvetica, Arial, sans-serif; margin: 0.05em 0 0.075em 0; padding: 0.5em 3.5em; text-align: center; text

Styling Ribbon from the RibbonControlsLibrary

别来无恙 提交于 2019-12-06 15:09:25
问题 Ribbon is nice. I want to make it nicer... (IMHO) With the Ribbon (from RibbonControlsLibrary on .NET 3.5 sp1), it is ok to change some backgrounds and foregrounds. But the thing I want to re-style is the white "mask" (linear gradient brush with alpha) that seats in the "background" of the RibbonTabGroup. I saw it with Snoop. I found it in the style. <LinearGradientBrush x:Key="[49] Í" StartPoint="0.5,0.0" EndPoint="0.5,1.0"> <GradientStop Color="#EEFFFFFF" Offset="0.0" /> <GradientStop Color