public GemmingTemplateItem(GemmingTemplates parent, GemmingTemplate template) { this.parent = parent; this.template = template; DataContext = template; isCustom = template.Group == "Custom"; InitializeComponent(); template.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(template_PropertyChanged); if (isCustom) DeleteButton.Visibility = Visibility.Visible; else DeleteButton.Visibility = Visibility.Collapsed; }
public GemmingTemplateItem(GemmingTemplates parent, GemmingTemplate template) { this.parent = parent; this.template = template; DataContext = template; isCustom = template.Group == "Custom"; InitializeComponent(); template.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(template_PropertyChanged); if (isCustom) { DeleteButton.Visibility = Visibility.Visible; } else { DeleteButton.Visibility = Visibility.Collapsed; } }