Пример #1
0
        private void FindOwner()
        {
            FrameworkElement frameworkElement = this;
            StartView        owner;

            do
            {
                frameworkElement = (FrameworkElement)VisualTreeHelper.GetParent(frameworkElement);
                owner            = frameworkElement as StartView;
            }while (frameworkElement != null && owner == null);
            Owner = owner;
        }
Пример #2
0
 private void OnUnloaded(object sender, RoutedEventArgs e)
 {
     _owner = null;
 }