PresetsWindow : unable to override

Post Reply
User avatar
strobotone
Posts: 297
Joined: Wed Nov 23, 2011 2:59 pm
Location: berlin
Contact:

PresetsWindow : unable to override

Post by strobotone »

Is there a way to override the default PresetsWindow style?
I did a ControlTemplate within the ParameterWindow.xaml and addressed it with : TargetType="{x:Type l:PresetsWindow}"
(since it is a childwindow) but that does not work.
oskari
Site Admin
Posts: 296
Joined: Mon Nov 21, 2011 2:04 pm

Re: PresetsWindow : unable to override

Post by oskari »

x:Key="{x:Type l:PresetsWindow}" TargetType="{x:Type l:PresetsWindow}"

Setting Key to the type overrides the default style.
User avatar
strobotone
Posts: 297
Joined: Wed Nov 23, 2011 2:59 pm
Location: berlin
Contact:

Re: PresetsWindow : unable to override

Post by strobotone »

Yes, it should. But for some reason it does not.
Also tested outside ParameterWindow.xaml.
Not even setting "OverridesDefaultStyle"="true" makes a difference.
Post Reply