当前位置: 首页>>代码示例>>C#>>正文


C# DocumentPane.GetValue方法代码示例

本文整理汇总了C#中AvalonDock.DocumentPane.GetValue方法的典型用法代码示例。如果您正苦于以下问题:C# DocumentPane.GetValue方法的具体用法?C# DocumentPane.GetValue怎么用?C# DocumentPane.GetValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AvalonDock.DocumentPane的用法示例。


在下文中一共展示了DocumentPane.GetValue方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnInitialized

        protected override void OnInitialized(EventArgs e)
        {
            //setup window size
            _floatingWindow.Width = _documentToTransfer.ContainerPane.ActualWidth;
            _floatingWindow.Height = _documentToTransfer.ContainerPane.ActualHeight;

            //save current content position in container pane
            _previousPane = _documentToTransfer.ContainerPane as DocumentPane;
            _arrayIndexPreviousPane = _previousPane.Items.IndexOf(_documentToTransfer);
            SetValue(ResizingPanel.ResizeWidthProperty, _previousPane.GetValue(ResizingPanel.ResizeWidthProperty));
            SetValue(ResizingPanel.ResizeHeightProperty, _previousPane.GetValue(ResizingPanel.ResizeHeightProperty));

            //Style = _previousPane.Style;
            AttachStyleFromPane(_previousPane);

            //remove content from container pane
            _previousPane.RemoveContent(_arrayIndexPreviousPane);

            //add content to my temporary pane
            Items.Add(_documentToTransfer);

            _documentToTransfer.SetIsFloating(true);
            
            base.OnInitialized(e);
        }
开发者ID:apoorv-vijay-joshi,项目名称:FSE-2011-PDE,代码行数:25,代码来源:FloatingDocumentPane.cs

示例2: OnInitialized

        protected override void OnInitialized(EventArgs e)
        {
            _previousPane = _documentToTransfer.ContainerPane as DocumentPane;

            if (_documentToTransfer != null && _documentToTransfer.FloatingWindowSize.IsEmpty)
            {
                if (_previousPane != null)
                    _documentToTransfer.FloatingWindowSize = new Size(_previousPane.ActualWidth, _previousPane.ActualHeight);
                else
                    _documentToTransfer.FloatingWindowSize = new Size(400.0, 400.0);
            }

            if (_documentToTransfer != null && !_documentToTransfer.FloatingWindowSize.IsEmpty)
            {
                _floatingWindow.Width = _documentToTransfer.FloatingWindowSize.Width;
                _floatingWindow.Height = _documentToTransfer.FloatingWindowSize.Height;
            }


            if (_previousPane != null)
            {
                //setup window size
                _floatingWindow.Width = _documentToTransfer.ContainerPane.ActualWidth;
                _floatingWindow.Height = _documentToTransfer.ContainerPane.ActualHeight;

                //save current content position in container pane
                _arrayIndexPreviousPane = _previousPane.Items.IndexOf(_documentToTransfer);
                SetValue(ResizingPanel.ResizeWidthProperty, _previousPane.GetValue(ResizingPanel.ResizeWidthProperty));
                SetValue(ResizingPanel.ResizeHeightProperty, _previousPane.GetValue(ResizingPanel.ResizeHeightProperty));

                //Style = _previousPane.Style;
                AttachStyleFromPane(_previousPane);

                //remove content from container pane
                _previousPane.RemoveContent(_arrayIndexPreviousPane);
            }
            

            //add content to my temporary pane
            Items.Add(_documentToTransfer);

            _documentToTransfer.SetIsFloating(true);

            LayoutTransform = (MatrixTransform)_documentToTransfer.TansformToAncestor();

            base.OnInitialized(e);
        }
开发者ID:Altaxo,项目名称:Altaxo,代码行数:47,代码来源:FloatingDocumentPane.cs


注:本文中的AvalonDock.DocumentPane.GetValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。