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
- SqlFunctions.cs
- AuthenticationServiceManager.cs
- EntityDescriptor.cs
- GlobalizationAssembly.cs
- ExpressionLexer.cs
- AutomationProperties.cs
- Font.cs
- HttpHandlerAction.cs
- _ScatterGatherBuffers.cs
- TagNameToTypeMapper.cs
- SerializationInfo.cs
- AuthorizationSection.cs
- Expression.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- FixedFlowMap.cs
- Attributes.cs
- WSHttpBindingBase.cs
- AtomServiceDocumentSerializer.cs
- WebPartMenuStyle.cs
- NotifyInputEventArgs.cs
- TimeSpanValidator.cs
- SQLRoleProvider.cs
- GridViewRowEventArgs.cs
- MatrixAnimationUsingKeyFrames.cs
- ListViewGroupConverter.cs
- NonBatchDirectoryCompiler.cs
- listitem.cs
- XmlSchemaException.cs
- ExtentCqlBlock.cs
- Invariant.cs
- TaskFactory.cs
- LifetimeServices.cs
- ListDesigner.cs
- WebRequestModuleElementCollection.cs
- ToolboxDataAttribute.cs
- _TimerThread.cs
- IndexedEnumerable.cs
- ArraySortHelper.cs
- OpenTypeCommon.cs
- ThreadAttributes.cs
- SelectionPatternIdentifiers.cs
- FixedSchema.cs
- RectangleConverter.cs
- Error.cs
- RestHandler.cs
- XPathDocumentIterator.cs
- ControlValuePropertyAttribute.cs
- SizeAnimationClockResource.cs
- XmlCustomFormatter.cs
- Button.cs
- UIHelper.cs
- ClassImporter.cs
- RenderingBiasValidation.cs
- DesignBindingPropertyDescriptor.cs
- RequestBringIntoViewEventArgs.cs
- HttpException.cs
- ActivityExecutionContext.cs
- QilBinary.cs
- WorkflowApplicationIdleEventArgs.cs
- MemberRelationshipService.cs
- HuffmanTree.cs
- XmlSchemaComplexContentExtension.cs
- RegionInfo.cs
- TextProperties.cs
- Brush.cs
- Floater.cs
- SourceInterpreter.cs
- WorkflowEnvironment.cs
- FileDialog_Vista.cs
- PropertyInfoSet.cs
- AnnotationComponentChooser.cs
- ComboBoxItem.cs
- StrokeNodeData.cs
- VectorKeyFrameCollection.cs
- ExpanderAutomationPeer.cs
- Subtract.cs
- path.cs
- RuntimeConfig.cs
- MessageEncodingBindingElement.cs
- DesignRelationCollection.cs
- SaveFileDialog.cs
- EnumValidator.cs
- ListViewDataItem.cs
- RequestQueryParser.cs
- ColorBuilder.cs
- TransactionScope.cs
- AspNetCompatibilityRequirementsAttribute.cs
- DynamicEntity.cs
- OleCmdHelper.cs
- RefExpr.cs
- PtsPage.cs
- SafeViewOfFileHandle.cs
- Validator.cs
- Matrix.cs
- TextRangeEditTables.cs
- WindowsIdentity.cs
- SchemaNames.cs
- CodeStatementCollection.cs
- EpmCustomContentSerializer.cs
- BrowserCapabilitiesCompiler.cs