Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions src/ManagedShell.AppBar/AppBarEventArgs.cs

This file was deleted.

8 changes: 0 additions & 8 deletions src/ManagedShell.AppBar/AppBarEventReason.cs

This file was deleted.

7 changes: 0 additions & 7 deletions src/ManagedShell.AppBar/AppBarManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public class AppBarManager : IDisposable

public List<AppBarWindow> AppBars { get; } = new List<AppBarWindow>();
public List<AppBarWindow> AutoHideBars { get; } = new List<AppBarWindow>();
public EventHandler<AppBarEventArgs> AppBarEvent;

public AppBarManager(ExplorerHelper explorerHelper)
{
Expand All @@ -37,12 +36,6 @@ public void SignalGracefulShutdown()
}
}

public void NotifyAppBarEvent(AppBarWindow sender, AppBarEventReason reason)
{
AppBarEventArgs args = new AppBarEventArgs { Reason = reason };
AppBarEvent?.Invoke(sender, args);
}

private IntPtr appBarMessageDelegate(APPBARMSGDATAV3 amd, ref bool handled)
{
// only handle certain messages, send other AppBar messages to default handler
Expand Down
5 changes: 0 additions & 5 deletions src/ManagedShell.AppBar/AppBarWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -565,11 +565,6 @@ protected virtual IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lPa
ProcessScreenChange(ScreenSetupReason.DeviceChange);
handled = true;
}
else if (msg == (int)NativeMethods.WM.DWMCOMPOSITIONCHANGED)
{
ProcessScreenChange(ScreenSetupReason.DwmChange);
handled = true;
}

return IntPtr.Zero;
}
Expand Down
5 changes: 1 addition & 4 deletions src/ManagedShell.AppBar/ScreenSetupReason.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ public enum ScreenSetupReason
{
DeviceChange,
DisplayChange,
DpiChange,
DwmChange,
FirstRun,
Reconciliation
DpiChange
}
}