private void UpdateRedirectedWindowSettings(RedirectionVisibility visibility, bool isMouseOver) { if (_redirectedWindow != null) { switch (visibility) { case RedirectionVisibility.Visible: _redirectedWindow.Alpha = 100; _redirectedWindow.IsHitTestable = isMouseOver; break; case RedirectionVisibility.Interactive: _redirectedWindow.Alpha = 100; _redirectedWindow.IsHitTestable = true; break; default: case RedirectionVisibility.Hidden: _redirectedWindow.Alpha = (byte)1; // Not *quite* invisible, which is important so we can still capture content. _redirectedWindow.IsHitTestable = isMouseOver; break; } } }
private void UpdateRedirectedWindowSettings(RedirectionVisibility visibility, bool isMouseOver) { if (_redirectedWindow != null) { switch (visibility) { case RedirectionVisibility.Visible: _redirectedWindow.Alpha = 100; _redirectedWindow.IsHitTestable = isMouseOver; break; case RedirectionVisibility.Interactive: _redirectedWindow.Alpha = 100; _redirectedWindow.IsHitTestable = true; break; default: case RedirectionVisibility.Hidden: _redirectedWindow.Alpha = (byte)1; // Not *quite* invisible, which is important so we can still capture content. _redirectedWindow.IsHitTestable = isMouseOver; break; } } }