コード例 #1
0
        protected override void OnInitialized(EventArgs e)
        {
            base.OnInitialized(e);

            if (ReferencedPane == null)
            {
                _refPane = this.Content as FlyoutDockablePane;
            }

            if (ReferencedPane != null)
            {
                //SetValue(ResizingPanel.ResizeWidthProperty, ReferencedPane.GetValue(ResizingPanel.ResizeWidthProperty));
                //SetValue(ResizingPanel.ResizeHeightProperty, ReferencedPane.GetValue(ResizingPanel.ResizeHeightProperty));
                //SetValue(Window.WidthProperty, ReferencedPane.GetValue(ResizingPanel.ResizeWidthProperty));
                //SetValue(Window.HeightProperty, ReferencedPane.GetValue(ResizingPanel.ResizeHeightProperty));

                Content = ReferencedPane;
                //Anchor = ReferencedPane.Anchor;

                _closingTimer = new DispatcherTimer(
                    new TimeSpan(0, 0, 2),
                    DispatcherPriority.Normal,
                    new EventHandler(OnCloseWindow),
                    Dispatcher.CurrentDispatcher);
            }
        }
コード例 #2
0
        public FlyoutPaneWindow(DockableContent content)
            : this()
        {
            //create a new temporary pane
            _refPane = new FlyoutDockablePane(content);

            _winFormsHost = ReferencedPane.GetLogicalChildContained <WindowsFormsHost>();

            if (_winFormsHost != null)
            {
                AllowsTransparency = false;
            }

            this.Loaded += new RoutedEventHandler(FlyoutPaneWindow_Loaded);
        }
コード例 #3
0
        public FlyoutPaneWindow(DockingManager manager, DockableContent content)
            : this()
        {
            //create a new temporary pane
            _refPane        = new FlyoutDockablePane(content);
            _dockingManager = manager;

            _winFormsHost = ReferencedPane.GetLogicalChildContained <WindowsFormsHost>();

            if (_winFormsHost != null)
            {
                AllowsTransparency = false;
            }

            Loaded += FlyoutPaneWindow_Loaded;
        }
コード例 #4
0
ファイル: FlyoutPaneWindow.cs プロジェクト: rudzen/AvalonDock
        /// <summary>
        /// Initialize the window
        /// </summary>
        /// <param name="e"></param>
        protected override void OnInitialized(EventArgs e)
        {
            base.OnInitialized(e);

            //Attach the referenced pane to show
            if (ReferencedPane == null)
            {
                _refPane = this.Content as FlyoutDockablePane;
            }

            if (ReferencedPane != null)
            {
                //move the pane under me as content
                //ReferencePane now changes visual tree!
                Content = ReferencedPane;
                InitClosingTimer();
            }
        }
コード例 #5
0
        protected override void OnInitialized(EventArgs e)
        {
            base.OnInitialized(e);

            if (ReferencedPane == null)
            {
                _refPane = this.Content as FlyoutDockablePane;
            }

            if (ReferencedPane != null)
            {
                Content = ReferencedPane;

                _closingTimer = new DispatcherTimer(
                    new TimeSpan(0, 0, 2),
                    DispatcherPriority.Normal,
                    new EventHandler(OnCloseWindow),
                    Dispatcher.CurrentDispatcher);
            }
        }
コード例 #6
0
        protected override void OnInitialized(EventArgs e)
        {
            base.OnInitialized(e);

            if (ReferencedPane == null)
                _refPane = this.Content as FlyoutDockablePane;

            if (ReferencedPane != null)
            {

                Content = ReferencedPane;

                _closingTimer = new DispatcherTimer(
                            new TimeSpan(0, 0, 2),
                            DispatcherPriority.Normal,
                            new EventHandler(OnCloseWindow),
                            Dispatcher.CurrentDispatcher);
            }


        }
コード例 #7
0
        public FlyoutPaneWindow(DockingManager manager, DockableContent content)
            : this()
        {
            //create a new temporary pane
            _refPane = new FlyoutDockablePane(content);
            _dockingManager = manager;

            _winFormsHost = ReferencedPane.GetLogicalChildContained<WindowsFormsHost>();

            if (_winFormsHost != null)
            {
                AllowsTransparency = false;
            }

            this.Loaded += new RoutedEventHandler(FlyoutPaneWindow_Loaded);
        }
コード例 #8
0
ファイル: FlyoutPaneWindow.cs プロジェクト: Altaxo/Altaxo
        /// <summary>
        /// Initialize the window
        /// </summary>
        /// <param name="e"></param>
        protected override void OnInitialized(EventArgs e)
        {
            base.OnInitialized(e);

            //Attach the referenced pane to show
            if (ReferencedPane == null)
                _refPane = this.Content as FlyoutDockablePane;

            if (ReferencedPane != null)
            {
                //move the pane under me as content
                //ReferencePane now changes visual tree!
                Content = ReferencedPane;
                InitClosingTimer();
            }
        }