Exemplo n.º 1
0
 public void ShowAutoHideWindow(LayoutAnchorControl anchor)
 {
     StopCloseTimer();
     _currentAutohiddenAnchor = new WeakReference(anchor);
     _manager.AutoHideWindow.Show(anchor);
     StartCloseTimer();
 }
Exemplo n.º 2
0
 public void HideAutoWindow(LayoutAnchorControl anchor = null)
 {
     if (anchor == null ||
         anchor == _currentAutohiddenAnchor.GetValueOrDefault<LayoutAnchorControl>())
     {
         StopCloseTimer();
     }
     else
         System.Diagnostics.Debug.Assert(false);
 }
Exemplo n.º 3
0
        internal void ShowAutoHideWindow(LayoutAnchorControl anchor)
        {
            _autoHideWindowManager.ShowAutoHideWindow(anchor);
            //if (_autohideArea == null)
            //    return;

            //if (AutoHideWindow != null && AutoHideWindow.Model == anchor.Model)
            //    return;

              //Trace.WriteLine("ShowAutoHideWindow()");

            //_currentAutohiddenAnchor = new WeakReference(anchor);

            //HideAutoHideWindow(anchor);

            //SetAutoHideWindow(new LayoutAutoHideWindowControl(anchor));
            //AutoHideWindow.Show();
        }
Exemplo n.º 4
0
 internal void HideAutoHideWindow(LayoutAnchorControl anchor)
 {
     _autoHideWindowManager.HideAutoWindow(anchor);
 }
        internal void Show(LayoutAnchorControl anchor)
        {
            if (_model != null)
                throw new InvalidOperationException();

            _anchor = anchor;
            _model = anchor.Model as LayoutAnchorable;
            _side = (anchor.Model.Parent.Parent as LayoutAnchorSide).Side;
            _manager = _model.Root.Manager;
            CreateInternalGrid();

            _model.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(_model_PropertyChanged);

            Visibility = System.Windows.Visibility.Visible;
            InvalidateMeasure();
            UpdateWindowPos();
            Trace.WriteLine("LayoutAutoHideWindowControl.Show()");
        }
        internal void Hide()
        {
            if (_model == null)
                return;

            _model.PropertyChanged -= new System.ComponentModel.PropertyChangedEventHandler(_model_PropertyChanged);

            RemoveInternalGrid();
            _anchor = null;
            _model = null;
            _manager = null;
            Visibility = System.Windows.Visibility.Hidden;

            Trace.WriteLine("LayoutAutoHideWindowControl.Hide()");
        }