
We are using MVVM pattern. We want the data types in the VM to align with data types in the model, which means we have numerous Int16 properties. When we use the Int32EditBox control and bind to an Int16? property we get some "errors" in the VS Debug Output window. Everything "works" (i.e. the app runs and values ultimately seem to be correct), but we'd like to eliminate the debug errors/messages.
So, we want to create an Int16EditBox that is just like the Int32EditBox control but for Int16. I had hoped I could just create a control and inherit from RangeTypeSpecificEditBoxBase<Int16> but then I didn't know if I needed to completely copy the Style definition or if there was an easy way to have the Int16EditBox style utilize the existing Int32EditBox style. I'm hoping I just did something wrong (I'm no WPF expert).
Looking for input on what the best way to accomplish getting an Int16EditBox control created.
Thanks!
- Brad