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
- LinqMaximalSubtreeNominator.cs
- XmlDictionaryReaderQuotas.cs
- ToolBarButton.cs
- XmlNotation.cs
- TextElementAutomationPeer.cs
- HMACSHA384.cs
- FilteredAttributeCollection.cs
- ListControl.cs
- QuaternionValueSerializer.cs
- CustomError.cs
- ToolStripPanelRow.cs
- StylusCaptureWithinProperty.cs
- SqlCacheDependency.cs
- XmlSchemaSimpleTypeRestriction.cs
- _SslSessionsCache.cs
- EventSetter.cs
- FormViewPagerRow.cs
- SliderAutomationPeer.cs
- EmissiveMaterial.cs
- MultitargetingHelpers.cs
- ObjectNavigationPropertyMapping.cs
- SimpleBitVector32.cs
- ReliableReplySessionChannel.cs
- StylusPointDescription.cs
- ServiceMetadataBehavior.cs
- ManifestSignatureInformation.cs
- FlowDocument.cs
- LockRecursionException.cs
- NonSerializedAttribute.cs
- ButtonFieldBase.cs
- EntityClassGenerator.cs
- TrackingProfileManager.cs
- VersionedStream.cs
- FrameworkPropertyMetadata.cs
- BuilderPropertyEntry.cs
- RegistryKey.cs
- TableRow.cs
- ListBase.cs
- WebPartEditorOkVerb.cs
- SizeIndependentAnimationStorage.cs
- FamilyCollection.cs
- Certificate.cs
- Vector3DCollectionConverter.cs
- IncrementalCompileAnalyzer.cs
- InplaceBitmapMetadataWriter.cs
- SqlDependencyListener.cs
- QilPatternVisitor.cs
- KnownTypesHelper.cs
- Parser.cs
- Renderer.cs
- TypeReference.cs
- dataprotectionpermissionattribute.cs
- RenderOptions.cs
- DefaultWorkflowLoaderService.cs
- securitymgrsite.cs
- Triangle.cs
- X509PeerCertificateAuthentication.cs
- BitmapEffectGroup.cs
- MailDefinitionBodyFileNameEditor.cs
- KeyboardDevice.cs
- DataSetUtil.cs
- LayoutInformation.cs
- SecureStringHasher.cs
- DesignerProperties.cs
- ToolStripContentPanel.cs
- TypeElementCollection.cs
- SettingsPropertyValueCollection.cs
- RoleService.cs
- SettingsAttributeDictionary.cs
- AdapterSwitches.cs
- SHA384.cs
- PnrpPeerResolver.cs
- httpstaticobjectscollection.cs
- RemoteCryptoRsaServiceProvider.cs
- MatrixStack.cs
- RegexWorker.cs
- StartFileNameEditor.cs
- KnownBoxes.cs
- GcSettings.cs
- TrustManagerMoreInformation.cs
- Size.cs
- FileSystemInfo.cs
- XmlSchemaSubstitutionGroup.cs
- InkPresenterAutomationPeer.cs
- SqlFacetAttribute.cs
- SynchronizationLockException.cs
- LogEntryHeaderDeserializer.cs
- StateMachineDesignerPaint.cs
- CodeAttachEventStatement.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- HwndSource.cs
- ProviderConnectionPointCollection.cs
- ParseNumbers.cs
- Application.cs
- SafeHandle.cs
- ChildTable.cs
- SectionVisual.cs
- GeneralTransform3D.cs
- ProgressBar.cs
- XmlComment.cs