These are chat archives for ButchersBoy/Dragablz

5th
Feb 2016
Magnus Lindhe
@mgnslndh
Feb 05 2016 09:31
Hi @ButchersBoy! Is it possible to have the DragablzItemsControl sort items on one of their properties so that they change order visually when property changes?
James Willock
@ButchersBoy
Feb 05 2016 09:49
Currently, without changing the lib you could create a custom IItemsOrganiser (maybe sub class one if the existing ones),
...
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.
Magnus Lindhe
@mgnslndh
Feb 05 2016 09:55
I am using the HorizontalOrganizer but I guess I'll have to use some kind of decoration pattern because it does not declare Organise as virtuall
DragablzItem.LogicalIndex is that what is used for sorting?
James Willock
@ButchersBoy
Feb 05 2016 09:59
Raise a PR to make all the methods virtual
Yes.