Example #1
0
 protected virtual void OnViewChanged(DemoView oldValue, DemoView newValue)
 {
     if (_flowDocumentDesc != null)
     {
         _flowDocumentDesc.Blocks.Clear();
         if (this.View.Description != null)
         {
             _flowDocumentDesc.Blocks.Add(this.View.Description);
         }
     }
     if (_contentScrollViewer != null)
     {
         _contentScrollViewer.ScrollToHome();
     }
 }
Example #2
0
        private void UpdateSelectedView(LiveExplorerTreeViewItem treeViewItem)
        {
            if (treeViewItem != null)
            {
                Type type = treeViewItem.SampleType;
                if (type != null)
                {
                    string name = type.FullName;

                    Assembly assembly   = Assembly.Load(toolkitAssembly);
                    Type     sampleType = assembly.GetType(name);

                    this.View = ( DemoView )Activator.CreateInstance(sampleType);
                }
            }
        }
Example #3
0
    protected virtual void OnViewChanged( DemoView oldValue, DemoView newValue )
    {
      if( _flowDocumentDesc != null )
      {
        _flowDocumentDesc.Blocks.Clear();
        if( this.View.Description != null )
        {
          _flowDocumentDesc.Blocks.Add( this.View.Description );
        }
      }
      if( _contentScrollViewer != null )
      {
      _contentScrollViewer.ScrollToHome();
      }

    }
 protected virtual void OnViewChanged(DemoView oldValue, DemoView newValue)
 {
     this.InitView();
 }
Example #5
0
    private void UpdateSelectedView( LiveExplorerTreeViewItem treeViewItem )
    {
      if( treeViewItem != null )
      {
        Type type = treeViewItem.SampleType;
        if( type != null )
        {
          string name = type.FullName;

          Assembly assembly = Assembly.Load( toolkitAssembly );
          Type sampleType = assembly.GetType( name );

          this.View = (DemoView)Activator.CreateInstance( sampleType );
        }
      }
    }
Example #6
0
 protected virtual void OnViewChanged( DemoView oldValue, DemoView newValue )
 {
   this.InitView();
 }