Ejemplo n.º 1
0
        protected override void OnVisibilityChanged()
        {
            if (_anchorable != null && _anchorable.Root != null)
            {
                if (_visibilityReentrantFlag.CanEnter)
                {
                    using (_visibilityReentrantFlag.Enter())
                    {
                        if (Visibility == System.Windows.Visibility.Hidden)
                        {
                            _anchorable.Hide(false);
                        }
                        else if (Visibility == System.Windows.Visibility.Visible)
                        {
                            _anchorable.Show();
                        }
                    }
                }
            }

            base.OnVisibilityChanged();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Provides derived classes an opportunity to handle changes to the IsActive property.
 /// </summary>
 protected virtual void OnIsActiveChanged(DependencyPropertyChangedEventArgs e)
 {
     if (_isActiveReentrantFlag.CanEnter)
     {
         using (_isActiveReentrantFlag.Enter())
         {
             if (LayoutElement != null)
             {
                 LayoutElement.IsActive = (bool)e.NewValue;
             }
         }
     }
 }
Ejemplo n.º 3
0
 protected void FixChildrenDockLengths()
 {
     using (_fixingChildrenDockLengths.Enter())
         OnFixChildrenDockLengths();
 }