We're setting up some test projects in silverlight currently, and attempting to create custom controls to add new behaviors to existing controls (Something we did quite often with WinForms controls to add default behaviors that we used often). Is there a way to extend a control in Silverlight, having a class file and xaml file, as opposed to creating user controls? Or does it make more sense to use DefaultStyleKey and use xaml for that? I haven't found any simple examples on this online yet, would appreciate any help.
IE, preferably we would like to extend controls, and specify the xaml as below. Then in our user controls where we have application logic, we would like to place our extended controls with minimal xaml text, as it's already contained within the custom control.
<dx:DXTabControl> <dx:DXTabControl.View> <dx:TabControlMultiLineView AllowHideTabItems="True" /> </dx:DXTabControl.View> </dx:DXTabControl>
No comments:
Post a Comment
Send us your comment related to the topic mentioned on the blog