Example #1
0
        private void NewTemplate(object parameter)
        {
            TemplateDesigner window = new TemplateDesigner(_Workspace, this);

            window.ShowDialog();
            NotifyPropertyChanged("ObservableTemplates");
            NotifyPropertyChanged("TemplatesMenuList");
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.windowTemplateDesigner = ((CardTricks.Windows.TemplateDesigner)(target));
                return;

            case 2:
                this.scrollviewerWorkspace = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 3:
                this.canvasWorkspace = ((System.Windows.Controls.Canvas)(target));

            #line 46 "..\..\..\Windows\TemplateDesigner.xaml"
                this.canvasWorkspace.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.elementsMouseClick);

            #line default
            #line hidden
                return;

            case 4:
                this.itemscontrolPropertyEditor = ((System.Windows.Controls.ItemsControl)(target));
                return;

            case 5:
                this.lisviewTemplateList = ((System.Windows.Controls.ListBox)(target));

            #line 74 "..\..\..\Windows\TemplateDesigner.xaml"
                this.lisviewTemplateList.AddHandler(System.Windows.Controls.ListBoxItem.SelectedEvent, new System.Windows.RoutedEventHandler(this.listboxitemTemplatesOnSelecteItem));

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }