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
精彩评论