//Setup Wizard Button private void CallButton_SetupWizard() { //Check if Current File is Updated string bUpdated = System.IO.File.ReadAllText(Directory.GetCurrentDirectory() + "/StorageTextToolbox/CurrentFileUpdated.txt"); if (bUpdated == "-1") { #region Build Context Menu //Start Context Menu ContextMenu cm = new ContextMenu(); #region Preview //Preview System.Windows.Controls.MenuItem menuPreview = new System.Windows.Controls.MenuItem(); menuPreview.Header = "Preview"; menuPreview.Click += Button_OpenPreview; menuPreview.ToolTip = "Preview Data Extraction With Current Activity Arguments"; //Add Icon to the uri_menuItem var uri_menuPreview = new System.Uri("https://img.icons8.com/officexs/20/000000/new-file.png"); var bitmap_menuPreview = new BitmapImage(uri_menuPreview); var image_menuPreview = new Image(); image_menuPreview.Source = bitmap_menuPreview; menuPreview.Icon = image_menuPreview; cm.Items.Add(menuPreview); #endregion //Open the Menu cm.IsOpen = true; #endregion } else { //Wizard Button: Warning Message: Preview DesignUtils.Wizard_WarningMessage_Preview(); } }