Пример #1
0
        public Dialog()
        {
            //The a ContentPresenter which finds the DataTemplate for our logical tree and gives it to the TunnelDataTemplateSelector to give to the Window.
            TemplateFinder templateFinder = new TemplateFinder();

            this.AddLogicalChild(templateFinder);
            this._tunnelDataTemplateSelector     = new TunnelDataTemplateSelector(templateFinder);
            this._dialogWindowClosedEventHandler = new EventHandler(WindowClosedHandler);
        }
Пример #2
0
 public TunnelDataTemplateSelector(TemplateFinder templateFinder)
     : base()
 {
     this._templateFinder = templateFinder;
 }