Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Automation / Peers / NavigationWindowAutomationPeer.cs / 1305600 / NavigationWindowAutomationPeer.cs
using System; using System.Windows; using System.Windows.Automation; using System.Windows.Navigation; using System.Windows.Interop; using System.Windows.Media; using System.ComponentModel; namespace System.Windows.Automation.Peers { /// public class NavigationWindowAutomationPeer : WindowAutomationPeer { /// public NavigationWindowAutomationPeer(NavigationWindow owner): base(owner) {} /// override protected string GetClassNameCore() { return "NavigationWindow"; } // [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] internal static void RaiseAsyncContentLoadedEvent(AutomationPeer peer, long bytesRead, long maxBytes) { double percentComplete = 0d; AsyncContentLoadedState asyncContentState = AsyncContentLoadedState.Beginning; if (bytesRead > 0) { if (bytesRead < maxBytes) { percentComplete = maxBytes > 0 ? (bytesRead * 100d / maxBytes) : 0; asyncContentState = AsyncContentLoadedState.Progress; } else { percentComplete = 100d; asyncContentState = AsyncContentLoadedState.Completed; } } peer.RaiseAsyncContentLoadedEvent(new AsyncContentLoadedEventArgs(asyncContentState, percentComplete)); } } } // 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
- UseLicense.cs
- Permission.cs
- ScaleTransform3D.cs
- BStrWrapper.cs
- Pair.cs
- DiscoveryVersion.cs
- FreeFormDragDropManager.cs
- ListSortDescription.cs
- ECDiffieHellmanPublicKey.cs
- StoreItemCollection.Loader.cs
- RequestBringIntoViewEventArgs.cs
- CurrencyManager.cs
- Message.cs
- SubMenuStyle.cs
- SerTrace.cs
- Attributes.cs
- DataGridViewCellCollection.cs
- ApplicationServiceManager.cs
- GridViewColumnCollectionChangedEventArgs.cs
- Metafile.cs
- HtmlInputHidden.cs
- SymbolType.cs
- TrackBarDesigner.cs
- HtmlTableRowCollection.cs
- ConfigurationLocationCollection.cs
- TcpAppDomainProtocolHandler.cs
- DockAndAnchorLayout.cs
- SimpleLine.cs
- Switch.cs
- ColumnHeaderConverter.cs
- WsdlInspector.cs
- EventEntry.cs
- SystemIPGlobalStatistics.cs
- HtmlToClrEventProxy.cs
- ArcSegment.cs
- OutputCache.cs
- TextTreePropertyUndoUnit.cs
- DataControlPagerLinkButton.cs
- EraserBehavior.cs
- Renderer.cs
- mediapermission.cs
- SatelliteContractVersionAttribute.cs
- SqlNodeAnnotations.cs
- D3DImage.cs
- NumberFormatter.cs
- HtmlTernaryTree.cs
- TextRunCacheImp.cs
- XmlException.cs
- UIElementParaClient.cs
- WebResourceUtil.cs
- CodeBinaryOperatorExpression.cs
- SimpleFileLog.cs
- ParamArrayAttribute.cs
- Trace.cs
- RequestBringIntoViewEventArgs.cs
- XPathAncestorQuery.cs
- WinEventHandler.cs
- ProfileSettingsCollection.cs
- Transform3D.cs
- LiteralTextContainerControlBuilder.cs
- LifetimeServices.cs
- SiteMap.cs
- ControlEvent.cs
- _IPv4Address.cs
- XmlElement.cs
- EdgeModeValidation.cs
- Util.cs
- SessionChannels.cs
- XmlDataSource.cs
- UpdateRecord.cs
- DbException.cs
- UnsafeNativeMethods.cs
- UserControl.cs
- MessagePartDescriptionCollection.cs
- BitmapEffectRenderDataResource.cs
- FastPropertyAccessor.cs
- DashStyle.cs
- RuntimeVariablesExpression.cs
- XmlDesigner.cs
- InProcStateClientManager.cs
- Operand.cs
- Animatable.cs
- SqlExpander.cs
- DispatchWrapper.cs
- Socket.cs
- SqlGenerator.cs
- ToolStripContentPanel.cs
- AttributeSetAction.cs
- BindingMAnagerBase.cs
- EncoderFallback.cs
- datacache.cs
- DirectoryRedirect.cs
- HttpContextServiceHost.cs
- PriorityChain.cs
- SqlNotificationEventArgs.cs
- MimeFormReflector.cs
- NotSupportedException.cs
- ExponentialEase.cs
- ModelServiceImpl.cs
- CharacterMetricsDictionary.cs