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;
        }
示例#3
0
        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;
        }