コード例 #1
0
        private static void OnItemsSourceChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            TagTextBox tagTextBox = (TagTextBox)sender;

            if (e.Property == ItemsSourceProperty)
            {
                tagTextBox.ItemsSource = (System.Collections.IEnumerable)e.NewValue;
            }
        }
コード例 #2
0
        private static void OnDisplayMemberPathChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            TagTextBox tagTextBox = (TagTextBox)sender;

            if (e.Property == ItemsSourceProperty)
            {
                tagTextBox.DisplayMemberPath = (string)e.NewValue;
            }
        }
コード例 #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.segmentButton = ((ZdfFlatUI.SegmentButton)(target));
                return;

            case 2:
                this.segmentButton2 = ((ZdfFlatUI.SegmentButton)(target));
                return;

            case 3:
                this.TagTextBox = ((ZdfFlatUI.TagTextBox)(target));

            #line 46 "..\..\..\MainWindow.xaml"
                this.TagTextBox.AddItem += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.TagTextBox_AddItem);

            #line default
            #line hidden
                return;

            case 4:
                this.Show = ((System.Windows.Controls.Button)(target));

            #line 64 "..\..\..\MainWindow.xaml"
                this.Show.Click += new System.Windows.RoutedEventHandler(this.Show_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.noticeMessage = ((ZdfFlatUI.NoticeMessage)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TagTextBox = ((ZdfFlatUI.TagTextBox)(target));

            #line 49 "..\..\MainWindow.xaml"
                this.TagTextBox.AddItem += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.TagTextBox_AddItem);

            #line default
            #line hidden
                return;

            case 2:
                this.validateTextBox1 = ((ZdfFlatUI.ValidateTextBox)(target));
                return;

            case 3:
                this.validateTextBox4 = ((ZdfFlatUI.ValidateTextBox)(target));
                return;

            case 4:
                this.validateTextBox2 = ((ZdfFlatUI.ValidateTextBox)(target));
                return;

            case 5:
                this.validateTextBox3 = ((ZdfFlatUI.ValidateTextBox)(target));
                return;

            case 6:
                this.beginValidate = ((System.Windows.Controls.Button)(target));

            #line 77 "..\..\MainWindow.xaml"
                this.beginValidate.Click += new System.Windows.RoutedEventHandler(this.beginValidate_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.button1 = ((System.Windows.Controls.Button)(target));

            #line 78 "..\..\MainWindow.xaml"
                this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.ShowInfo = ((System.Windows.Controls.Button)(target));

            #line 82 "..\..\MainWindow.xaml"
                this.ShowInfo.Click += new System.Windows.RoutedEventHandler(this.Show_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.ShowWarn = ((System.Windows.Controls.Button)(target));

            #line 84 "..\..\MainWindow.xaml"
                this.ShowWarn.Click += new System.Windows.RoutedEventHandler(this.Show_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.ShowError = ((System.Windows.Controls.Button)(target));

            #line 86 "..\..\MainWindow.xaml"
                this.ShowError.Click += new System.Windows.RoutedEventHandler(this.Show_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.ShowSuccess = ((System.Windows.Controls.Button)(target));

            #line 88 "..\..\MainWindow.xaml"
                this.ShowSuccess.Click += new System.Windows.RoutedEventHandler(this.Show_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.noticeMessage = ((ZdfFlatUI.NoticeMessage)(target));
                return;
            }
            this._contentLoaded = true;
        }