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
- ConfigurationErrorsException.cs
- FloaterBaseParagraph.cs
- MostlySingletonList.cs
- ScriptResourceHandler.cs
- CorrelationQueryBehavior.cs
- ConsoleKeyInfo.cs
- EntityDataSourceQueryBuilder.cs
- Random.cs
- Material.cs
- IxmlLineInfo.cs
- WorkflowApplicationCompletedEventArgs.cs
- UInt64.cs
- RuntimeEnvironment.cs
- RectKeyFrameCollection.cs
- StylusShape.cs
- Span.cs
- CodeStatementCollection.cs
- HtmlInputRadioButton.cs
- DrawingServices.cs
- AppDomainShutdownMonitor.cs
- XsdSchemaFileEditor.cs
- OleDbConnectionInternal.cs
- SecurityUniqueId.cs
- ElementProxy.cs
- LayoutManager.cs
- OrderedDictionaryStateHelper.cs
- ConfigurationProperty.cs
- MenuItemBinding.cs
- IntranetCredentialPolicy.cs
- MsmqSecureHashAlgorithm.cs
- PreProcessInputEventArgs.cs
- BaseTreeIterator.cs
- DesignerView.cs
- WebHttpElement.cs
- PointCollectionConverter.cs
- XmlComplianceUtil.cs
- RangeValueProviderWrapper.cs
- SqlClientFactory.cs
- DataGridViewComboBoxEditingControl.cs
- RemotingServices.cs
- SmiConnection.cs
- MultiBinding.cs
- BlockCollection.cs
- DesigntimeLicenseContextSerializer.cs
- ClockController.cs
- connectionpool.cs
- RegistrySecurity.cs
- ElasticEase.cs
- ReadOnlyDictionary.cs
- RoutedEventConverter.cs
- BaseComponentEditor.cs
- AccessDataSource.cs
- PaintValueEventArgs.cs
- CreateUserWizardAutoFormat.cs
- ReferencedCollectionType.cs
- BackgroundFormatInfo.cs
- TimeStampChecker.cs
- ByteKeyFrameCollection.cs
- XmlCharacterData.cs
- DependencyProperty.cs
- PrimitiveCodeDomSerializer.cs
- RuntimeArgumentHandle.cs
- SystemBrushes.cs
- DataBoundControl.cs
- mediaeventargs.cs
- ReachDocumentPageSerializer.cs
- PropertyChangedEventManager.cs
- RtType.cs
- NonParentingControl.cs
- DataGridPagerStyle.cs
- ReflectionHelper.cs
- IMembershipProvider.cs
- PropertyState.cs
- InvalidDataException.cs
- Rotation3DKeyFrameCollection.cs
- ClusterRegistryConfigurationProvider.cs
- ErrorCodes.cs
- EntityClientCacheKey.cs
- DataControlPagerLinkButton.cs
- Hash.cs
- behaviorssection.cs
- BounceEase.cs
- CodeTypeParameter.cs
- DataGridViewCellConverter.cs
- SearchExpression.cs
- XmlReader.cs
- ValidationEventArgs.cs
- UInt64Storage.cs
- BufferedReadStream.cs
- DifferencingCollection.cs
- HwndStylusInputProvider.cs
- Content.cs
- MappingSource.cs
- Substitution.cs
- SqlBooleanMismatchVisitor.cs
- WsdlContractConversionContext.cs
- ReadOnlyPermissionSet.cs
- SerializationUtility.cs
- HtmlImageAdapter.cs
- WebPartAddingEventArgs.cs