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
- XsltLibrary.cs
- webbrowsersite.cs
- AsyncContentLoadedEventArgs.cs
- WebConfigurationManager.cs
- XmlAttributeCache.cs
- DataGridViewRowPrePaintEventArgs.cs
- TypeLoadException.cs
- X509RecipientCertificateClientElement.cs
- SmiContext.cs
- SettingsPropertyCollection.cs
- MtomMessageEncoder.cs
- Pkcs7Recipient.cs
- TrustManagerMoreInformation.cs
- TreeNode.cs
- EntityClassGenerator.cs
- mediaclock.cs
- ICspAsymmetricAlgorithm.cs
- BuilderInfo.cs
- UIElement3D.cs
- XmlSchemaSimpleTypeUnion.cs
- ArrayTypeMismatchException.cs
- CodeIdentifiers.cs
- CustomErrorsSectionWrapper.cs
- AuthenticationException.cs
- TextEditorCopyPaste.cs
- Visual3DCollection.cs
- KeyboardNavigation.cs
- Size3DValueSerializer.cs
- cookie.cs
- WeakReferenceKey.cs
- TemplateFactory.cs
- SystemException.cs
- WebPartCloseVerb.cs
- ClientCultureInfo.cs
- Pair.cs
- TemplateFactory.cs
- DataIdProcessor.cs
- VerificationException.cs
- NCryptNative.cs
- AmbientValueAttribute.cs
- TempFiles.cs
- KerberosReceiverSecurityToken.cs
- FileDialog_Vista_Interop.cs
- ButtonBaseAutomationPeer.cs
- DriveInfo.cs
- PeerNameRecordCollection.cs
- FixedTextContainer.cs
- SystemIPGlobalProperties.cs
- DbTypeMap.cs
- ComponentResourceManager.cs
- Int16Converter.cs
- SqlDataSource.cs
- GridViewUpdateEventArgs.cs
- InputProcessorProfilesLoader.cs
- sqlcontext.cs
- UserNameSecurityToken.cs
- Transform.cs
- ProtocolsConfigurationHandler.cs
- RegexCompilationInfo.cs
- AggregateNode.cs
- ScriptRef.cs
- ResourceDisplayNameAttribute.cs
- FolderBrowserDialog.cs
- ItemCollection.cs
- PlaceHolder.cs
- HealthMonitoringSection.cs
- XmlAnyElementAttributes.cs
- ClientRuntimeConfig.cs
- InputLanguageProfileNotifySink.cs
- FrugalMap.cs
- HttpCacheVary.cs
- PersonalizationState.cs
- ResourcePool.cs
- ServiceControllerDesigner.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- ReadWriteSpinLock.cs
- SqlNotificationEventArgs.cs
- ListControl.cs
- EnumValAlphaComparer.cs
- TextSchema.cs
- RelationshipEnd.cs
- TableLayoutRowStyleCollection.cs
- DbModificationClause.cs
- FrameworkContentElementAutomationPeer.cs
- XPathParser.cs
- NativeWindow.cs
- QueryStringParameter.cs
- ManagementPath.cs
- ParameterBuilder.cs
- Baml2006KeyRecord.cs
- EdmToObjectNamespaceMap.cs
- ContextMenuAutomationPeer.cs
- DataBoundControlAdapter.cs
- NavigateEvent.cs
- arclist.cs
- PtsHost.cs
- dataprotectionpermission.cs
- PolyBezierSegment.cs
- QfeChecker.cs
- ImageCodecInfo.cs