public void Initialize() {
DataContext = new ViewModel(null, true, _selectNextCar, _selectNextCarSkinId, _selectNextTrack);
InitializeComponent();
InputBindings.AddRange(new[] {
new InputBinding(Model.GoCommand, new KeyGesture(Key.G, ModifierKeys.Control)),
new InputBinding(Model.ShareCommand, new KeyGesture(Key.PageUp, ModifierKeys.Control)),
new InputBinding(UserPresetsControl.SaveCommand, new KeyGesture(Key.S, ModifierKeys.Control))
});
_selectNextCar = null;
_selectNextCarSkinId = null;
_selectNextTrack = null;
if (OptionTestMode) {
ModeTab.Links.Add(new Link {
DisplayName = "Test",
IsNew = true,
Source = new Uri("/Pages/Drive/QuickDrive_GridTest.xaml", UriKind.Relative)
});
}
}