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
- InteropAutomationProvider.cs
- PersonalizationState.cs
- SQLInt32Storage.cs
- AsyncOperation.cs
- ImageSourceValueSerializer.cs
- ImageSource.cs
- _SingleItemRequestCache.cs
- UTF8Encoding.cs
- LocalizationComments.cs
- WpfKnownMemberInvoker.cs
- TableCellCollection.cs
- RuleSettings.cs
- ExpressionCopier.cs
- GeneralTransform3D.cs
- IntSecurity.cs
- DateRangeEvent.cs
- AppDomainManager.cs
- ListViewItemMouseHoverEvent.cs
- MessageQueueCriteria.cs
- ListView.cs
- AnnotationHighlightLayer.cs
- DataObjectSettingDataEventArgs.cs
- CodePageEncoding.cs
- WindowPatternIdentifiers.cs
- FrameworkElementAutomationPeer.cs
- ProfileSection.cs
- EventlogProvider.cs
- DataViewListener.cs
- HitTestParameters3D.cs
- CompleteWizardStep.cs
- State.cs
- ProvidersHelper.cs
- PieceNameHelper.cs
- TemplateColumn.cs
- MessageFormatterConverter.cs
- Publisher.cs
- CommunicationObjectAbortedException.cs
- NameValueConfigurationCollection.cs
- HtmlControl.cs
- LinkClickEvent.cs
- CroppedBitmap.cs
- Mutex.cs
- MaskInputRejectedEventArgs.cs
- TextEffectResolver.cs
- IIS7UserPrincipal.cs
- SoapIgnoreAttribute.cs
- CryptoApi.cs
- EllipseGeometry.cs
- XPathItem.cs
- DataBinder.cs
- DataControlHelper.cs
- PropertyEmitter.cs
- HTTPNotFoundHandler.cs
- PropertyChangingEventArgs.cs
- SizeIndependentAnimationStorage.cs
- RoleBoolean.cs
- ListDictionary.cs
- ZoneLinkButton.cs
- OdbcUtils.cs
- _HeaderInfoTable.cs
- InkPresenterAutomationPeer.cs
- DisplayClaim.cs
- DependencyPropertyValueSerializer.cs
- DataTemplateKey.cs
- TrailingSpaceComparer.cs
- CreateWorkflowOwnerCommand.cs
- RequestUriProcessor.cs
- List.cs
- ModelTreeEnumerator.cs
- SizeLimitedCache.cs
- InvalidPropValue.cs
- CacheChildrenQuery.cs
- ReversePositionQuery.cs
- XsdDateTime.cs
- MergeLocalizationDirectives.cs
- GiveFeedbackEvent.cs
- HotSpotCollection.cs
- InternalRelationshipCollection.cs
- SchemaMapping.cs
- SymbolResolver.cs
- ClientBuildManager.cs
- ChangeConflicts.cs
- ToolStripItemEventArgs.cs
- httpapplicationstate.cs
- XmlTextWriter.cs
- RemoteWebConfigurationHost.cs
- DataGridViewRow.cs
- Constants.cs
- RelatedCurrencyManager.cs
- MiniLockedBorderGlyph.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- RegistrationServices.cs
- DataGridCellsPanel.cs
- EnvelopedPkcs7.cs
- SeverityFilter.cs
- ColorAnimation.cs
- SubordinateTransaction.cs
- TextRangeSerialization.cs
- HtmlDocument.cs
- DataGridViewCellPaintingEventArgs.cs