public LiteShowroomWrapperWithTools(ToolsKn5ObjectRenderer renderer, CarObject car, string skinId) : base(renderer, car.DisplayName) { _helper = new AttachedHelper(this, new LiteShowroomTools(renderer, car, skinId)); GoToNormalMode(); renderer.VisibleUi = false; Form.Move += OnMove; }
public LiteShowroomTools(ToolsKn5ObjectRenderer renderer, CarObject car, string skinId) { DataContext = new ViewModel(renderer, car, skinId); InputBindings.AddRange(new[] { new InputBinding(Model.PreviewSkinCommand, new KeyGesture(Key.PageUp)), new InputBinding(Model.NextSkinCommand, new KeyGesture(Key.PageDown)), new InputBinding(Model.Car.ViewInExplorerCommand, new KeyGesture(Key.F, ModifierKeys.Alt)), new InputBinding(Model.OpenSkinDirectoryCommand, new KeyGesture(Key.F, ModifierKeys.Control)), new InputBinding(new DelegateCommand(() => Model.Renderer?.Deselect()), new KeyGesture(Key.D, ModifierKeys.Control)) }); InitializeComponent(); Buttons = new Button[0]; }
public void SetRenderer(ToolsKn5ObjectRenderer renderer) { Renderer = renderer; }