internal GtkDotNetCoreProjectTemplateWizardPageWidget(DotNetCoreProjectTemplateWizardPage wizardPage) : this() { this.wizardPage = wizardPage; PopulateTargetFrameworks(); targetFrameworkComboBox.Changed += TargetFrameworkComboBoxChanged; }
public GtkDotNetCoreProjectTemplateWizardPageWidget(DotNetCoreProjectTemplateWizardPage wizardPage) { this.wizardPage = wizardPage; Build(); // Do not use a width request for the configuration box so the left hand side of the // wizard page can expand to fit its contents. configurationVBox.WidthRequest = -1; backgroundImage = Xwt.Drawing.Image.FromResource("netcore-wizard-page.png"); backgroundImageView = new ImageView(backgroundImage) { Xalign = 1.0f, Yalign = 0.5f }; backgroundLargeImageVBox.PackStart(backgroundImageView, true, true, 0); backgroundColor = Styles.NewProjectDialog.ProjectConfigurationLeftHandBackgroundColor.ToGdkColor(); leftBorderEventBox.ModifyBg(StateType.Normal, backgroundColor); configurationTopEventBox.ModifyBg(StateType.Normal, backgroundColor); configurationTableEventBox.ModifyBg(StateType.Normal, backgroundColor); configurationBottomEventBox.ModifyBg(StateType.Normal, backgroundColor); backgroundLargeImageEventBox.ModifyBg(StateType.Normal, backgroundColor); if (wizardPage.TargetFrameworks.Count > 1) { PopulateTargetFrameworks(); targetFrameworkComboBox.Changed += TargetFrameworkComboBoxChanged; } if (wizardPage.SupportedAuthentications.Count > 0) { PopulateAuthentications(); authenticationComboBox.Changed += AuthenticationsComboBoxChanged; } }