I have the following binding in my xaml, I can see the double value shown however the StringFormat is completely ignored.
<Label Content="{Binding ByteCount, StringFormat=n}"/>
ByteCount property is of type double. I even changed it even to string and it still doesn't work.
What could be the reason please?
Update:
public double ByteCount
{
get
{
return CloneHelper.GetSize(this);
}
}
public static class CloneHelper
{
public static double GetSize(BookSetViewModel book)
{
.....
return total;
}
}
ByteCountis anint, you might be missing a converter.Mode=TwoWayfirst, don't see any sense of it with Label