Hi,
I have a general question about the right way to bind a class to a listview or list box or any other control in wpf.
Lets say that I have a textbox which the width is binded with the property of my class "my width"
<Textbox x:Name="mytext" Width="{Binding mywidth}" />
My question is how do I open the property in my class. As a string property or as an int.
Xaml won't mind and will translate both but which is more accurate and proper?
Same goes if I want to bind for example the Horizontal Alignment. Should I use a property of type of string or should I use the Horizontal Alignment enumeration?
Do we have any delays while Xaml converts the enumeration or should I leave everything as string data types which is kinda default in Xaml?
Appreciate a guidance in this