I'm trying to set a double value to the FontSize property of the ListBoxItem control from code behind. I have noticed some really strange behavior. The value that I pass to the FontSize setter gets changed a little bit (rounded?) before being applied to the control. For example:
Font size before 3.8730912208557129 New font size passed to setter 4.2251904227516865 Font size after assignment 4.22519063949585
Does anyone have a clue if this is standard Silverlight behavior or not? Maybe there's some sort of processing in FontSize setter to display fonts nicely? MSDN didn't reveal anything useful.