mgaffigan / WpfAppBar

AppBar implementation for WPF
MIT License
69 stars 10 forks source link

create same behaivour but without app bar #8

Closed vovanb closed 10 months ago

vovanb commented 10 months ago

Hi What will be your suggestion to create same GUI but without App bar docking. So application can be docked to screen (left or right) , but other windows applications will have normal size ?

mgaffigan commented 10 months ago

Hi @vovanb!

I don't understand your question. AppBar's will dock to the left, right, top, or bottom of a monitor. Other apps will maximize around them.

Can you give an example of another app which has the behavior you are looking for? OneNote, for example, uses an AppBar for its "Dock to Desktop" feature.

vovanb commented 10 months ago

Hi @mgaffigan Thank you for your response. I would like my application to be docked to desktop and always on top, while allowing other applications to maximize and occupy the entire desktop without affecting the visibility or operation of my application.

mgaffigan commented 10 months ago

Ok. That's an app bar. You can use this library to create a WPF or WinForms appbar. The demo apps are a good place to start playing around.

Is there a particular issue you are running into?

vovanb commented 10 months ago

I need to have docking capabilities for my application , but without appbar feature where it takes part of desktop. the application should be alwaysontop and docked in desktop, but other application can be maximized for normal desktop space.

mgaffigan commented 10 months ago

If you want other applications to maximize around your application, then you need an appbar.

If you want other applications to maximize over/under your application, then you need a normal window.

If you want appbar behavior, this library is appropriate. Otherwise, a normal window is appropriate. Are you looking for Aero Snap? Can you give an example of an app which has the behavior you are looking for?

vovanb commented 10 months ago

@mgaffigan many thanks for your care. Sorry that I can not describe properly what I need. I need other applications to maximize over/under my application, but my application will be docked into the desktop screen - "hybrid" of appbar but without that other application will be maximized "around" my app

mgaffigan commented 10 months ago

If you do not want other apps to maximize around your app, then you do not need any special API's. Position your app and move other apps as you see fit. As an example, see https://github.com/mgaffigan/WindowSnapDemo/tree/master