Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / MS / Internal / AppModel / NavigationHelper.cs / 1 / NavigationHelper.cs
using System; using System.Windows; using System.Windows.Navigation; using System.Windows.Controls; using System.Windows.Automation; using System.Windows.Media; using System.Globalization; using System.Diagnostics; using MS.Internal; namespace MS.Internal.AppModel { internal static class NavigationHelper { ////// See INavigatorImpl.FindRootViewer(). /// internal static Visual FindRootViewer(ContentControl navigator, string contentPresenterName) { object content = navigator.Content; if (content == null || content is Visual) return content as Visual; ContentPresenter cp = null; if (navigator.Template != null) { cp = (ContentPresenter)navigator.Template.FindName(contentPresenterName, navigator); } // If null, eitheris not defined in the current template or the template // has not been applied yet. if (cp == null || cp.InternalVisualChildrenCount == 0/*Layout not done yet*/) return null; Visual v = cp.InternalGetVisualChild(0); return v; } }; } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LexicalChunk.cs
- LifetimeServices.cs
- AddInAdapter.cs
- MouseButton.cs
- BinaryUtilClasses.cs
- TextOnlyOutput.cs
- HttpApplication.cs
- QuaternionAnimationBase.cs
- Debug.cs
- WmiInstallComponent.cs
- PersistChildrenAttribute.cs
- StringFunctions.cs
- PasswordTextContainer.cs
- XmlSerializationReader.cs
- EdmSchemaAttribute.cs
- ApplicationBuildProvider.cs
- MultiBindingExpression.cs
- MenuItemStyleCollection.cs
- XmlFormatExtensionPointAttribute.cs
- XmlReader.cs
- CompositeScriptReferenceEventArgs.cs
- CheckBox.cs
- TypeBuilder.cs
- CheckedPointers.cs
- DocumentsTrace.cs
- PolyBezierSegmentFigureLogic.cs
- Imaging.cs
- ConfigurationConverterBase.cs
- KeyValueSerializer.cs
- EdmProviderManifest.cs
- DoubleLinkList.cs
- WindowHideOrCloseTracker.cs
- OutputCacheSettings.cs
- CornerRadiusConverter.cs
- ChannelEndpointElement.cs
- CommandBindingCollection.cs
- TrackingExtract.cs
- _ServiceNameStore.cs
- CachedPathData.cs
- HtmlGenericControl.cs
- AutomationFocusChangedEventArgs.cs
- SiteMapDataSource.cs
- ReversePositionQuery.cs
- ProtocolException.cs
- LocalValueEnumerator.cs
- ReachDocumentSequenceSerializer.cs
- TextRenderingModeValidation.cs
- securitycriticaldataClass.cs
- ISFClipboardData.cs
- OrderedDictionaryStateHelper.cs
- StylusPoint.cs
- StorageEntitySetMapping.cs
- TcpTransportManager.cs
- ProgramNode.cs
- ConnectionPoint.cs
- NativeMethods.cs
- RowToParametersTransformer.cs
- dbenumerator.cs
- UnsafeNativeMethods.cs
- CanExpandCollapseAllConverter.cs
- XmlSchemaSequence.cs
- SafeRightsManagementSessionHandle.cs
- DataTableClearEvent.cs
- ValueTypeFieldReference.cs
- RemotingAttributes.cs
- ToolStripDropDownClosingEventArgs.cs
- TypeAccessException.cs
- invalidudtexception.cs
- AlternateView.cs
- TreeNodeEventArgs.cs
- FunctionImportElement.cs
- TextTreeNode.cs
- XpsResource.cs
- StreamingContext.cs
- SmtpException.cs
- invalidudtexception.cs
- EventPrivateKey.cs
- GeneralTransform3DGroup.cs
- SyndicationElementExtension.cs
- PropertyEntry.cs
- DomNameTable.cs
- AuthenticationModuleElement.cs
- safex509handles.cs
- ManagementDateTime.cs
- XNodeSchemaApplier.cs
- ObjectStorage.cs
- DifferencingCollection.cs
- MetadataItemSerializer.cs
- SQLBytesStorage.cs
- CheckBoxField.cs
- FilterElement.cs
- PassportAuthenticationEventArgs.cs
- SelectiveScrollingGrid.cs
- DataMemberConverter.cs
- XmlC14NWriter.cs
- InstanceOwner.cs
- ActiveXContainer.cs
- RotationValidation.cs
- UserControl.cs
- XsdCachingReader.cs