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(); } }
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); } } }
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(); }
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 ); } } }
protected virtual void OnViewChanged( DemoView oldValue, DemoView newValue ) { this.InitView(); }