.Value would be a property of a QuantityUpDown selector. Your qs variable is an integer (int) and not a QuantityUpDown selector.
Perhaps you should create a variable to hold the QuantityUpDown selector.
In the scope of the class:
NinjaTrader.Gui.Tools.QuantityUpDown quantitySelector;
if (ChartControl != null)
{
ChartControl.Dispatcher.InvokeAsync((Action)(() =>
{
quantitySelector = Window.GetWindow(ChartControl.Parent).FindFirst("ChartTraderControlQuantitySelector") as NinjaTrader.Gui.Tools.QuantityUpDown);
});
}
Print(quantitySelector.Value);

would need to be appended to for multiple digits but then you also have to worry about the cursor position in the box, that's really outside of what I could assist with as the control is closed source. If you wanted a more customizable control you would need to write your own WPF control to use for that purpose.
Leave a comment: