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
- AllMembershipCondition.cs
- DiscardableAttribute.cs
- MetadataCacheItem.cs
- FillRuleValidation.cs
- Positioning.cs
- XmlStreamNodeWriter.cs
- BooleanAnimationBase.cs
- HtmlInputImage.cs
- Listener.cs
- ControlPaint.cs
- ParseChildrenAsPropertiesAttribute.cs
- EntityContainerAssociationSetEnd.cs
- ProfileParameter.cs
- Splitter.cs
- SiteMapHierarchicalDataSourceView.cs
- HttpContext.cs
- AssemblyHash.cs
- localization.cs
- UICuesEvent.cs
- ProcessHostServerConfig.cs
- IgnoreDeviceFilterElementCollection.cs
- ViewUtilities.cs
- ListBoxItem.cs
- UpdatePanelTriggerCollection.cs
- TemplatedMailWebEventProvider.cs
- OdbcEnvironment.cs
- HtmlContainerControl.cs
- FixedSchema.cs
- FixedSchema.cs
- GeometryDrawing.cs
- TransferMode.cs
- UdpMessageProperty.cs
- WeakHashtable.cs
- XmlSchemaExporter.cs
- DataServiceConfiguration.cs
- ReflectionTypeLoadException.cs
- Avt.cs
- TemplateManager.cs
- UnauthorizedAccessException.cs
- WebPartEditorApplyVerb.cs
- DiagnosticsConfiguration.cs
- PagesChangedEventArgs.cs
- XamlStyleSerializer.cs
- LogWriteRestartAreaState.cs
- Choices.cs
- SendSecurityHeaderElement.cs
- PartDesigner.cs
- SqlHelper.cs
- ViewManager.cs
- OpacityConverter.cs
- SafeReversePInvokeHandle.cs
- StickyNoteHelper.cs
- DataGridViewRowsAddedEventArgs.cs
- ViewGenResults.cs
- StackSpiller.Temps.cs
- WorkflowInstance.cs
- ImageButton.cs
- ScrollContentPresenter.cs
- WorkflowMarkupSerializationProvider.cs
- OdbcConnectionOpen.cs
- OleDbDataAdapter.cs
- ConfigurationException.cs
- MarkupObject.cs
- FixedSOMLineCollection.cs
- Lease.cs
- BezierSegment.cs
- WindowsSlider.cs
- columnmapkeybuilder.cs
- SqlCachedBuffer.cs
- WindowsEditBox.cs
- URIFormatException.cs
- UrlMappingsSection.cs
- XmlSchemaInclude.cs
- GeometryModel3D.cs
- Grid.cs
- DependencyPropertyConverter.cs
- EventProxy.cs
- ProtocolsConfigurationEntry.cs
- Encoder.cs
- DataGridViewComboBoxColumnDesigner.cs
- CheckBox.cs
- ConfigurationManagerHelper.cs
- NaturalLanguageHyphenator.cs
- PropertyTabAttribute.cs
- ConfigurationManagerHelper.cs
- ShellProvider.cs
- SqlFileStream.cs
- MultipartIdentifier.cs
- EventManager.cs
- ErrorProvider.cs
- DocumentViewer.cs
- TreeViewImageIndexConverter.cs
- SqlCachedBuffer.cs
- WebUtility.cs
- ModelItemDictionary.cs
- XmlAttribute.cs
- IntSecurity.cs
- HashCryptoHandle.cs
- EntityDataSourceDesigner.cs
- SamlAssertionKeyIdentifierClause.cs