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
205
Can't find some roles about NavigatorDialog and more
posted

I'm experiencing a new appearance for our mainstream application and I'm using hard current AppStylist for Windows Forms v12.1 (12.1.20121.1001).

I attacked this rocky mountain loading one of the preset styles, basically the Office2010Silver style. 

Loading the style at runtime isn't a problem: it runs finely from embedded resource and from external file too.

 

In order to complete my style file and having it ready for the application release, I'm facing some minor issues I would like to fix as soon as possible. I list them below:

 

DASHED MENU ITEM SEPARATORS

Menu item separators are dashed and it's a bit disappointing for our staff. I noticed that there's no matching bitmap to for that fashed separator and I have no idea where searching for.

 

NAVIGATOR DIALOG HIGHLIGHTED ITEM

I managed also the UI Role NavigatorDialog, but no luck to change the background color of the highlighted window item. It seems having the same background color of the navigator dialog background. However if you move the mouse over the window items in the dialog, the item hovered by the mouse is coloured with an appropriate background.

 

FLOATING TOOLBAR BORDER COLOR

I can't find also the floating toolbar border color in the UI Roles. Where is it?

Parents
No Data
Reply
  • 205
    Offline posted

    I worked out how to override the dashed menu item separator with a Custom Draw Filter. I'm going to use the same workaround even with the other issues:

    Public Function GetPhasesToFilter(ByRef drawParams As Infragistics.Win.UIElementDrawParams) As Infragistics.Win.DrawPhase _
    Implements Infragistics.Win.IUIElementDrawFilter.GetPhasesToFilter

    If (TypeOf (drawParams.Element) Is PopupMenuSeparatorItemUIElement) Then
    Return DrawPhase.AfterDrawElement
    End If

    Return Infragistics.Win.DrawPhase.None

    End Function

    Public Function DrawElement(ByVal drawPhase As Infragistics.Win.DrawPhase, _
    ByRef drawParams As Infragistics.Win.UIElementDrawParams) As Boolean _
    Implements Infragistics.Win.IUIElementDrawFilter.DrawElement

    If (drawParams.Element Is Nothing) Then Return False

    If (TypeOf (drawParams.Element) Is PopupMenuSeparatorItemUIElement) Then
    Return DrawPopupMenuItemSeparator(drawPhase, drawParams)
    End If

    Return False

    End Function

Children