ComponentOne Basic Library for UWP
Basic Library Overview / Input for UWP / Input for UWP Task-Based Help / C1NumericBox Task-Based Help / Setting the Start Value
In This Topic
    Setting the Start Value
    In This Topic

    The C1NumericBox.Value property determines the currently selected number. By default the C1NumericBox control starts with its C1NumericBox.Value set to 0 but you can customize this number.

    At Design Time

    To set the C1NumericBox.Value property, complete the following steps:

    1. Click the C1NumericBox control once to select it.
    2. Navigate to the Properties tab, and enter a number, for example "123", in the text box next to the C1NumericBox.Value property.

    This will set the C1NumericBox.Value property to the number you chose.

    In XAML

    For example, to set the C1NumericBox.Value property addValue="123" to the <Xaml:C1NumericBox> tag so that it appears similar to the following:

    Markup
    Copy Code
    <Xaml:C1NumericBox x:Name="C1NumericBox1" Value="123"></Xaml:C1NumericBox>
    

    In Code

    For example, to set the C1NumericBox.Value property add the following code to your project:

    Visual Basic
    Copy Code
    C1NumericBox1.Value = 123
    

     

    C#
    Copy Code
    c1NumericBox1.Value = 123;
    

    Run your project and observe:

    Initially 123 (or the number you chose) will appear in the control.

    See Also