Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Hide/Show button without click

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Hide/Show button without click

    Hello,

    I have created a strategy that uses a button for certain functions. How can I hide this button and show it again but without the need to click on it?

    Thanks and regards.

    #2
    Hello soyjesus,

    You can set the visibility property of the button to Hidden or Visible when you want to hide or show it.

    button.Visibility = Visibility.Hidden;


    You would need to use a dispatcher anytime you work with UI elements so that code would need to be surrounded by the dispatcher wherever you call it. https://ninjatrader.com/support/help...sub=dispatcher

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    47 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    51 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X