Page 1 of 1

PresetsWindow : unable to override

Posted: Wed Feb 22, 2012 5:04 pm
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.

Re: PresetsWindow : unable to override

Posted: Thu Feb 23, 2012 6:09 am
by oskari
x:Key="{x:Type l:PresetsWindow}" TargetType="{x:Type l:PresetsWindow}"

Setting Key to the type overrides the default style.

Re: PresetsWindow : unable to override

Posted: Thu Feb 23, 2012 11:39 am
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.