示例#1
0
        private void SetupVisiblePlacementWidth(IEnumerable <DependencyObject> visualAncestry)
        {
            var parent = visualAncestry.OfType <Panel>().ElementAt(1);

            VisiblePlacementWidth = TreeHelper.GetVisibleWidth((FrameworkElement)PlacementTarget, parent);
        }