Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

[TreeView] [Gtk] [WPF] OnRowCollapsing and OnRowCollapsed implemented #348

Merged
merged 2 commits into from
Aug 3, 2014

Conversation

residuum
Copy link
Contributor

Fixes issue #347

@residuum
Copy link
Contributor Author

As I do not have a Mac, so I cannot try this change and therefore did not submit this as well.

After reading the documentation and Xwt.Mac/TreeViewBackend.cs, these needs to be added in the inner class TreeDelegate in that file after line 53:

        public override void ItemDidCollapse(NSNotification notification)
        {
            Backend.EventSink.OnRowCollapsed (((TreeItem)notification.UserInfo["NSObject"]).Position);
        }

        public override void ItemWillCollaps (NSNotification notification)
        {
            Backend.EventSink.OnRowCollapsing (((TreeItem)notification.UserInfo["NSObject"]).Position);
        }

@@ -282,7 +293,7 @@ public void UnselectAll ()
{
Backend.UnselectAll ();
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't include formatting changes.

- events Collapsing and Collapsed
- implementation in GTK and WPF
- samples
@residuum
Copy link
Contributor Author

I redid all the changes in new commits, so that not formatting changes are included in the pull request.

slluis added a commit that referenced this pull request Aug 3, 2014
[TreeView] [Gtk] [WPF] OnRowCollapsing and OnRowCollapsed implemented
@slluis slluis merged commit b54931e into mono:master Aug 3, 2014
@slluis
Copy link
Member

slluis commented Aug 3, 2014

I added the Mac overrides and works fine. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants