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
- CompilerErrorCollection.cs
- OracleException.cs
- ObjectSecurity.cs
- AnnotationStore.cs
- BindableTemplateBuilder.cs
- TextDocumentView.cs
- TableRow.cs
- LockCookie.cs
- SqlStream.cs
- _emptywebproxy.cs
- WebConfigurationHostFileChange.cs
- Vector3DKeyFrameCollection.cs
- StateMachineWorkflow.cs
- DataRowChangeEvent.cs
- WeakRefEnumerator.cs
- BitmapEffectDrawingContextState.cs
- ErrorWebPart.cs
- TargetInvocationException.cs
- StringValidatorAttribute.cs
- RecordsAffectedEventArgs.cs
- ServiceInfo.cs
- CodeTypeOfExpression.cs
- InputElement.cs
- EmbeddedMailObjectsCollection.cs
- StorageInfo.cs
- MarkupExtensionSerializer.cs
- EntityClientCacheEntry.cs
- WebServiceData.cs
- TextBoxBase.cs
- HiddenFieldPageStatePersister.cs
- AssociationSetEnd.cs
- XDRSchema.cs
- DataBindingHandlerAttribute.cs
- InputLanguage.cs
- PrintingPermission.cs
- RoleExceptions.cs
- ClientConfigurationHost.cs
- NavigationFailedEventArgs.cs
- HttpDictionary.cs
- SafeArchiveContext.cs
- OleDbPermission.cs
- XamlDesignerSerializationManager.cs
- SQLByte.cs
- FileSecurity.cs
- Model3DCollection.cs
- MasterPage.cs
- HandleValueEditor.cs
- HtmlEncodedRawTextWriter.cs
- ErrorWrapper.cs
- Odbc32.cs
- NamedPipeProcessProtocolHandler.cs
- PropVariant.cs
- VSWCFServiceContractGenerator.cs
- Point3DCollectionValueSerializer.cs
- GlobalProxySelection.cs
- HTTPNotFoundHandler.cs
- AxDesigner.cs
- IdlingCommunicationPool.cs
- GAC.cs
- RuntimeArgumentHandle.cs
- ObjRef.cs
- WindowsFont.cs
- StreamReader.cs
- SemanticKeyElement.cs
- PointLightBase.cs
- SafeCryptoHandles.cs
- SecurityKeyType.cs
- FileAuthorizationModule.cs
- ObjectDataSource.cs
- uribuilder.cs
- OdbcDataReader.cs
- CodeMemberField.cs
- COM2Enum.cs
- TextEncodedRawTextWriter.cs
- SweepDirectionValidation.cs
- ClientScriptManager.cs
- XPathPatternParser.cs
- BitmapVisualManager.cs
- TextEffect.cs
- TextServicesCompartmentContext.cs
- PeerUnsafeNativeMethods.cs
- DateTimeParse.cs
- KeyValueInternalCollection.cs
- DesignerAttribute.cs
- XmlCharType.cs
- MappingItemCollection.cs
- WebBaseEventKeyComparer.cs
- XmlName.cs
- AgileSafeNativeMemoryHandle.cs
- ProfileSection.cs
- RefExpr.cs
- EnvironmentPermission.cs
- PointKeyFrameCollection.cs
- FieldBuilder.cs
- HttpRawResponse.cs
- Query.cs
- CollectionView.cs
- DataGridLinkButton.cs
- UdpUtility.cs
- ConsoleKeyInfo.cs