L
L
libera2015-11-20 11:39:24
WPF
libera, 2015-11-20 11:39:24

Wpf replacement in code place numericUpDown?

if (numericUpDown1.Value == 10 && numericUpDown2.Value != 10)
                textBox2.Text = ToN(textBox1.Text, numericUpDown2.Value.ToString());
            else if (numericUpDown2.Value == 10 && numericUpDown1.Value != 10)
                textBox2.Text = FromN(textBox1.Text, numericUpDown1.Value.ToString());
            else if (numericUpDown2.Value != 10 && numericUpDown1.Value != 10)
                textBox2.Text = FromTo(textBox1.Text, numericUpDown1.Value.ToString(), numericUpDown2.Value.ToString());

As in C # there was numericUpDown, then it was used, but it is not in WPF, so they took the usual textBox, how to replace numericUpDown and put textBox.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rasim Keita, 2015-11-20
@keyros

write your own example or find an existing implementation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question