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
- SpotLight.cs
- WindowsScrollBarBits.cs
- KeysConverter.cs
- Page.cs
- NamespaceInfo.cs
- WebPartDescription.cs
- TextTreeUndoUnit.cs
- PingOptions.cs
- StaticResourceExtension.cs
- SerializerDescriptor.cs
- DivideByZeroException.cs
- ChtmlMobileTextWriter.cs
- WpfKnownType.cs
- UxThemeWrapper.cs
- LayoutUtils.cs
- MaterialGroup.cs
- SimpleTextLine.cs
- WebFormDesignerActionService.cs
- MasterPageCodeDomTreeGenerator.cs
- FederatedMessageSecurityOverHttp.cs
- DefaultBinder.cs
- AdjustableArrowCap.cs
- RelOps.cs
- Script.cs
- SchemaObjectWriter.cs
- RegularExpressionValidator.cs
- ModuleElement.cs
- CompatibleComparer.cs
- EventHandlerService.cs
- RtfToXamlReader.cs
- DataObjectPastingEventArgs.cs
- CodeBinaryOperatorExpression.cs
- SkipStoryboardToFill.cs
- MenuCommands.cs
- KnownAssembliesSet.cs
- DbConnectionPoolGroup.cs
- ColorBlend.cs
- TemplateAction.cs
- elementinformation.cs
- ConstNode.cs
- MemberDomainMap.cs
- DataKeyArray.cs
- InvalidPropValue.cs
- RegexBoyerMoore.cs
- VideoDrawing.cs
- StructuralObject.cs
- XmlUTF8TextReader.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- XmlSchemaNotation.cs
- WebPartCloseVerb.cs
- DataBindingExpressionBuilder.cs
- Operator.cs
- LabelEditEvent.cs
- XmlSchemaAttributeGroup.cs
- RefExpr.cs
- ControlPersister.cs
- TextEditorCopyPaste.cs
- OleDbMetaDataFactory.cs
- HwndHost.cs
- RunWorkerCompletedEventArgs.cs
- Polygon.cs
- RepeaterCommandEventArgs.cs
- StylusPointPropertyUnit.cs
- MenuAdapter.cs
- ExtendedProperty.cs
- DynamicRendererThreadManager.cs
- EditingMode.cs
- DataRowView.cs
- columnmapkeybuilder.cs
- WindowsClaimSet.cs
- QueryOperatorEnumerator.cs
- ColumnResult.cs
- DBPropSet.cs
- SignatureConfirmationElement.cs
- WindowsEditBoxRange.cs
- IndividualDeviceConfig.cs
- BinaryUtilClasses.cs
- MobileListItem.cs
- Rect3DConverter.cs
- WindowsListView.cs
- TaskSchedulerException.cs
- HwndKeyboardInputProvider.cs
- RootProfilePropertySettingsCollection.cs
- MonitoringDescriptionAttribute.cs
- VectorAnimationBase.cs
- Frame.cs
- CategoryGridEntry.cs
- X509Certificate2Collection.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- FragmentNavigationEventArgs.cs
- TdsParser.cs
- RequestQueue.cs
- FlowLayoutPanel.cs
- PriorityBinding.cs
- ChannelToken.cs
- NativeMethods.cs
- DataServiceRequestArgs.cs
- EntityDataSourceUtil.cs
- ApplicationTrust.cs
- TypeUtils.cs