public DemoWindow() { InitializeComponent(); var veldridControl = new VeldridControl { IsAnimated = true }; veldridControl.Dock = DockStyle.Fill; _texturedCube = new TexturedCube(veldridControl); Controls.Add(veldridControl); }
public MainWindow() { InitializeComponent(); // Subscribe to render events to trigger WinForms Application.Idle event CompositionTarget.Rendering += OnRendering; _veldridControl = new VeldridControl { IsAnimated = true }; _texturedCube = new TexturedCube(_veldridControl); _host.Child = _veldridControl; }