Hi,
why is this working:
<
telerik:RadRibbonWindow
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
x:Class
=
"N4W.App.GuiLayer.Modules.OperatingCostsModule.Views.ProceedTest"
xmlns:local
=
"clr-namespace:N4W.App.GuiLayer.Modules.OperatingCostsModule.Views"
mc:Ignorable
=
"d"
Height
=
"200"
Width
=
"400"
d:DesignHeight
=
"450"
d:DesignWidth
=
"800"
>
<
telerik:RadRibbonWindow.Resources
>
<
ResourceDictionary
>
<
ResourceDictionary.MergedDictionaries
>
<!--<
ResourceDictionary
>
<
Style
TargetType
=
"local:ProceedTest"
BasedOn
=
"{StaticResource RadRibbonWindowStyle}"
/>
</
ResourceDictionary
>-->
<
ResourceDictionary
Source
=
"RibbonWindowStyle.xaml"
/>
</
ResourceDictionary.MergedDictionaries
>
</
ResourceDictionary
>
</
telerik:RadRibbonWindow.Resources
>
<
Grid
>
<
TextBlock
Text
=
"Hallo"
/>
</
Grid
>
</
telerik:RadRibbonWindow
>
where the content of RibbonWindowStyle.xaml is:
<
ResourceDictionary
xmlns
=
"http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:local
=
"clr-namespace:N4W.App.GuiLayer.Modules.OperatingCostsModule.Views"
>
<
Style
TargetType
=
"local:ProceedTest"
BasedOn
=
"{StaticResource RadRibbonWindowStyle}"
/>
</
ResourceDictionary
>
pic RadWindow2.jpg
and this is not working:
<
telerik:RadRibbonWindow
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
x:Class
=
"N4W.App.GuiLayer.Modules.OperatingCostsModule.Views.ProceedTest"
xmlns:local
=
"clr-namespace:N4W.App.GuiLayer.Modules.OperatingCostsModule.Views"
mc:Ignorable
=
"d"
Height
=
"200"
Width
=
"400"
d:DesignHeight
=
"450"
d:DesignWidth
=
"800"
>
<
telerik:RadRibbonWindow.Resources
>
<
ResourceDictionary
>
<
ResourceDictionary.MergedDictionaries
>
<
ResourceDictionary
>
<
Style
TargetType
=
"local:ProceedTest"
BasedOn
=
"{StaticResource RadRibbonWindowStyle}"
/>
</
ResourceDictionary
>
<!--<ResourceDictionary Source="RibbonWindowStyle.xaml" />-->
</
ResourceDictionary.MergedDictionaries
>
</
ResourceDictionary
>
</
telerik:RadRibbonWindow.Resources
>
<
Grid
>
<
TextBlock
Text
=
"Hallo"
/>
</
Grid
>
</
telerik:RadRibbonWindow
>
pic RadWindow1.jpg
For me both versions should end up in the same result, or what is the difference?!
BR Gert