{"action":"closed","issue":{"url":"https://api.github.com/repos/AvaloniaUI/Avalonia/issues/798","repository_url":"https://api.github.com/repos/AvaloniaUI/Avalonia","labels_url":"https://api.github.com/repos/AvaloniaUI/Avalonia/issues/798/labels{/name}","comments_url":"https://api.github.com/repos/AvaloniaUI/Avalonia/issues/798/comments","events_url":"https://api.github.com/repos/AvaloniaUI/Avalonia/issues/798/events","html_url":"https://github.com/AvaloniaUI/Avalonia/issues/798","id":187668640,"number":798,"title":"Carousel Breaking Visual Tree","user":{"login":"danwalmsley","id":4672627,"avatar_url":"https://avatars.githubusercontent.com/u/4672627?v=3","gravatar_id":"","url":"https://api.github.com/users/danwalmsley","html_url":"https://github.com/danwalmsley","followers_url":"https://api.github.com/users/danwalmsley/followers","following_url":"https://api.github.com/users/danwalmsley/following{/other_user}","gists_url":"https://api.github.com/users/danwalmsley/gists{/gist_id}","starred_url":"https://api.github.com/users/danwalmsley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danwalmsley/subscriptions","organizations_url":"https://api.github.com/users/danwalmsley/orgs","repos_url":"https://api.github.com/users/danwalmsley/repos","events_url":"https://api.github.com/users/danwalmsley/events{/privacy}","received_events_url":"https://api.github.com/users/danwalmsley/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-07T09:59:36Z","updated_at":"2016-11-15T08:52:03Z","closed_at":"2016-11-15T08:52:03Z","body":"Below are logical and visual ancestors when control (child of carousel) are attached and detached from visual tree. (2x examples with different trees)\r\n\r\nWhen detached to ancestors stop at:\r\n[6] {Avalonia.Controls.Presenters.ContentPresenter} Avalonia.VisualTree.IVisual {Avalonia.Controls\r\nThis seems to be the contentpresenter inside the panel of CarouselPresenter.\r\n\r\nWhen I try to detach manually children to this I get exception:\r\nAdditional information: Was attached to logical tree but cannot find root.\r\n\r\nOnAttachedToVisualTree\r\n\r\n```\r\n-\t\tlogicalAncestors\t{Avalonia.LogicalTree.LogicalExtensions.<GetLogicalAncestors>d__0}\tSystem.Collections.Generic.IEnumerable<Avalonia.LogicalTree.ILogical> {Avalonia.LogicalTree.LogicalExtensions.<GetLogicalAncestors>d__0}\r\n+\t\tNon-Public members\t\t\r\n-\t\tResults View\tExpanding the Results View will enumerate the IEnumerable\t\r\n+\t\t[0]\t{Avalonia.Controls.Grid}\tAvalonia.LogicalTree.ILogical {Avalonia.Controls.Grid}\r\n+\t\t[1]\t{Avalonia.Controls.Border}\tAvalonia.LogicalTree.ILogical {Avalonia.Controls.Border}\r\n+\t\t[2]\t{AvalonStudio.Controls.EditorView}\tAvalonia.LogicalTree.ILogical {AvalonStudio.Controls.EditorView}\r\n+\t\t[3]\t{AvalonStudio.Controls.ViewModelViewHost}\tAvalonia.LogicalTree.ILogical {AvalonStudio.Controls.ViewModelViewHost}\r\n+\t\t[4]\t{Avalonia.Controls.Presenters.ContentPresenter}\tAvalonia.LogicalTree.ILogical {Avalonia.Controls.Presenters.ContentPresenter}\r\n+\t\t[5]\t{Avalonia.Controls.Carousel}\tAvalonia.LogicalTree.ILogical {Avalonia.Controls.Carousel}\r\n+\t\t[6]\t{Avalonia.Controls.DockPanel}\tAvalonia.LogicalTree.ILogical {Avalonia.Controls.DockPanel}\r\n+\t\t[7]\t{AvalonStudio.Controls.DocumentTabControl}\tAvalonia.LogicalTree.ILogical {AvalonStudio.Controls.DocumentTabControl}\r\n+\t\t[8]\t{Avalonia.Controls.Grid}\tAvalonia.LogicalTree.ILogical {Avalonia.Controls.Grid}\r\n+\t\t[9]\t{Avalonia.Controls.Grid}\tAvalonia.LogicalTree.ILogical {Avalonia.Controls.Grid}\r\n+\t\t[10]\t{Avalonia.Controls.Grid}\tAvalonia.LogicalTree.ILogical {Avalonia.Controls.Grid}\r\n+\t\t[11]\t{Avalonia.Controls.Grid}\tAvalonia.LogicalTree.ILogical {Avalonia.Controls.Grid}\r\n+\t\t[12]\t{AvalonStudio.MainWindow}\tAvalonia.LogicalTree.ILogical {AvalonStudio.MainWindow}\r\n\r\n-\t\tvisualAncestors\t{Avalonia.VisualTree.VisualExtensions.<GetVisualAncestors>d__1}\tSystem.Collections.Generic.IEnumerable<Avalonia.VisualTree.IVisual> {Avalonia.VisualTree.VisualExtensions.<GetVisualAncestors>d__1}\r\n+\t\tNon-Public members\t\t\r\n-\t\tResults View\tExpanding the Results View will enumerate the IEnumerable\t\r\n+\t\t[0]\t{Avalonia.Controls.Grid}\tAvalonia.VisualTree.IVisual {Avalonia.Controls.Grid}\r\n+\t\t[1]\t{Avalonia.Controls.Border}\tAvalonia.VisualTree.IVisual {Avalonia.Controls.Border}\r\n+\t\t[2]\t{Avalonia.Controls.Presenters.ContentPresenter}\tAvalonia.VisualTree.IVisual {Avalonia.Controls.Presenters.ContentPresenter}\r\n+\t\t[3]\t{AvalonStudio.Controls.EditorView}\tAvalonia.VisualTree.IVisual {AvalonStudio.Controls.EditorView}\r\n+\t\t[4]\t{Avalonia.Controls.Presenters.ContentPresenter}\tAvalonia.VisualTree.IVisual {Avalonia.Controls.Presenters.ContentPresenter}\r\n+\t\t[5]\t{AvalonStudio.Controls.ViewModelViewHost}\tAvalonia.VisualTree.IVisual {AvalonStudio.Controls.ViewModelViewHost}\r\n+\t\t[6]\t{Avalonia.Controls.Presenters.ContentPresenter}\tAvalonia.VisualTree.IVisual {Avalonia.Controls.Presenters.ContentPresenter}\r\n+\t\t[7]\t{Avalonia.Controls.Panel}\tAvalonia.VisualTree.IVisual {Avalonia.Controls.Panel}\r\n+\t\t[8]\t{Avalonia.Controls.Presenters.CarouselPresenter}\tAvalonia.VisualTree.IVisual {Avalonia.Controls.Presenters.CarouselPresenter}\r\n+\t\t[9]\t{Avalonia.Controls.Border}\tAvalonia.VisualTree.IVisual {Avalonia.Controls.Border}\r\n+\t\t[10]\t{Avalonia.Controls.Carousel}\tAvalonia.VisualTree.IVisual {Avalonia.Controls.Carousel}\r\n+\t\t[11]\t{Avalonia.Controls.DockPanel}\tAvalonia.VisualTree.IVisual {Avalonia.Controls.DockPanel}\r\n+\t\t[12]\t{Avalonia.Controls.Presenters.ContentPresenter}\tAvalonia.VisualTree.IVisual {Avalonia.Controls.Presenters.ContentPresenter}\r\n+\t\t[13]\t{AvalonStudio.Controls.DocumentTabControl}\tAvalonia.VisualTree.IVisual {AvalonStudio.Controls.DocumentTabControl}\r\n+\t\t[14]\t{Avalonia.Controls.Grid}\tAvalonia.VisualTree.IVisual {Avalonia.Controls.Grid}\r\n+\t\t[15]\t{Avalonia.Controls.Grid}\tAvalonia.VisualTree.IVisual {Avalonia.Controls.Grid}\r\n+\t\t[16]\t{Avalonia.Controls.Grid}\tAvalonia.VisualTree.IVisual {Avalonia.Controls.Grid}\r\n+\t\t[17]\t{Avalonia.Controls.Grid}\tAvalonia.VisualTree.IVisual {Avalonia.Controls.Grid}\r\n+\t\t[18]\t{Avalonia.Controls.Presenters.ContentPresenter}\tAvalonia.VisualTree.IVisual {Avalonia.Controls.Presenters.ContentPresenter}\r\n+\t\t[19]\t{Avalonia.Controls.Grid}\tAvalonia.VisualTree.IVisual {Avalonia.Controls.Grid}\r\n+\t\t[20]\t{Avalonia.Controls.Grid}\tAvalonia.VisualTree.IVisual {Avalonia.Controls.Grid}\r\n+\t\t[21]\t{Avalonia.Controls.Grid}\tAvalonia.VisualTree.IVisual {Avalonia.Controls.Grid}\r\n+\t\t[22]\t{Avalonia.Controls.Grid}\tAvalonia.VisualTree.IVisual {Avalonia.Controls.Grid}\r\n+\t\t[23]\t{Avalonia.Controls.Grid}\tAvalonia.VisualTree.IVisual {Avalonia.Controls.Grid}\r\n+\t\t[24]\t{Avalonia.Controls.Primitives.AdornerDecorator}\tAvalonia.VisualTree.IVisual {Avalonia.Controls.Primitives.AdornerDecorator}\r\n+\t\t[25]\t{Avalonia.Controls.Border}\tAvalonia.VisualTree.IVisual {Avalonia.Controls.Border}\r\n+\t\t[26]\t{AvalonStudio.MainWindow}\tAvalonia.VisualTree.IVisual {AvalonStudio.MainWindow}\r\n```"}}
{"actor":{"display_login":"danwalmsley"}}