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
- WindowsMenu.cs
- Menu.cs
- KeyValueSerializer.cs
- Timer.cs
- SiteOfOriginPart.cs
- DataStreams.cs
- BufferedOutputAsyncStream.cs
- ConfigurationStrings.cs
- XsdDuration.cs
- WorkflowInstance.cs
- SoapEnumAttribute.cs
- __Filters.cs
- DataGridColumnStyleMappingNameEditor.cs
- RoleManagerSection.cs
- ControlAdapter.cs
- SourceElementsCollection.cs
- ListViewGroupConverter.cs
- NonBatchDirectoryCompiler.cs
- AsnEncodedData.cs
- SchemaEntity.cs
- ErrorEventArgs.cs
- XPathNode.cs
- IOThreadTimer.cs
- NamespaceInfo.cs
- ReadOnlyMetadataCollection.cs
- MachineKeySection.cs
- ResourceExpression.cs
- TreeWalkHelper.cs
- TransformPattern.cs
- SerializerWriterEventHandlers.cs
- DependencyObjectPropertyDescriptor.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- QuaternionAnimation.cs
- ValidationHelper.cs
- UserControlAutomationPeer.cs
- BrowserCapabilitiesFactoryBase.cs
- PropertyManager.cs
- IERequestCache.cs
- ReceiveActivityValidator.cs
- ListBindingConverter.cs
- ConversionContext.cs
- WebControlsSection.cs
- XmlCollation.cs
- OracleDataReader.cs
- TextDecorationLocationValidation.cs
- ISessionStateStore.cs
- SqlExpressionNullability.cs
- BackStopAuthenticationModule.cs
- MetadataItem.cs
- Trigger.cs
- HttpCacheParams.cs
- StateMachineHelpers.cs
- Base64Encoder.cs
- DiscoveryDocumentSearchPattern.cs
- DebugHandleTracker.cs
- DataExpression.cs
- PictureBoxDesigner.cs
- TextEditorSpelling.cs
- HttpResponse.cs
- ChannelManagerHelpers.cs
- StylusButtonCollection.cs
- SqlCacheDependencySection.cs
- Propagator.JoinPropagator.cs
- Native.cs
- PropertyDescriptorComparer.cs
- ProxySimple.cs
- ImportDesigner.xaml.cs
- PauseStoryboard.cs
- OLEDB_Enum.cs
- MessageDecoder.cs
- DynamicRenderer.cs
- SelectionProviderWrapper.cs
- DescendantBaseQuery.cs
- ProjectionCamera.cs
- FormatSettings.cs
- SchemaNamespaceManager.cs
- DataBoundControlHelper.cs
- Regex.cs
- WindowsFormsHelpers.cs
- GlobalizationSection.cs
- WebPartConnection.cs
- PresentationSource.cs
- QueryReaderSettings.cs
- TextTreeRootTextBlock.cs
- TiffBitmapDecoder.cs
- SystemTcpConnection.cs
- CatalogZoneAutoFormat.cs
- RepeatBehaviorConverter.cs
- State.cs
- SmtpNegotiateAuthenticationModule.cs
- CodeTypeReferenceExpression.cs
- CodeAttributeArgument.cs
- ItemContainerProviderWrapper.cs
- StringUtil.cs
- Point3DAnimationBase.cs
- MetadataWorkspace.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- DeflateStream.cs
- UnionCodeGroup.cs
- ToolbarAUtomationPeer.cs