Form goes under windows taskbar based on following conditions.
WindowState = Maximized
MinimizeBox = false
MaximizeBox = false
Also when there is no icon (ShowIcon = false) Form text, first letter is clipped.
Posted on:30 Apr 2019 09:52
The part of the issue where the title bar overlaps the taskbar will be declined.
Setting the WindowsState property with code in the form`s constructor to Maximized and at the same time, the MaximizeBox property of the form to false is not valid. The same behavior can be observed with the standard Microsoft form which will also overlap the taskbar. It is not intended to maximize the form if its MaximizeBox property is set to false, with this setup the end users is restricted and they have no UI to maximize the form. It is possible to set maximize it programmatically, however, this may lead to some undesired behavior. Yet, in the discussed scenario the form can be maximized initially if the WindowState and MaximizeBox properties are set in the Shown event:
Currently, the possible solution that I can suggest is to avoid using the FormWindowState.Maximized and adjust the size of the form according to the screen dimensions. As to the title bar and the cut text, you can apply some margin on the left:
this.FormElement.TitleBar.TitlePrimitive.Margin = new Padding(10, 0, 0, 0);
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Dess | Tech Support Engineer, Sr.
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.