Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
170
Child controls not displayed properly on navigation toolbar with IsGlassSupported
posted

In my application, I want an navigation toolbar like the one in Windows Explorer (or Control Panel). I want to uses glass/bluring effect as it is done in Control Panel.

So I use an UltraNavigationBar but I have a problem... When the control is in edition mode, the text is almost invisible because the glass effect is applyed to in a way that cause the text to almost disappers.

Similar problem occurs if I uses other controls (for exemple, an user control containing a button and a text box). These control are not displayed opaque and if fact the blurring effect make the text unreadable.

 What I would like to have is similar to Control Panel:

  1. If the navigation bar does not have the focus, the glass effect is applied (but a bit more opaque than outside of the control). Presently, the backgroup of the navigation bar is opaque in that case.
  2. When the mouse hover the control, the background become opaque
  3. When a menu for one part of the path is displayed, that part is displayed selected but the rest of the control is semi-transparent.
  4. When the control is in edition mode, the control background is opaque.
  • How do I control how the control is drawn to achieve this behavior ? 
  • What is the simplest way to ensure that the TextBox control is opaque (preferably only when in edition mode) ?

 I have tryed to modify most Appearance BackColor in the tollbar manager and in the navigation bar but none have any effect when the navigation bar is in edition mode. Presently, the workaround I use is to prevent edition mode by setting Cancel to true.

Parents
No Data
Reply
  • 37774
    posted

    Regarding the issue you are experiencing when putting a text box into edit mode, there is not anything that we can do about this behavior.  The Desktop Window Manager uses the color Black to know where it should render glass when extending it into the client area; as such, standard controls, such as the .NET TextBox that the TextBoxTool uses (as well as the UltraTextEditor) will experience this behavior.  I believe that you will not have any issues with the MaskedEditTool instead, and if you don't like the ____ characters you should be able to null out the PromptChar to make it appear as a TextBox.

    Here is an interesting article on CodeProject about how various controls and glass behave.

    As for your other points, I believe that the UltraNavigationBar uses a TextBox for entering edit mode, which would prevent the text from being drawn properly.  Furthermore, I wasn't able to get any transparency working with the UltraNavigationBar in the NavigationToolbar, this could be a bug so I would recommend submitting this issue to the support group.

    -Matt

Children
No Data