void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 12 "..\..\..\..\Construct\Pages\ConstructItemInfo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_TableInfo);

            #line default
            #line hidden
                return;

            case 2:

            #line 13 "..\..\..\..\Construct\Pages\ConstructItemInfo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_New);

            #line default
            #line hidden
                return;

            case 3:
                this.LinkList = ((TableConstruct.BaseListPanel)(target));
                return;

            case 4:
                this.ContentTransition = ((UITemplate.Controls.PathContentTransition)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            this._RightContent = GetTemplateChild("RightContent") as PathContentTransition;
            if (_RightContent != null)
            {
                ShowRightContent();
            }

            this._TabContent = GetTemplateChild("TabContent") as PathContentTransition;

            this._TabList = GetTemplateChild("TabList") as ListBox;
            if (this._TabList != null)
            {
                this._TabList.SelectedItem = null;
                //this._TabList.SelectionChanged += ShowTabContent;

                foreach (TabItem tabItem in Tabs)
                {
                    AddUITabShowList(tabItem);
                }
            }

            //显示预订的tab
            if (!string.IsNullOrEmpty(_TabDefaultShow))
            {
                ShowTabContent(_TabDefaultShow);
                _TabDefaultShow = "";
            }
        }
Пример #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 16 "..\..\..\Pages\ContentDataTab.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_New);

            #line default
            #line hidden
                return;

            case 2:

            #line 17 "..\..\..\Pages\ContentDataTab.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Save);

            #line default
            #line hidden
                return;

            case 3:

            #line 21 "..\..\..\Pages\ContentDataTab.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonRefresh);

            #line default
            #line hidden
                return;

            case 4:

            #line 22 "..\..\..\Pages\ContentDataTab.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonShowList);

            #line default
            #line hidden
                return;

            case 5:

            #line 23 "..\..\..\Pages\ContentDataTab.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonShowGrid);

            #line default
            #line hidden
                return;

            case 6:
                this.contentFrame = ((UITemplate.Controls.PathContentTransition)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #4
0
        /// <summary>
        /// When overridden in a derived class, is invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate().
        /// </summary>
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            _LinkList = GetTemplateChild("LinkList") as ListBox;
            if (_LinkList != null)
            {
                _LinkList.ItemsSource = _PathItemCollection;
                _LinkList.SelectionChanged += OnLinkListSelectionChanged;
            }

            this._StackLeft = GetTemplateChild("ContentFrame") as PathContentTransition;

            //列表中如果有信息,显示在左边
            ShowLeftContent();
        }
Пример #5
0
        /// <summary>
        /// When overridden in a derived class, is invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate().
        /// </summary>
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            _LinkList = GetTemplateChild("LinkList") as ListBox;
            if (_LinkList != null)
            {
                _LinkList.ItemsSource       = _PathItemCollection;
                _LinkList.SelectionChanged += OnLinkListSelectionChanged;
            }

            this._StackLeft = GetTemplateChild("ContentFrame") as PathContentTransition;

            //列表中如果有信息,显示在左边
            ShowLeftContent();
        }
Пример #6
0
        /// <summary>
        /// When overridden in a derived class, is invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate().
        /// </summary>
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            if (this._LinkList != null)
            {
                this._LinkList.SelectionChanged -= OnLinkListSelectionChanged;
            }

            _LinkList = GetTemplateChild("LinkList") as ListBox;
            if (_LinkList != null)
            {
                _LinkList.ItemsSource       = _PathItemCollection;
                _LinkList.SelectionChanged += OnLinkListSelectionChanged;
            }

            _Grid            = GetTemplateChild("ContentGrid") as Grid;
            this._StackLeft  = GetTemplateChild("StackPanelLeft") as PathContentTransition;
            this._StackRight = GetTemplateChild("StackPanelRight") as PathContentTransition;

            //列表中如果有信息,显示在左边
            ShowLeftContent();
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 12 "..\..\..\..\Construct\Pages\ConstructItemInfo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_TableInfo);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 13 "..\..\..\..\Construct\Pages\ConstructItemInfo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_New);
     
     #line default
     #line hidden
     return;
     case 3:
     this.LinkList = ((TableConstruct.BaseListPanel)(target));
     return;
     case 4:
     this.ContentTransition = ((UITemplate.Controls.PathContentTransition)(target));
     return;
     }
     this._contentLoaded = true;
 }
Пример #8
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            this._RightContent = GetTemplateChild("RightContent") as PathContentTransition;
            if (_RightContent != null)
            {
                ShowRightContent();
            }

            this._TabContent = GetTemplateChild("TabContent") as PathContentTransition;

            this._TabList = GetTemplateChild("TabList") as ListBox;
            if (this._TabList != null)
            {
                this._TabList.SelectedItem = null;
                //this._TabList.SelectionChanged += ShowTabContent;

                foreach (TabItem tabItem in Tabs)
                {
                    AddUITabShowList(tabItem);
                }
            }

            //显示预订的tab
            if (!string.IsNullOrEmpty(_TabDefaultShow))
            {
                ShowTabContent(_TabDefaultShow);
                _TabDefaultShow = "";
            }
        }
Пример #9
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 16 "..\..\..\Pages\ContentDataTab.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_New);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 17 "..\..\..\Pages\ContentDataTab.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Save);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 21 "..\..\..\Pages\ContentDataTab.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonRefresh);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 22 "..\..\..\Pages\ContentDataTab.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonShowList);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 23 "..\..\..\Pages\ContentDataTab.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonShowGrid);
     
     #line default
     #line hidden
     return;
     case 6:
     this.contentFrame = ((UITemplate.Controls.PathContentTransition)(target));
     return;
     }
     this._contentLoaded = true;
 }