numericUpDown buttons visibility

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
0
0

Hi! is possible to hide the up and down buttons in numericUpDown control?

Thanks,

Mariano

  • You must to post comments
0
0

Yes, it’s in the theme.

You can either create a custom theme, or add a mixin. Try this:

 

{
 "name": "MixinTheme",
 "appearances": {
   "nobuttons-spinner": {
     "inherit": "spinner",
     "components": {
       "upbutton": {
         "states": {
           "default": {
             "properties": {
               "visibility": "excluded"
             }
           }
         }
       },
       "downbutton": {
         "states": {
           "default": {
             "properties": {
               "visibility": "excluded"
             }
           }
          }
        }
      }
    }
  }
}

 

Now you can set the AppearanceKey property to “nobutton-spinner” to hide the buttons.

HTH

Best,

Luca

  • Luca (ITG)
    Name the file MyMixin.mixin.theme and place it under /Themes.
  • Mariano
    Thanks Luca, it works like a charm. Regards, Mariano
  • You must to post comments
Showing 1 result
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 1, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json