Quantcast
Channel: Ribbon for WPF - Recent Posts
Viewing all articles
Browse latest Browse all 1458

Global style is not applied as expected on the RibbonControl

$
0
0

Hello,

We are trying to have a global style for all RibbonControls in the application. But the style is not getting applied on the ribbonwindows. Attached is the sample application. 

 

In the below sample, the global style gets applied to the TextBox but not to the RibbonWindow.

Resource fie

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon"    ><Style TargetType="{x:Type ribbon:RibbonWindow}"><Setter Property="IsGlassEnabled" Value="False"/><Setter Property="BorderThickness" Value="10"/><Setter Property="ApplicationName" Value="Dummy Window"/></Style><Style TargetType="{x:Type TextBox}"><Setter Property="Background" Value="Red"/><Setter Property="BorderThickness" Value="10"/></Style></ResourceDictionary>

 

<ribbon:RibbonWindow  x:Class="WpfApplication1.MainWindow"
    x:Name="winDMLogin" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon"    ><Grid><StackPanel Orientation="Vertical"><TextBox Text="Text"></TextBox></StackPanel></Grid></ribbon:RibbonWindow>

 

Thanks.


Viewing all articles
Browse latest Browse all 1458

Trending Articles