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
- HtmlInputCheckBox.cs
- SqlError.cs
- DataGridViewCellValidatingEventArgs.cs
- RecordConverter.cs
- SolidColorBrush.cs
- TemplateBindingExtensionConverter.cs
- AutomationPattern.cs
- ApplicationServiceManager.cs
- EntityDataSourceQueryBuilder.cs
- StagingAreaInputItem.cs
- AutoResetEvent.cs
- XmlBuffer.cs
- FrameworkContextData.cs
- SmiEventSink_Default.cs
- DrawingAttributes.cs
- LocatorPart.cs
- OdbcPermission.cs
- ObjectListCommandsPage.cs
- ClickablePoint.cs
- InstanceHandleReference.cs
- XmlComment.cs
- MaskedTextBox.cs
- SafeRightsManagementQueryHandle.cs
- Mouse.cs
- HashHelper.cs
- MonthCalendar.cs
- NumberEdit.cs
- SafeNativeMethodsOther.cs
- AlgoModule.cs
- TreeNode.cs
- PropertyMetadata.cs
- TemplateControlBuildProvider.cs
- WizardPanelChangingEventArgs.cs
- BitmapEffectInput.cs
- Item.cs
- FactoryGenerator.cs
- SqlMetaData.cs
- DataListCommandEventArgs.cs
- CroppedBitmap.cs
- ColorContext.cs
- CodeGenerationManager.cs
- SecurityKeyIdentifierClause.cs
- storepermissionattribute.cs
- LogManagementAsyncResult.cs
- NonVisualControlAttribute.cs
- DataService.cs
- ResizeGrip.cs
- InternalUserCancelledException.cs
- SqlColumnizer.cs
- HMAC.cs
- ProcessHostConfigUtils.cs
- CaseStatement.cs
- Int64Animation.cs
- SecUtil.cs
- MemberPath.cs
- UseManagedPresentationBindingElement.cs
- ImageMapEventArgs.cs
- DynamicRendererThreadManager.cs
- Int64Converter.cs
- StickyNoteAnnotations.cs
- _CommandStream.cs
- XmlDataDocument.cs
- TextEndOfLine.cs
- IFlowDocumentViewer.cs
- XmlChildNodes.cs
- BitmapEffectrendercontext.cs
- Journal.cs
- PeerTransportElement.cs
- ReturnType.cs
- DefaultTextStoreTextComposition.cs
- ContentTextAutomationPeer.cs
- EntityProviderServices.cs
- ImpersonateTokenRef.cs
- ClientOperationFormatterProvider.cs
- HwndSourceParameters.cs
- GridEntryCollection.cs
- SmiMetaData.cs
- WsiProfilesElementCollection.cs
- MailDefinitionBodyFileNameEditor.cs
- UrlPath.cs
- WinFormsUtils.cs
- FixedSOMPageElement.cs
- ProbeRequestResponseAsyncResult.cs
- Italic.cs
- RemoteWebConfigurationHostServer.cs
- DataGridViewCellValidatingEventArgs.cs
- LogSwitch.cs
- LightweightEntityWrapper.cs
- ScriptingAuthenticationServiceSection.cs
- CellParagraph.cs
- CodeComment.cs
- TypographyProperties.cs
- TableItemStyle.cs
- _BaseOverlappedAsyncResult.cs
- MetadataException.cs
- ExpressionBindings.cs
- NetStream.cs
- ReadOnlyCollectionBase.cs
- TextElement.cs
- TreeNodeBinding.cs