コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ListBox = ((System.Windows.Controls.ListBox)(target));

            #line 25 "..\..\..\..\PropertyGrid\Editors\FlatCollectionEditor.xaml"
                this.ListBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ListBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.AddItem = ((System.Windows.Controls.Button)(target));

            #line 36 "..\..\..\..\PropertyGrid\Editors\FlatCollectionEditor.xaml"
                this.AddItem.Click += new System.Windows.RoutedEventHandler(this.OnAddItemClicked);

            #line default
            #line hidden
                return;

            case 3:
                this.RemoveItem = ((System.Windows.Controls.Button)(target));

            #line 46 "..\..\..\..\PropertyGrid\Editors\FlatCollectionEditor.xaml"
                this.RemoveItem.Click += new System.Windows.RoutedEventHandler(this.OnRemoveItemClicked);

            #line default
            #line hidden
                return;

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

            #line 56 "..\..\..\..\PropertyGrid\Editors\FlatCollectionEditor.xaml"
                this.MoveUpItem.Click += new System.Windows.RoutedEventHandler(this.OnMoveItemUpClicked);

            #line default
            #line hidden
                return;

            case 5:
                this.MoveDownItem = ((System.Windows.Controls.Button)(target));

            #line 66 "..\..\..\..\PropertyGrid\Editors\FlatCollectionEditor.xaml"
                this.MoveDownItem.Click += new System.Windows.RoutedEventHandler(this.OnMoveItemDownClicked);

            #line default
            #line hidden
                return;

            case 6:
                this.PropertyGridView = ((ICSharpCode.WpfDesign.Designer.PropertyGrid.PropertyGridView)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
ファイル: WpfViewContent.cs プロジェクト: netide/SharpDevelop
		void InitPropertyEditor()
		{
			propertyGridView = new PropertyGridView();
			propertyContainer.PropertyGridReplacementContent = propertyGridView;
			propertyGridView.PropertyGrid.PropertyChanged += OnPropertyGridPropertyChanged;
		}
コード例 #3
0
		void InitPropertyEditor()
		{
			propertyGridView = new PropertyGridView();
			propertyContainer.PropertyGridReplacementContent = propertyGridView;
		}