OK. Let me backpedal a little. I referenced the wrong library. I should have referenced Dave Relyea's layout framework that includes a Grid, StackPanel, Label, TextBox, etc....
All of the objects in this framework have properties named "GridColumn" and "GridRow" which are inherited from the base controls of the library. These properties can be set in your XAML as well as the IsHorizontal property of the StackPanel, Text property
of the Label, etc... which are all custom properties defined in the code-behind of the control. Now, what I have noticed is that I can't set values to custom properties in XAML if the type of the property is that of a custom enum. I believe we come across
this quite a bit in the SDK with the scrollbars.
jasonxz
Participant
1787 Points
557 Posts
Re: First take on a UserControl
Sep 27, 2007 12:44 PM | LINK
OK. Let me backpedal a little. I referenced the wrong library. I should have referenced Dave Relyea's layout framework that includes a Grid, StackPanel, Label, TextBox, etc....
All of the objects in this framework have properties named "GridColumn" and "GridRow" which are inherited from the base controls of the library. These properties can be set in your XAML as well as the IsHorizontal property of the StackPanel, Text property of the Label, etc... which are all custom properties defined in the code-behind of the control. Now, what I have noticed is that I can't set values to custom properties in XAML if the type of the property is that of a custom enum. I believe we come across this quite a bit in the SDK with the scrollbars.