public void OnSetup()
        {
            _uiTestHelper = new UITestHelper();

            _uiTestHelper.ExecuteOnUIThread(() =>
            {
                _workspace        = new Grid();
                _workspaceAdapter = new GridWorkspaceAdapter();
                //_workspaceAdapter.SetTransitionAnimationProvider(TransitionAnimation.Create);
                _workspaceAdapter.SetMainWorkspace(_workspace);
                _workspaceAdapter.SetViewGroupCollection(new ViewGroupCollection());
            });
        }
Exemple #2
0
        private static void OnIsMainWorkspaceChanged(DependencyObject owner, DependencyPropertyChangedEventArgs e)
        {
            if ((bool)e.NewValue)
            {
                // the workspace is a Grid control
                if (owner is Grid)
                {
                    var mainWorkspace    = (Grid)owner;
                    var workspaceAdapter = new GridWorkspaceAdapter();
                    NavigationManagerImpl.SetMainWorkspace(mainWorkspace, workspaceAdapter, () => _transitionAnimation);
                }

                // TODO : implement a better mechanism to assign the workspace adapter according to the panel's concrete type
            }
        }