Recently I encountered a problem in my custom numeric control, which can take double values. But in certain scenarios it must be
restricted to take only integers. Here, I have 2 ways to do it. Either handle it in the textchangedeventhandler of the textbox or create a behavior class for the custom Numeric textbox. I need to understand which one is better as per performance, standards
and scalability.
↧