开发者

XAML Style Ribbon Bar

开发者 https://www.devze.com 2023-04-05 03:07 出处:网络
I am new to Ribbons, can you please tell me how i style the Ribbon Bar in Visual Studio? Got some probs here. Which 开发者_JAVA百科is the right selector for the bar? I tried this one

I am new to Ribbons, can you please tell me how i style the Ribbon Bar in Visual Studio? Got some probs here. Which 开发者_JAVA百科is the right selector for the bar? I tried this one

Style TargetType="custom:Ribbon"

and

Style TargetType="ribbon:RibbonTab"

I also tried to extract the Ribbon Style from Blend. But i cant include it to my VS project because custom:Ribbon is seems to be wrong.

Best regards


You should have Xml namespace decleration like so:

xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"

with styles such as..

<Style TargetType="{x:Type ribbon:Ribbon}">

or

<Style TargetType="{x:Type ribbon:RibbonTab}">

A good start is the samples available alongside the library itself: here

0

精彩评论

暂无评论...
验证码 换一张
取 消