grokys on ui-automation
Add LocalizedControlType. Need… Go back to exposing visual tree… (compare)
I have dynamical TabControl:
<TabControl Items="{Binding TabsList}" SelectedItem="{Binding SelectedTab}" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch">
I have a synchronous command in dynamicaly fullfilled ContextMenu in TreeView in one Tab:
Calibrate = ReactiveCommand.Create
( () =>
{
CalibrateTabOpen((SelectedNode as TankItem).stnk.tnk);
// Dispatcher.UIThread.Post((Action)(() => CalibrateTabOpen((SelectedNode as TankItem).stnk.tnk)));
}
);
This command raise an event:
public Unit CalibrateOpen(ecb.t_tnk tnk)
{
UserTabItem userTab = new UserTabItem() { TabImage = "Assets/clb.png", TabTitle = "Перечень тарировок", TabType = UserTabItem.UserTabType.CALIBRATES };
CalibrateViewModel calibrateViewModel = new CalibrateViewModel(userTab,tnk,httpContext);
TabsList.Add(calibrateViewModel);
SelectedTab = calibrateViewModel;
return Unit.Default;
}
After clicking menu I've got the new Tab, but also I've got an empty ContextMenu (very small rectangle) above my new Tab in the same position where it was before. This empty menu disappeares by clicking in any area. How can I avoid this strange behavior?
var mwTemp = new MainWindowViewModel(this.sqrlInstance);
w.DataContext = mwTemp;
w.WindowStartupLocation = Avalonia.Controls.WindowStartupLocation.CenterOwner;
mwTemp.Content = new AskViewModel(this.sqrlInstance, this.Identity, serverResponse);
await w.ShowDialog(AvaloniaLocator.Current.GetService<MainWindow>());
NumericUpDown
and add a "Small Increment". Somethings are private though. So might have to copy the code and create a new one. My goal is to have a numeric textbox like in Blender: buttons either side of input; click and drag to increment/decrement; use a key modifier to use small increment; be able to do basic math.