Skip to content

Commit

Permalink
_internalHwndSource_ContentRendered Unused code removed in LayoutAuto…
Browse files Browse the repository at this point in the history
…HideWindowControl
  • Loading branch information
Dirkster99 committed Oct 6, 2019
1 parent f7427b7 commit 7f6646b
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public class LayoutAutoHideWindowControl : HwndHost, ILayoutControl
private LayoutAnchorable _model;
private HwndSource _internalHwndSource = null;
private IntPtr parentWindowHandle;
////private bool _internalHost_ContentRendered = false;
private ContentPresenter _internalHostPresenter = new ContentPresenter();
private Grid _internalGrid = null;
private AnchorSide _side;
Expand Down Expand Up @@ -156,8 +155,6 @@ protected override System.Runtime.InteropServices.HandleRef BuildWindowCore( Sys
Height = 0,
} );

//// _internalHost_ContentRendered = false;
_internalHwndSource.ContentRendered += _internalHwndSource_ContentRendered;
_internalHwndSource.RootVisual = _internalHostPresenter;
AddLogicalChild( _internalHostPresenter );
Win32Helper.BringWindowToTop( _internalHwndSource.Handle );
Expand All @@ -168,7 +165,6 @@ protected override void DestroyWindowCore( System.Runtime.InteropServices.Handle
{
if( _internalHwndSource != null )
{
_internalHwndSource.ContentRendered -= _internalHwndSource_ContentRendered;
_internalHwndSource.Dispose();
_internalHwndSource = null;
}
Expand Down Expand Up @@ -277,12 +273,6 @@ internal bool IsWin32MouseOver
#endregion

#region Private Methods

private void _internalHwndSource_ContentRendered( object sender, EventArgs e )
{
//// _internalHost_ContentRendered = true;
}

private void _model_PropertyChanged( object sender, System.ComponentModel.PropertyChangedEventArgs e )
{
if( e.PropertyName == "IsAutoHidden" )
Expand Down

0 comments on commit 7f6646b

Please sign in to comment.