I have a input and I want it to accept only the data type I want like string or double. Is there any way I can do it programmatically?
I tried
TextBox text = new TextBox();
text.Type = 'numberic'; // an input that only accepts int.
text.Type = 'double';//or like this.
My app is dynamic so I want it to s.th like this . More general for all data types. but it didn't work. I used to say type in html but here I don't know if there is way to do it or not in wpf?