Skip to content
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

Make StackOrganiser extendable #80

Open
mgnslndh opened this issue Feb 5, 2016 · 1 comment
Open

Make StackOrganiser extendable #80

mgnslndh opened this issue Feb 5, 2016 · 1 comment

Comments

@mgnslndh
Copy link
Contributor

mgnslndh commented Feb 5, 2016

Add virtual keyword to the Organise method so the class can be extended with custom sorting of the items.

Provide mechanism to force reorganisation when items needs to be sorted. @ButchersBoy suggested calling InvalidateMeasure which I guess would work but it would be nice to have a solution that works with MVVM as well.

@ButchersBoy:

Override Organise and sort the items and pass to the base. Then you could InvalidateMeasure on the control itself....maybe i could add a routed event or something to "invalidate" the current sort which might make it easier in the future.

@ButchersBoy
Copy link
Owner

Extendable changes made.

I am considering enhancing the position monitor (mentioned in #82) to provide some bi direction communication.

This could become more of a PositionController, am currently weighing this up.

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

No branches or pull requests

2 participants