I have a RadToolBar with two buttons in it. First, directly, a RadButton. This looks fine. It's border is removed, it's text is colored properly. I *assume* that the RadToolBar is applying a style to it.
Next, I have a custom control, local:DialogButton. The Template for this Control contains a RadButton. local:DialogButton is just a simple wrapper around a Rad:Button that sets it's command, and uses it differently. To encapsulate some functionality.
The RadButton inside of local:DialogButton is not styled properly.
How can I resolve this?
I was THINKING that the RadToolBar would have Style's for RadButton set in it's dictionary: and that they would thus be resolved for any children. This doesn't seem to be the case.
Or, is there a better way to encapsulate RadButton where all the expected stuff will work properly?
I chose to not inherit from RadButton because I wanted to hide the properties of RadButton that the user will not be able to use. The button does one thing. It requires the user only to set the Command. It dispatches this command differently than RadButton itself does. The user has no control over much else.
Next, I have a custom control, local:DialogButton. The Template for this Control contains a RadButton. local:DialogButton is just a simple wrapper around a Rad:Button that sets it's command, and uses it differently. To encapsulate some functionality.
The RadButton inside of local:DialogButton is not styled properly.
How can I resolve this?
I was THINKING that the RadToolBar would have Style's for RadButton set in it's dictionary: and that they would thus be resolved for any children. This doesn't seem to be the case.
Or, is there a better way to encapsulate RadButton where all the expected stuff will work properly?
I chose to not inherit from RadButton because I wanted to hide the properties of RadButton that the user will not be able to use. The button does one thing. It requires the user only to set the Command. It dispatches this command differently than RadButton itself does. The user has no control over much else.