I want to use the NTMessageBoxSimple from outside OnRender and OnBarUpdate. I want to use it from a different custom class but I get problems with ChartControl.Dispatcher and ChartControl.OwnerChart.
How can I use the NT Message Box from an outside class ?
ChartControl.Dispatcher.InvokeAsync(new Action(() => { NinjaTrader.Gui.Tools.NTMessageBoxSimple.Show(Window.GetWindow(ChartControl.OwnerChart as DependencyObject), " You cannot Split a Split Volume Profile !", "Alert", MessageBoxButton.OK, MessageBoxImage.Hand);
}));
Comment