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
- RelationshipDetailsCollection.cs
- AppDomain.cs
- ObjectListSelectEventArgs.cs
- DataRowChangeEvent.cs
- PowerModeChangedEventArgs.cs
- Util.cs
- FunctionQuery.cs
- TableRowCollection.cs
- CodeMethodInvokeExpression.cs
- ByteKeyFrameCollection.cs
- SpeakProgressEventArgs.cs
- ContentPresenter.cs
- Regex.cs
- SizeConverter.cs
- PolicyFactory.cs
- SqlNode.cs
- NotConverter.cs
- MsmqAppDomainProtocolHandler.cs
- EntityDescriptor.cs
- HttpCookieCollection.cs
- EnumerableRowCollection.cs
- ComplexType.cs
- DependencyPropertyKind.cs
- GroupAggregateExpr.cs
- SafeMILHandle.cs
- HtmlImage.cs
- Vector3DCollection.cs
- UpdateProgress.cs
- SqlSelectClauseBuilder.cs
- FormatSettings.cs
- File.cs
- DocumentReference.cs
- Symbol.cs
- FormatException.cs
- TypedReference.cs
- SmtpLoginAuthenticationModule.cs
- OdbcDataAdapter.cs
- DataSourceXmlSubItemAttribute.cs
- SqlInfoMessageEvent.cs
- SqlBuffer.cs
- XmlEncoding.cs
- DecoderBestFitFallback.cs
- ProcessHost.cs
- DocumentOrderQuery.cs
- Win32KeyboardDevice.cs
- InheritanceAttribute.cs
- AuthenticationSection.cs
- BinHexEncoding.cs
- RuntimeHandles.cs
- PageThemeCodeDomTreeGenerator.cs
- DesignSurfaceCollection.cs
- CurrencyWrapper.cs
- SafeEventLogWriteHandle.cs
- OdbcDataAdapter.cs
- ListViewCancelEventArgs.cs
- AnnotationResource.cs
- UDPClient.cs
- Substitution.cs
- TextChange.cs
- TableLayoutSettings.cs
- Html32TextWriter.cs
- WebReferencesBuildProvider.cs
- RelationshipEndMember.cs
- XPathDocumentNavigator.cs
- XslAstAnalyzer.cs
- EventProperty.cs
- NotConverter.cs
- CustomPopupPlacement.cs
- CommentGlyph.cs
- TextViewElement.cs
- VirtualDirectoryMapping.cs
- VisualStyleElement.cs
- CompositeScriptReferenceEventArgs.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- IncrementalReadDecoders.cs
- EditingScopeUndoUnit.cs
- PrintingPermissionAttribute.cs
- UserControl.cs
- HttpCacheVary.cs
- XmlSchemaImporter.cs
- RightNameExpirationInfoPair.cs
- DecimalStorage.cs
- HebrewCalendar.cs
- ListViewGroupCollectionEditor.cs
- SafeWaitHandle.cs
- ReferencedAssembly.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- RenderDataDrawingContext.cs
- ModifierKeysValueSerializer.cs
- EdmProperty.cs
- UpDownBaseDesigner.cs
- HtmlFormParameterWriter.cs
- StaticFileHandler.cs
- TypeUsage.cs
- WriteFileContext.cs
- RegisteredExpandoAttribute.cs
- DataGridTable.cs
- DocumentViewer.cs
- DataGridViewComboBoxCell.cs
- PropertyConverter.cs