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
- SubclassTypeValidator.cs
- DashStyle.cs
- ITextView.cs
- DbConnectionStringBuilder.cs
- xmlfixedPageInfo.cs
- XmlSchemaIdentityConstraint.cs
- XmlAutoDetectWriter.cs
- OSFeature.cs
- Substitution.cs
- DbConnectionPool.cs
- XmlObjectSerializerWriteContext.cs
- HttpFileCollection.cs
- WorkflowInstanceExtensionProvider.cs
- MouseActionConverter.cs
- FileSystemEventArgs.cs
- MethodBody.cs
- ServiceModelReg.cs
- M3DUtil.cs
- UnknownBitmapDecoder.cs
- WmiEventSink.cs
- mactripleDES.cs
- ToolStripGrip.cs
- XmlPreloadedResolver.cs
- ResourceAttributes.cs
- EncoderExceptionFallback.cs
- ICspAsymmetricAlgorithm.cs
- XmlSchemaFacet.cs
- FontStretches.cs
- VectorKeyFrameCollection.cs
- AsyncPostBackTrigger.cs
- TextBoxAutomationPeer.cs
- DataGridViewHitTestInfo.cs
- DefaultTypeArgumentAttribute.cs
- PrinterUnitConvert.cs
- ToolStripPanelCell.cs
- ZipPackagePart.cs
- IntPtr.cs
- HWStack.cs
- SocketElement.cs
- XamlSerializerUtil.cs
- HtmlContainerControl.cs
- FileEnumerator.cs
- EntityDataSourceChangedEventArgs.cs
- TextDecorationCollection.cs
- SizeAnimationBase.cs
- TableCellCollection.cs
- WebPartPersonalization.cs
- Quaternion.cs
- DefaultBinder.cs
- RemotingAttributes.cs
- HtmlContainerControl.cs
- DigitShape.cs
- UrlPath.cs
- FacetChecker.cs
- CollaborationHelperFunctions.cs
- basenumberconverter.cs
- WorkerRequest.cs
- ObjectListItem.cs
- DbSourceParameterCollection.cs
- FontEmbeddingManager.cs
- BitFlagsGenerator.cs
- ConfigurationErrorsException.cs
- FontCacheLogic.cs
- ApplicationHost.cs
- SmtpNtlmAuthenticationModule.cs
- SecurityUniqueId.cs
- ZipIOModeEnforcingStream.cs
- OdbcConnectionOpen.cs
- MultipartContentParser.cs
- CngUIPolicy.cs
- LocalizableAttribute.cs
- MediaPlayerState.cs
- FilterElement.cs
- CommonDialog.cs
- WebConfigurationHostFileChange.cs
- Evidence.cs
- NetNamedPipeBinding.cs
- XmlSchemaCompilationSettings.cs
- RenderContext.cs
- TypeUnloadedException.cs
- LineInfo.cs
- KeyInfo.cs
- WindowsFormsEditorServiceHelper.cs
- CounterCreationData.cs
- BounceEase.cs
- UseManagedPresentationElement.cs
- UMPAttributes.cs
- UInt16Storage.cs
- MatcherBuilder.cs
- StateChangeEvent.cs
- HashStream.cs
- CodeArrayIndexerExpression.cs
- XPathEmptyIterator.cs
- KnownIds.cs
- XamlReader.cs
- _CacheStreams.cs
- TypeGeneratedEventArgs.cs
- CharStorage.cs
- CompiledAction.cs
- PassportPrincipal.cs