Beispiel #1
0
        private static void LayoutDataPropertyNameChangedCallback(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
        {
            XamlDockManagerLayoutPersistenceBehavior xamlDockManagerLayoutPersistenceBehavior = dependencyObject as XamlDockManagerLayoutPersistenceBehavior;

            if (xamlDockManagerLayoutPersistenceBehavior == null)
            {
                return;
            }

            xamlDockManagerLayoutPersistenceBehavior.LoadLayout(xamlDockManagerLayoutPersistenceBehavior.LayoutName);
        }
Beispiel #2
0
        private static void UserInterfaceLayoutRepositoryChangedCallback(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
        {
            XamlDockManagerLayoutPersistenceBehavior xamlDockManagerLayoutPersistenceBehavior = dependencyObject as XamlDockManagerLayoutPersistenceBehavior;

            if (xamlDockManagerLayoutPersistenceBehavior == null)
            {
                return;
            }
            if (xamlDockManagerLayoutPersistenceBehavior.UserInterfaceLayoutRepository == null)
            {
                return;
            }
            xamlDockManagerLayoutPersistenceBehavior.UserInterfaceLayoutRepository.Load();
            xamlDockManagerLayoutPersistenceBehavior.LoadLayout(xamlDockManagerLayoutPersistenceBehavior.LayoutName);
        }
Beispiel #3
0
        private static void LayoutNameyChangedCallback(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
        {
            XamlDockManagerLayoutPersistenceBehavior xamlDockManagerLayoutPersistenceBehavior = dependencyObject as XamlDockManagerLayoutPersistenceBehavior;

            if (xamlDockManagerLayoutPersistenceBehavior == null)
            {
                return;
            }

            if (e.NewValue == null)
            {
                return;
            }
            xamlDockManagerLayoutPersistenceBehavior.LoadLayout(e.NewValue.ToString());
        }