03-14-2019 06:27 AM
Good morning,
as per topic object I'd like to set the content of a RadixNumbericTextBox to uppercase when selecting Hexadecimal display.
I'm currently using MeasurementStudio 2015 WPF controls.
Thanks,
Andrea
Solved! Go to Solution.
03-14-2019 04:07 PM
There is no property to control the capitalization of the text, but you can override the virtual CreateValueFormatter
method to set this:
public class UppercaseRadixNumericTextBoxInt32 : RadixNumericTextBoxInt32 { protected override RadixValueFormatter CreateValueFormatter( ) { var formatter = base.CreateValueFormatter( ); formatter.Uppercase = true; return formatter; } }
03-15-2019 02:44 AM
Thanks for your answer.
I'd rather avoid code behind to stick with MVVM pattern, is there any way to do so?
03-15-2019 06:43 AM
Sorry, I understand I posted a meaningless answer.
Next time, connecting brain before tryping.
Your answer solves my problem, thank you.