Object's width and height are binded to variables in modelview, so I can easly know size of the object. Unfortunetly they get NotANumber
instead of actual value. I don't want to use standard object.Width and object.Height parameteres from code-behind, since it'd be complicated to access them from modelview. I've read something about ActualWidth and ActualHeight properties, but they are not available in my Visual Studio 2010. What should I do?
XAML:
<ListView Width="{Binding wdth, Mode=OneWayToSource}"
Height="{Binding hght, Mode=OneWayToSource}" />
Code-behind:
public class modelview
{
public double wdth {get;set;}
public double hght {get;set;}
}