WinForms .NET 6.03 (C#)
In a Form that has a traditional menu and toolbar docked across the top...
I have a split container (vertical splitter) in the left panel I have a toolbar docked to the top and a user control filling Panel1 below the panel's toolbar.
When I resize the panel, the toolbar disappears and the user control shifts up in the panel.
This was not a problem in .NET 4.6. I'm only seeing it now that I'm building in .NET 6.03
Is there a fix?
It turned out that this was a z-order problem. Somehow during execution, the toolstrip was losing it's topmost condition regarding docking.
Related
I need a styled messagebox with right to left text direction for wpf application
I am using wpftoolkit 4.1 messagebox control by xceed.
Setting fllowdirection="RightToLeft" works fine for setting the text direction but dragging the window is a big problem, the window is being dragged quickly to the other side and disappears so only killing the process works from that point
any ideas?
I need a listBox control for WPF, but with touch scrolling. Something that features smooth scrolling like in WP7? The application will be used with a standard touchscreen.
ListBox and DataGrid already implement touchscreen.
With a mouse you can't see it because it's not possible to scroll on every part of the listbox, but on my 22 inch touch screen, with default properties it's possible
My crazy problem: I'm using a docking system (AvalonDock) on a WPF form with aero glass style background (what looks really nice). In one dockable MDI I need a WinForms custom control, so I just used the WindowsFormsHost that loads my control successfully. But there is one problem:
The WindowsFormsHost shows the glass background of the main form for the amount of black for all colors used in the custom control.
Changing the MDI background doesn't help because the WindowsFormsHost cuts a hole through everything in the WPF MDI.
Concluding neither trying to have white text on a black background nor the other way round makes the textbox in my custom control clearly readable.
Any suggestions?
Sometimes (I didn't figure the exact scenario), WPF tooltips are displayed on top of other windows, even when the app window is completely hidden. Clicking on the other window doesn't make it disappear.
Is anyone familiar with this?
Regards,
Yaakov
I've seen this as well.
If you have a wpf tooltip open, and you Alt-Tab to another application, the wpf tooltip stays visible, even though the wpf application itself is not.
You could programmatically close the tooltip when your wpf app is no longer active.
I know how to do custom drawing of a standalone Windows Forms ScrollBar because there are plenty of examples at places like codeproject.com. But how do you custom draw the scrollbars in controls you do not create yourself? For example a Panel can show scrollbars but how would I ensure that the scrollbars it shows are custom drawn?
Or maybe this is not possible and I would need to create my own version of a Panel so that they use my own custom drawing scrollbars?
The scrollbars you see most often, including those built into most winforms controls, are rendered by Windows and there is no way to override their appearance in WinForms short of implementing an entirely custom solution which completely takes over the rendering and behavior of the common scrollbar control. There are some commercial packagages which claim to do this (google winforms skinning).