public CleanWindowDemo() { InitializeComponent(); var selector = new SuperDataTemplateSelector(); selector.FirstTemplate = this.Resources["Temp1"] as DataTemplate; selector.SecondTemplate = this.Resources["Temp2"] as DataTemplate; selector.NullTemplate = this.Resources["Temp0"] as DataTemplate; //this.tc.ContentTemplateSelector = selector; }
public CleanWindowDemo() { this.InitializeComponent(); var selector = new SuperDataTemplateSelector(); selector.FirstTemplate = this.Resources["Temp1"] as DataTemplate; selector.SecondTemplate = this.Resources["Temp2"] as DataTemplate; selector.NullTemplate = this.Resources["Temp0"] as DataTemplate; this.Closing += this.CleanWindowClosing; }
public CleanWindowDemo() { InitializeComponent(); var selector = new SuperDataTemplateSelector(); selector.FirstTemplate = this.Resources["Temp1"] as DataTemplate; selector.SecondTemplate = this.Resources["Temp2"] as DataTemplate; selector.NullTemplate = this.Resources["Temp0"] as DataTemplate; this.tc.ContentTemplateSelector = selector; }