protected void Service_Unregistered( object sender, WindowElementEventArgs e ) { if( WindowUnregistered != null ) WindowUnregistered( e ); }
private void OnWindowRestored( object sender, WindowElementEventArgs e ) { UnbindButtonContainer container; if( _unbindButtonContainers.TryGetValue( e.Window, out container ) ) container.ShowButtons(); }
void WindowManager_Unregistered( object sender, WindowElementEventArgs e ) { var binding = GetBinding( e.Window ); if( binding.Bottom != null ) Unbind( binding.Window, binding.Bottom.Window ); if( binding.Top != null ) Unbind( binding.Window, binding.Top.Window ); if( binding.Left != null ) Unbind( binding.Window, binding.Left.Window ); if( binding.Right != null ) Unbind( binding.Window, binding.Right.Window ); }
void OnRegistered( object sender, WindowElementEventArgs e ) { foreach( var sb in _persistantBindings.Bindings.Where( sb => sb.Origin == e.Window.Name || sb.Target == e.Window.Name ) ) { if( sb.Origin == e.Window.Name ) { IWindowElement element = WindowManager.Service.GetByName( sb.Target ); if( element != null ) Bind( element, e.Window, sb.Position, false ); } else if( sb.Target == e.Window.Name ) { IWindowElement element = WindowManager.Service.GetByName( sb.Origin ); if( element != null ) Bind( e.Window, element, sb.Position, false ); } } }
void OnWindowRestored( object sender, WindowElementEventArgs e ) { if( e.Window.Window == _clickSelectorWindow ) RegisterHighlighterService(); }
void OnWindowRestored( object sender, WindowElementEventArgs e ) { Debug.Assert( Dispatcher.CurrentDispatcher == Application.Current.Dispatcher, "This method should only be called by the ExternalThread." ); ISpatialBinding binding = WindowBinder.GetBinding( e.Window ); if( binding != null ) { // The Window that moves first foreach( ISpatialBinding descendant in binding.AllDescendants() ) { descendant.Window.Restore(); } } }