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
- CodeEntryPointMethod.cs
- WebHttpBindingCollectionElement.cs
- UnsafeNativeMethodsCLR.cs
- GrammarBuilder.cs
- XComponentModel.cs
- BlobPersonalizationState.cs
- OleDbStruct.cs
- SingleTagSectionHandler.cs
- HostingEnvironmentSection.cs
- SecureEnvironment.cs
- JoinGraph.cs
- HtmlInputPassword.cs
- ConfigurationStrings.cs
- WebPartAuthorizationEventArgs.cs
- TemplateXamlParser.cs
- InheritablePropertyChangeInfo.cs
- AdCreatedEventArgs.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- ResXFileRef.cs
- SqlSupersetValidator.cs
- MarginsConverter.cs
- GuidelineSet.cs
- CheckBox.cs
- CroppedBitmap.cs
- UpDownEvent.cs
- Int64AnimationBase.cs
- DataGridCaption.cs
- DataGridHyperlinkColumn.cs
- EraserBehavior.cs
- BeginStoryboard.cs
- MetadataArtifactLoaderComposite.cs
- ContextProperty.cs
- ItemDragEvent.cs
- MimeWriter.cs
- DbProviderManifest.cs
- FileDialog_Vista_Interop.cs
- DrawingGroup.cs
- DeviceSpecific.cs
- DataTableTypeConverter.cs
- ResponseStream.cs
- Compilation.cs
- WindowsListView.cs
- SmtpMail.cs
- TreeNodeSelectionProcessor.cs
- MultiSelector.cs
- DelayedRegex.cs
- XmlNamedNodeMap.cs
- StringUtil.cs
- JoinTreeSlot.cs
- PagerSettings.cs
- XmlLinkedNode.cs
- IPipelineRuntime.cs
- __Filters.cs
- NumberAction.cs
- RealizationContext.cs
- UITypeEditor.cs
- ReplyChannelAcceptor.cs
- Vector3DIndependentAnimationStorage.cs
- IndicShape.cs
- StdRegProviderWrapper.cs
- KeyedHashAlgorithm.cs
- EventProviderTraceListener.cs
- WebUtil.cs
- AggregateException.cs
- EntityDataSourceChangingEventArgs.cs
- ListViewGroupCollectionEditor.cs
- ParameterDataSourceExpression.cs
- SimpleTypeResolver.cs
- CheckBoxStandardAdapter.cs
- XmlSerializableServices.cs
- XsltQilFactory.cs
- DbMetaDataCollectionNames.cs
- FileResponseElement.cs
- PropertyCollection.cs
- SafeProcessHandle.cs
- ApplyTemplatesAction.cs
- SharedConnectionListener.cs
- StreamInfo.cs
- DictionaryBase.cs
- ProcessInfo.cs
- DashStyle.cs
- WsatAdminException.cs
- WeakReferenceList.cs
- SymbolMethod.cs
- Encoder.cs
- httpapplicationstate.cs
- ExceptionAggregator.cs
- XmlDocument.cs
- RedirectionProxy.cs
- ExceptionHandlers.cs
- LookupNode.cs
- PreProcessor.cs
- WebPartZoneBase.cs
- CustomCategoryAttribute.cs
- Control.cs
- PartitionerStatic.cs
- ChangeToolStripParentVerb.cs
- FrameworkElementFactoryMarkupObject.cs
- KeyGestureConverter.cs
- MimeTypePropertyAttribute.cs