AppBar messages - This is the native way, also used by the taskbar. The only downside here is that the taskbar and the sidebar cannot auto hide at the same time.
Manual manipulation - Requires more code, yet can work even if the taskbar is using auto hide.
Pretty much self-explanatory. This allows the sidebar to auto-hide when not hovered (saves space when not in use).