Skip to content

Conversation

@mitchcapper
Copy link

Each commit here is self contained but was easier than trying to do each as a separate PR. Most of the commits should be pretty self evident the biggest is the new context menu on elements to allow for a bit quicker actions:

image image

There is some clunkyness around an ugly behavior with the TreeView where when we programmatically set the selected item through IsSelected it scrolls to the top by default. Scrollintoview works but puts it at the bottom. Right now I center it for known going to jump (we trigger the isselected change). Forcing the selected item is required due to how the patterns are currently generated (only for the selected item so if you right clicked it might not apply as it was based on the selected element not the right clicked one). This could be all avoided if we moved the pattern generation into the ElementViewModel instead and just bound to SelectedItem.Patterns that for the main window pane. Doing this would prevent the clunky workaround for getting the proper datacontext of the parent in the contextmenu (as they have a separate visual root from the entire window).

Let me know if there are any questions/changes/etc.

@mitchcapper
Copy link
Author

Added an additional search children function
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant