public TrackMapEditorT(TrackObjectBase track) { DataContext = new TrackMapEditorViewModel(); InitializeComponent(); Buttons = new[] { OkButton, CancelButton }; }