Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Automation / Peers / NavigationWindowAutomationPeer.cs / 1305600 / 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
- GridItemCollection.cs
- CngAlgorithm.cs
- RemotingSurrogateSelector.cs
- WpfXamlMember.cs
- PackWebRequestFactory.cs
- Marshal.cs
- EditBehavior.cs
- IUnknownConstantAttribute.cs
- ACL.cs
- SystemPens.cs
- XPathMultyIterator.cs
- InfoCard.cs
- MemberAccessException.cs
- UxThemeWrapper.cs
- UnsafeNetInfoNativeMethods.cs
- TemplateNameScope.cs
- OletxEnlistment.cs
- RelatedView.cs
- SmtpReplyReaderFactory.cs
- SystemColors.cs
- ArcSegment.cs
- ToolboxItem.cs
- LicenseContext.cs
- CodeMemberMethod.cs
- ScopeCompiler.cs
- VBCodeProvider.cs
- XmlObjectSerializerReadContextComplexJson.cs
- DBParameter.cs
- RegexWorker.cs
- DefaultPropertyAttribute.cs
- PerfService.cs
- SocketAddress.cs
- SRDisplayNameAttribute.cs
- Application.cs
- XmlSignatureManifest.cs
- NetDataContractSerializer.cs
- DesignerAutoFormat.cs
- SpecialNameAttribute.cs
- SerialPort.cs
- DataGridViewComboBoxEditingControl.cs
- HandlerMappingMemo.cs
- CodeGroup.cs
- XsltConvert.cs
- PerspectiveCamera.cs
- ServiceDescriptionImporter.cs
- LifetimeServices.cs
- ButtonDesigner.cs
- DrawTreeNodeEventArgs.cs
- StrokeCollection2.cs
- ToolboxDataAttribute.cs
- DataGridViewCellStyle.cs
- CompositeKey.cs
- ExtentJoinTreeNode.cs
- GlobalizationAssembly.cs
- CodeDomSerializationProvider.cs
- Quaternion.cs
- AdapterDictionary.cs
- IndexedEnumerable.cs
- QilName.cs
- TimeSpanValidator.cs
- TreeNodeCollection.cs
- OdbcConnectionString.cs
- Int64Converter.cs
- SchemaElementDecl.cs
- BoundingRectTracker.cs
- SHA1.cs
- GenericArgumentsUpdater.cs
- DesignerCategoryAttribute.cs
- CodeNamespaceImport.cs
- KnownBoxes.cs
- DataBoundControlDesigner.cs
- VisualTarget.cs
- SettingsPropertyValueCollection.cs
- ScriptResourceDefinition.cs
- RecordManager.cs
- XmlIgnoreAttribute.cs
- ServiceModelReg.cs
- PlatformCulture.cs
- EdmMember.cs
- ListViewGroupItemCollection.cs
- CoreSwitches.cs
- Container.cs
- BitmapVisualManager.cs
- SharedPerformanceCounter.cs
- EntityDataSourceContextCreatedEventArgs.cs
- CompleteWizardStep.cs
- APCustomTypeDescriptor.cs
- HatchBrush.cs
- ConfigViewGenerator.cs
- TextBoxRenderer.cs
- ThrowHelper.cs
- typedescriptorpermissionattribute.cs
- SqlStatistics.cs
- PseudoWebRequest.cs
- DrawingAttributeSerializer.cs
- FormViewCommandEventArgs.cs
- CrossSiteScriptingValidation.cs
- PatternMatcher.cs
- Crc32.cs
- BitmapMetadataEnumerator.cs