H
hufaunder
I would like to create a specialized TextBox (WPF) that for instance
only accept integers/decimals/currency/etc. Since I want it to behave
like a TextBox but don't want to write one myself I would like to
create a user control. The idea was to derive a user control (Add
Items...UserControl) from a TextBox but Visual Studio does not let me
define a base class. I could go and change it by hand but I guess
there is a reason why MS didn't offer it in the first place.
So what is the best approach to write this custom TextBox?
Thanks
only accept integers/decimals/currency/etc. Since I want it to behave
like a TextBox but don't want to write one myself I would like to
create a user control. The idea was to derive a user control (Add
Items...UserControl) from a TextBox but Visual Studio does not let me
define a base class. I could go and change it by hand but I guess
there is a reason why MS didn't offer it in the first place.
So what is the best approach to write this custom TextBox?
Thanks