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
- StatusStrip.cs
- ModifierKeysValueSerializer.cs
- ValueQuery.cs
- SByte.cs
- DesignBindingEditor.cs
- CatalogZoneBase.cs
- InternalTransaction.cs
- UserNamePasswordValidator.cs
- MouseDevice.cs
- OpCopier.cs
- XmlSchemaSimpleContent.cs
- LeftCellWrapper.cs
- TextLineBreak.cs
- RootBrowserWindowProxy.cs
- SystemGatewayIPAddressInformation.cs
- DrawingCollection.cs
- ConvertersCollection.cs
- TextBoxAutoCompleteSourceConverter.cs
- DataGrid.cs
- _UriTypeConverter.cs
- EventWaitHandle.cs
- DefaultAssemblyResolver.cs
- FixedDocumentSequencePaginator.cs
- InstanceDataCollection.cs
- SocketElement.cs
- Style.cs
- XPathScanner.cs
- Closure.cs
- SiteMapDataSource.cs
- Soap12ProtocolReflector.cs
- HandleCollector.cs
- UnmanagedBitmapWrapper.cs
- PrinterResolution.cs
- SqlDelegatedTransaction.cs
- ConvertTextFrag.cs
- assertwrapper.cs
- WaitHandle.cs
- RouteValueDictionary.cs
- TemplateNameScope.cs
- ValidatedControlConverter.cs
- FlowLayoutPanel.cs
- HttpClientProtocol.cs
- PublisherMembershipCondition.cs
- TrackingMemoryStream.cs
- BooleanSwitch.cs
- CurrentTimeZone.cs
- ProxyWebPartManagerDesigner.cs
- WorkflowRuntimeServiceElement.cs
- SiteMapNode.cs
- AdRotator.cs
- HandleCollector.cs
- SHA512Managed.cs
- NameValueCollection.cs
- XhtmlBasicLinkAdapter.cs
- Path.cs
- TableRow.cs
- precedingquery.cs
- VectorCollectionConverter.cs
- Vector3DAnimation.cs
- ToolStripItem.cs
- DefaultAutoFieldGenerator.cs
- SequenceNumber.cs
- Point4D.cs
- RTTrackingProfile.cs
- Semaphore.cs
- EntityContainer.cs
- CompoundFileStorageReference.cs
- InternalControlCollection.cs
- NavigatorInput.cs
- EncoderExceptionFallback.cs
- ObjectDataSourceChooseTypePanel.cs
- ControlPropertyNameConverter.cs
- Point3DCollectionValueSerializer.cs
- BlockingCollection.cs
- ValidatorCompatibilityHelper.cs
- DataListItemCollection.cs
- SecurityContextSecurityTokenParameters.cs
- ClientSettingsProvider.cs
- PropertyIDSet.cs
- DrawingImage.cs
- DataPagerCommandEventArgs.cs
- SchemaCollectionPreprocessor.cs
- BitmapScalingModeValidation.cs
- DocumentOutline.cs
- Section.cs
- AsymmetricKeyExchangeFormatter.cs
- IntellisenseTextBox.designer.cs
- ResourceDescriptionAttribute.cs
- HttpCacheParams.cs
- ApplicationHost.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- FunctionParameter.cs
- XPathNavigator.cs
- LocatorPart.cs
- BaseCodeDomTreeGenerator.cs
- XmlHelper.cs
- ImageMap.cs
- DataGridViewColumn.cs
- SqlDataSourceSelectingEventArgs.cs
- ReadWriteSpinLock.cs