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
- SafeRightsManagementSessionHandle.cs
- HttpAsyncResult.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- PropertyBuilder.cs
- FieldCollectionEditor.cs
- ToolStripDropDownItem.cs
- FrameworkElement.cs
- QilChoice.cs
- TextEndOfLine.cs
- CodeObject.cs
- MetadataWorkspace.cs
- RecipientInfo.cs
- EventRouteFactory.cs
- DispatcherExceptionEventArgs.cs
- ImageBrush.cs
- EventLogTraceListener.cs
- ProtocolsConfiguration.cs
- embossbitmapeffect.cs
- DataSourceExpressionCollection.cs
- UserCancellationException.cs
- EventLogPermission.cs
- TimeZone.cs
- TextModifier.cs
- OdbcDataAdapter.cs
- sortedlist.cs
- Win32SafeHandles.cs
- Main.cs
- GridErrorDlg.cs
- VisualBasicImportReference.cs
- BaseDataList.cs
- RegularExpressionValidator.cs
- Stack.cs
- LogSwitch.cs
- DatePicker.cs
- ChildChangedEventArgs.cs
- GenerateScriptTypeAttribute.cs
- X509Chain.cs
- CombinedGeometry.cs
- MailHeaderInfo.cs
- BoundField.cs
- XmlTextAttribute.cs
- ImageCodecInfo.cs
- SoundPlayer.cs
- ExceptionHelpers.cs
- EntityContainerEmitter.cs
- InstalledFontCollection.cs
- NamespaceEmitter.cs
- ThreadPool.cs
- invalidudtexception.cs
- ConfigurationManagerInternal.cs
- SyntaxCheck.cs
- DialogResultConverter.cs
- EntityDataSourceValidationException.cs
- Perspective.cs
- ExpandSegmentCollection.cs
- Optimizer.cs
- xml.cs
- CompositeDuplexElement.cs
- XsltLoader.cs
- GlyphRunDrawing.cs
- ImportOptions.cs
- NTAccount.cs
- GridPatternIdentifiers.cs
- BitmapEffectDrawingContextWalker.cs
- ReadOnlyHierarchicalDataSourceView.cs
- XmlSchemaValidationException.cs
- IteratorDescriptor.cs
- UpdateException.cs
- XmlSerializerSection.cs
- XmlWrappingReader.cs
- AtomPub10CategoriesDocumentFormatter.cs
- StructuredType.cs
- PageBreakRecord.cs
- webeventbuffer.cs
- TagMapCollection.cs
- AutoResetEvent.cs
- DataGridState.cs
- FixedPageProcessor.cs
- StateRuntime.cs
- NameTable.cs
- RuleSetBrowserDialog.cs
- ProcessHost.cs
- CodeAccessPermission.cs
- CodeTypeParameter.cs
- SignatureToken.cs
- SystemInformation.cs
- SByte.cs
- Atom10FormatterFactory.cs
- CheckBoxPopupAdapter.cs
- Evidence.cs
- ViewStateException.cs
- ObjectViewListener.cs
- WorkflowFileItem.cs
- CustomAttributeFormatException.cs
- MarshalByValueComponent.cs
- LassoHelper.cs
- SimpleTextLine.cs
- TempFiles.cs
- X509WindowsSecurityToken.cs
- TagPrefixInfo.cs