I have a user control with an exposed double dependency property. If I attempt to assign a large value to it:
<UserControl Value="98765432.10"/>
It builds and runs but I get the number “98765432.0” in the setter. Smaller values work fine. If I pass the same large number into the control using the code-behind, it also works fine.
Does XAML not parse doubles correctly?
Try declaring the double value as a WindowResource. You’ll need to import the “mscorlib” namespace.