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
- COAUTHIDENTITY.cs
- QueryStringParameter.cs
- BamlCollectionHolder.cs
- AuthenticationService.cs
- TypeToken.cs
- OracleSqlParser.cs
- ShowExpandedMultiValueConverter.cs
- OracleParameter.cs
- ResetableIterator.cs
- FixedSOMLineRanges.cs
- LookupBindingPropertiesAttribute.cs
- RichTextBoxConstants.cs
- SafeFileHandle.cs
- JapaneseCalendar.cs
- SecurityElement.cs
- EmbeddedMailObject.cs
- DirectoryNotFoundException.cs
- FormsAuthenticationEventArgs.cs
- MachinePropertyVariants.cs
- SimpleLine.cs
- PowerModeChangedEventArgs.cs
- embossbitmapeffect.cs
- IgnoreFileBuildProvider.cs
- SmtpAuthenticationManager.cs
- TextFormatter.cs
- RSACryptoServiceProvider.cs
- loginstatus.cs
- XmlNotation.cs
- FormViewCommandEventArgs.cs
- ContainerFilterService.cs
- WebPartMovingEventArgs.cs
- CompModSwitches.cs
- WebPartHelpVerb.cs
- CheckBox.cs
- StaticResourceExtension.cs
- SqlBulkCopyColumnMappingCollection.cs
- SoapRpcServiceAttribute.cs
- ManualWorkflowSchedulerService.cs
- CmsInterop.cs
- BaseDataList.cs
- ExternalCalls.cs
- CancellationToken.cs
- JsonWriterDelegator.cs
- ExtensibleClassFactory.cs
- HelpFileFileNameEditor.cs
- ValueConversionAttribute.cs
- Hash.cs
- ValueType.cs
- EnvelopedPkcs7.cs
- SafeHandle.cs
- SplitterEvent.cs
- QueryRewriter.cs
- SortDescription.cs
- IpcChannelHelper.cs
- FormClosingEvent.cs
- CaseInsensitiveComparer.cs
- ConfigurationManagerInternalFactory.cs
- DbProviderFactory.cs
- SchemaObjectWriter.cs
- PlaceHolder.cs
- ColorConverter.cs
- VectorAnimationUsingKeyFrames.cs
- ConfigXmlCDataSection.cs
- PerfService.cs
- SqlDataSourceFilteringEventArgs.cs
- FormsAuthenticationEventArgs.cs
- XmlSerializationWriter.cs
- Attributes.cs
- XmlSchemaSimpleContent.cs
- ContainerUIElement3D.cs
- DefaultPropertyAttribute.cs
- VersionValidator.cs
- Renderer.cs
- EntityContainerEmitter.cs
- EntitySqlException.cs
- HandlerWithFactory.cs
- XmlTextReaderImplHelpers.cs
- EntityContainerEntitySet.cs
- DataPagerFieldCommandEventArgs.cs
- Vector3D.cs
- PnrpPermission.cs
- NativeMethods.cs
- ContainerTracking.cs
- MethodMessage.cs
- DragEventArgs.cs
- WebPartHeaderCloseVerb.cs
- FontDialog.cs
- RewritingProcessor.cs
- HttpApplication.cs
- CacheAxisQuery.cs
- xml.cs
- ReadContentAsBinaryHelper.cs
- DesigntimeLicenseContext.cs
- ErrorWrapper.cs
- SqlGenericUtil.cs
- ListBox.cs
- TypeUtils.cs
- ContextMenu.cs
- XmlSerializationWriter.cs
- DataGridRow.cs