コード例 #1
0
        private void OnViewLoaded(object sender, RoutedEventArgs e)
        {
            this.view.Loaded -= this.OnViewLoaded;
            ScatterViewItem host = VisualTreeHelperEx.FindParent <ScatterViewItem>(this.view);

            if (host == null)
            {
                throw new ArgumentNullException("The view is not wrapped by a ScatterViewItem, is it hosted inside a ScatterView?");
            }
            host.InteractiveElement = this.view.DataContext as IInteractiveElement;
        }