-
Notifications
You must be signed in to change notification settings - Fork 636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Groups Context Menu Visual Refresh #12262
Groups Context Menu Visual Refresh #12262
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
<!--<Setter Property="Height" Value="30" />--> | ||
<Setter Property="Width" Value="240" /> | ||
<Setter Property="Padding" Value="20,0,20,0" /> | ||
<Setter Property="Template"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: do we repeat a lot of the following style definitions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean the MenuItem style?
We do; this is something I've struggled with.
Because our Menus contain MenuItems, but also Separators (and sometimes other things too, e.g. the Node Group Color ItemCollections), we get an exception when setting the ItemContainerStyle property.
The workaround is to have the styles passively sitting around in a ContextMenu.Resources scope, being applied when the correct Type is found. That's what we do currently. However, I have issues when trying to define a ContextMenu.Resources scope inside of a ResourceDictionary. So while we can set a global ContextMenu Style just fine, we can't do the same for ContextMenuItems. It would be great if we could - could clean up a lot of code!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the reasoning, glad this has been considered
Purpose
This PR updates the context menu on groups (
AnnotationView
) to the new visual refresh style.Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
Updates the styling of the group context menu.
Reviewers
@QilongTang
@Amoursol
FYIs
@shk