Example #1
0
        private void addSheet(string title)
        {
            var stack = new WorkbenchStack();
            var s     = new Xceed.Wpf.AvalonDock.Layout.LayoutAnchorable()
            {
                Title = title
            };

            s.Content = stack;
            this.root.Children.Insert(0, s);
            this.root.Children.First().IsSelected = true;
        }
Example #2
0
        /// <summary>
        /// Чтобы работал IsVisible и управлять IsAutoHidden
        /// </summary>
        internal void SetAnchorable(Xceed.Wpf.AvalonDock.Layout.LayoutAnchorable anchorable)
        {
            Contract.Requires(anchorable != null);

            //logger.DebugFormat("{0} SetAnchorable {1}", this, anchorable);
            if (this.anchorable == null)
            {
                this.anchorable = anchorable;

                // скрываем как только появился anchorable
                if (!IsVisible)
                {
                    anchorable.Hide();
                }
            }
        }