Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Automation / Peers / NavigationWindowAutomationPeer.cs / 1 / 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
- ButtonRenderer.cs
- SafeViewOfFileHandle.cs
- ActionMessageFilter.cs
- TranslateTransform3D.cs
- CommandValueSerializer.cs
- PrintingPermissionAttribute.cs
- Double.cs
- storepermission.cs
- MemberRelationshipService.cs
- DbConnectionPoolCounters.cs
- DotAtomReader.cs
- CopyEncoder.cs
- AliasedSlot.cs
- Serialization.cs
- InputLangChangeEvent.cs
- ValueTypeFixupInfo.cs
- DelegatedStream.cs
- XmlSchemaAttribute.cs
- SqlMethodTransformer.cs
- SchemaElementDecl.cs
- RoutedUICommand.cs
- SoapEnumAttribute.cs
- InfiniteTimeSpanConverter.cs
- EncodingNLS.cs
- Container.cs
- XmlSchemas.cs
- RecordsAffectedEventArgs.cs
- HttpServerVarsCollection.cs
- PublisherIdentityPermission.cs
- DataGrid.cs
- CollectionEditor.cs
- ComplexTypeEmitter.cs
- HwndSourceParameters.cs
- GeneralTransform3DTo2DTo3D.cs
- ContainerParaClient.cs
- BasicViewGenerator.cs
- FileCodeGroup.cs
- RectangleGeometry.cs
- HTMLTagNameToTypeMapper.cs
- WebServiceEndpoint.cs
- KoreanCalendar.cs
- _WinHttpWebProxyDataBuilder.cs
- PrimitiveType.cs
- HandlerFactoryWrapper.cs
- ValidationHelpers.cs
- OdbcEnvironment.cs
- XmlSchemaComplexType.cs
- StylusCollection.cs
- EventHandlingScope.cs
- UnsafeNativeMethods.cs
- EventProxy.cs
- mediaeventshelper.cs
- StylusLogic.cs
- FontDialog.cs
- grammarelement.cs
- SchemaNotation.cs
- ParserStreamGeometryContext.cs
- StylusSystemGestureEventArgs.cs
- CommandDesigner.cs
- ProfileServiceManager.cs
- AlphabetConverter.cs
- SqlDataSourceDesigner.cs
- DefaultBindingPropertyAttribute.cs
- TdsParserStaticMethods.cs
- InlineCollection.cs
- ConnectionPool.cs
- ModelPropertyImpl.cs
- LayoutManager.cs
- TraceUtility.cs
- System.Data_BID.cs
- TextTreeTextElementNode.cs
- ReadOnlyCollection.cs
- WebPartZoneBaseDesigner.cs
- XmlAtomicValue.cs
- FileUtil.cs
- WebPartTransformerAttribute.cs
- SplitContainer.cs
- MemberMaps.cs
- XmlDomTextWriter.cs
- XmlTextEncoder.cs
- GridLengthConverter.cs
- HandlerFactoryWrapper.cs
- ValidationError.cs
- PowerStatus.cs
- SqlCacheDependency.cs
- WorkflowRuntimeService.cs
- XPathAncestorQuery.cs
- DataServiceProviderMethods.cs
- SafePointer.cs
- LiteralTextParser.cs
- StateBag.cs
- HatchBrush.cs
- CodeAttributeArgument.cs
- DrawingCollection.cs
- PropertyChangedEventArgs.cs
- OleDbReferenceCollection.cs
- ConfigurationSettings.cs
- HandleExceptionArgs.cs
- ILGenerator.cs
- TransactionContextManager.cs