WPF and Silverlight Edition Basic Library / NumericBox / NumericBox Elements / Hiding the Up and Down Buttons
Hiding the Up and Down Buttons

By default buttons are visible in the C1NumericBox control to allow users to increment and decrement the value in the box by one step. You can choose to hide the Up and Down buttons in the C1NumericBox control at run time. To hide the Up and Down buttons you can set the ShowButtons property to False.

For example, to hide the Up and Down buttons in XAML add ShowButtons="False" to the <c1:C1NumericBox> tag so that it appears similar to the following:

XAML
Copy Code
<c1:C1NumericBox Name="C1NumericBox1" ShowButtons="False" />

 

Run your project and observe:

The Up and Down buttons will not be visible: