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?
Hello ,
Thank you for your feedback. Could you please let me know if we could consider your issue as resolved or you still need help on this ?
Thank you for using Infragistics Components.
First version of the code snippet drew the line just at the top of the previous item, not below it. Second version fixed this issue. At now I made it more robust, asserting the previous item still exists, otherwise I don't draw anything.
Thank you again for your support.
How exactly you are calculating the location of the line ? I have review your code sniped of previous post and I have noticed that you were calling DrawPopupMenuItemSeparator(drawPhase, drawParams) which draws your menu separator, but it doesn’t show how exactly the location is calculating. If you look into the sample which I have posted you will noticed that I am using location of the parent element, in order to calculate position of the item separator and in my sample the separator doesn’t disappear if you hover onto item above
Here is the code snippet for calculating of position of item separator
UIElement par = drawParams.Element.Parent;
UIElement prev = par.ChildElements[par.ChildElements.IndexOf(drawParams.Element) - 1].GetDescendant(typeof(TextUIElement));
Point EndPoint = prev.Rect.Location;
EndPoint.Offset(prev.Rect.Width - 1, prev.Rect.Height);
Point StartPoint = prev.Rect.Location;
StartPoint.Offset(1, prev.Rect.Height);
drawParams.Graphics.DrawLine(separatorPan, StartPoint, EndPoint);
ret = true;
Please let me know if you have any further questions.
I noticed that the tip suggested for the continuous line as menu item separator disappears when you are hovering the menu item above, if it has its own icon. Maybe the continuous line should be drawn a pixel lower.
Thank you for your feedback and shared experience, I think that this topic could be at help and for other customers facing this issue.
Please let me know if you have any further questions regarding this matter.