public Overlay(bool clickThrough) { this.m_clickThrough = clickThrough; InitializeComponent(); this.DataContext = Core.Settings.Instance; SetSortByTime(Settings.Instance.SortByTime); this.m_topMost = WinEventHookHandle.SetForegroundEvent(this.WinEventProc); }
public static void SetAutohide(bool enabled) { if (enabled) { eventhook = WinEventHookHandle.SetForegroundEvent(autohideDelegate); } else { eventhook?.Close(); overlayInstance.Visibility = Visibility.Visible; } }