/// <summary> /// The function that will be called once the <see cref="OpenWindowCommand"/> is invoked /// </summary> public void OpenWindowCommand_Execute(object parameter) { if (parameter is WindowNames windowName) { Window window = new Window(); switch (windowName) { case WindowNames.ScoreBoardAndTomasolu: window = new ScoreBoardAndTomasoluWindwo(); break; case WindowNames.LoopUnrolling: window = new LoopUnrollingWindow(); break; case WindowNames.Cache: window = new CacheWindow(); break; case WindowNames.Vector: window = new VectorProcessingWindow(); break; default: break; } window.Show(); } }
protected override void OnBindingContextChanged() { //Once the BindingContext is set then all the ViewCreator/ViewModelCreator/etc. parameters from the XAML become available. base.OnBindingContextChanged(); if (!hasInitialized) { hasInitialized = true; CreateViews(); viewModels = new CacheWindow <object>(new WallImageProvider(ViewModelCreator), initialCacheSize: numVisibleViews, maxCacheSize: MaxCacheSize); } }