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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    89 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X