Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

What else can we use instead of ChartControl to make Dispatcher.InvokeAsync(()

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

    What else can we use instead of ChartControl to make Dispatcher.InvokeAsync(()

    Some things in GUI can be achieved by wrapping the code within: ChartControl.Dispatcher.InvokeAsync(()

    But there are times when ChartControl is null (for example, if indicator which is used without chart or etc..).

    what can be used in those situations , when ChartControl.Dispatcher is null?
    Can we use this
    Application.Current.Dispatcher.InvokeAsync(().. as a replacement?
    Last edited by ttodua; 02-13-2020, 02:39 PM.

    #2
    Hello TazoTodua, thanks for your post.

    At first glance, it looks like using the Application dispatcher would not work because you would need to access the dispatcher for the ChartControl Object. Please see this page for more details on the C# Dispatcher:



    Executes the specified delegate asynchronously on the thread the Dispatcher is associated with.
    Have you tried testing with Application.Current.Dispatcher.InvokeAsync?

    Kind regards.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    605 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    351 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    560 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    561 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X