コード例 #1
0
ファイル: BrushEditor.cs プロジェクト: radtek/Shopdrawing
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.BrushEditorControl = (BrushEditor)target;
                break;

            case 2:
                this.BrushResourcePickerButton = (FocusReturningWorkaroundRadioButton)target;
                break;

            case 3:
                this.ResourceList = (OnDemandControl)target;
                break;

            case 4:
                this.AdvancedBrushProperties = (StandardCategoryLayout)target;
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }
コード例 #2
0
 internal CreateControlDialog(DesignerContext designerContext, CreateResourceModel model)
     : base(designerContext, model)
 {
     this.Title = StringTable.MakeControlDialogTitle;
     this.typeChooserContainer            = (Grid)LogicalTreeHelper.FindLogicalNode((DependencyObject)this, "TypeSelectorComponent");
     this.typeChooserContainer.Visibility = Visibility.Visible;
     this.assetViewContainer             = (OnDemandControl)LogicalTreeHelper.FindLogicalNode((DependencyObject)this, "AssetViewContainer");
     this.assetViewContainer.DataContext = (object)designerContext.AssetLibrary;
     this.assetViewContainer.Visibility  = Visibility.Visible;
 }
コード例 #3
0
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.CanvasControlGroup = (OnDemandControl)target;
                break;

            case 2:
                this.ZIndexControl = (OnDemandControl)target;
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }
コード例 #4
0
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ColorTabControl = (TabbedColorEditorControl)target;
                break;

            case 2:
                this.TabbedView = (TabControl)target;
                this.TabbedView.SelectionChanged += new SelectionChangedEventHandler(this.OnColorTabChanged);
                break;

            case 3:
                this.ColorEditorTabItem = (TabItem)target;
                break;

            case 4:
                this.ColorMarker = (PropertyMarker)target;
                break;

            case 5:
                this.ColorEditor = (ColorEditor)target;
                break;

            case 6:
                this.ColorResourceTabItem = (TabItem)target;
                break;

            case 7:
                this.ResourceList = (OnDemandControl)target;
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }