Exemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.userControl = ((IgorKL.ACAD3.Model.Drawing.Views.AnchorArrowView)(target));
                return;

            case 2:
                this.textBox_Tolerance = ((System.Windows.Controls.TextBox)(target));

            #line 16 "..\..\..\..\..\Drawing\Views\AnchorArrowView.xaml"
                this.textBox_Tolerance.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textBox_Tolerance_TextChanged);

            #line default
            #line hidden
                return;

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

            #line 23 "..\..\..\..\..\Drawing\Views\AnchorArrowView.xaml"
                this.button_Save.Click += new System.Windows.RoutedEventHandler(this.button_Save_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 2
0
        private void _showSettingMenu()
        {
            var menu         = MainMenu.MainPaletteSet.CreatedInstance;
            var arrowControl = new Views.AnchorArrowView();

            menu.AddControl("Анкера (настройки)", arrowControl);
            menu.Show();
        }
Exemplo n.º 3
0
        public static void CreatePaletteSet()
        {
            PaletteSet pset = new PaletteSet(typeof(AnchorArrowView).Name, new Guid());

            pset.Size = new System.Drawing.Size(300, 400);

            AnchorArrowView view = new AnchorArrowView();

            pset.AddVisual("Анкера", view, true);
            pset.Style =
                PaletteSetStyles.NameEditable |
                PaletteSetStyles.ShowPropertiesMenu |
                PaletteSetStyles.ShowAutoHideButton |
                PaletteSetStyles.ShowCloseButton;

            pset.DockEnabled = DockSides.None;

            pset.EnableTransparency(true);
            pset.KeepFocus = true;
            pset.Visible   = true;
            //return pset;
        }