our Application is using Pages rather than Desktops, but our customers recently requested to be able to minimize and reopen Windows. Therefore, we migrated all pages to Desktops and placed the pages content in a “Full screen” UserControl. This way we were able to display only the Taskbar of the Desktop to the user.
This works for now, but creates new visual problems. Sometimes the Control within the Desktop uses the Default Control Background and sometimes the background is White. We used the Theme Editor to change the Color of the Taskbar to white, but it still looks out of place if there are no windows opened.
So now we are wondering if it is possible to kindly request the following features to be implemented into the Taskbar/Desktop Controls in Wisej:
Thank you very much for considering our request!
Please let me understand better what is that you are looking for. The AutoHide feature hides the taskbar when empty, but if there is a taskbar item it’s not empty (BTW, you don’t need to add a button, you can simply add a TaskbarItem which is clickable.)
When the taskbar is automatically hidden or shown the Desktop raises the TaskbarVisibleChanged event and you can check the IsTaskbarVisible property to see if it’s hidden or shown.
You can set the taskbar size in a theme or setting the Desktop.TaskbarSize property. Aldo if you place a control on the desktop and anchor it or dock it, it’s automatically resized excluding the taskbar.
Also the taskbar can be placed in any of the 4 positions.
It is technically possible to use the taskbar widget without a deskop because Wisej has 2 window managers, one is the Desktop and the other is the default root widget. But the result would be kind of the same as a desktop.
thank you for your reply. I think I made a mistake and did not see the “TaskbarVisibleChanged” Event in the properties list, when I wrote my last answer. I saw it now so this is very useful.
I did not know the Dock property will exclude the Taskbar, so this is also very useful! Thank you for that.
After testing and reworking some of your Desktops, these properties are sufficient for now.
Unfortunately we encountered another problem with the Button in the TaskbarItemControl. Once the Text of the Button gets to long, the text gets wrapped into the next line and the TaskBar height gets increased. This is problematic visually and it also appears like the increase taskbar height messes with the docked Control and makes the taskbar overlap the docked control slightly. So what I want to achieve is to increase the width of the Button/TaskBarItem rather than wrapping the text.
I tried setting the AutoSize Properties of the button but to no avail. I also tried adjusting the theme, but I did not manage to prevent wrapping the text in the Button.
Is it possible to make the button increase its width while not wrapping the text of the button?
I will attach you a screenshot of the problematic button.
Additionally, I will attach you a sample project
Thank you very much for your assistance!
thank you for your reply and sorry for the delay.
I just tried to use the `Desktop.AutoHide` Feature, but I am afraid this does not work for us.
We placed a Button into TaskBarItemControl, that acts like a StartButton in windows and allows the user to logout and change to different views of the application.
I think because this element is always visible, the taskbar will never be hidden.
Additionally, we would need an event, that gets fired if the Taskbar disappears, so we can resize the remaining elements, that are located in the desktop. I think there is no event like that currently.
Do you think it will be possible to implement the Taskbar as its own Control rather than a component?
You can hide the Taskbar by setting Desktop.AutoHide to true and setting Form.ShowInTaskbar to false for all the forms on your desktop (see the Application.OpenForms collection).
Will this solve your issue?
Please login first to submit.