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
- ApplicationBuildProvider.cs
- Input.cs
- ListViewSortEventArgs.cs
- ReflectPropertyDescriptor.cs
- NativeBuffer.cs
- ListViewDeletedEventArgs.cs
- SR.cs
- HttpApplicationFactory.cs
- FullTextLine.cs
- ComplexBindingPropertiesAttribute.cs
- ScalarType.cs
- ToolboxItemLoader.cs
- SecurityPolicySection.cs
- DbMetaDataFactory.cs
- DrawingImage.cs
- ErrorHandler.cs
- SQLMembershipProvider.cs
- Byte.cs
- TreeBuilder.cs
- MetabaseServerConfig.cs
- GridViewRowPresenter.cs
- RuleSettingsCollection.cs
- AddInBase.cs
- ComponentCollection.cs
- StrokeCollection2.cs
- PagesChangedEventArgs.cs
- PeerOutputChannel.cs
- HttpPostProtocolReflector.cs
- ParagraphResult.cs
- BitStack.cs
- BindingObserver.cs
- HttpResponseInternalWrapper.cs
- ProtocolElement.cs
- bindurihelper.cs
- LayoutEvent.cs
- RowToParametersTransformer.cs
- DllHostedComPlusServiceHost.cs
- TemplateInstanceAttribute.cs
- HttpStaticObjectsCollectionWrapper.cs
- CodeAttachEventStatement.cs
- remotingproxy.cs
- SafeHandles.cs
- EntityTransaction.cs
- MulticastNotSupportedException.cs
- BindUriHelper.cs
- IntranetCredentialPolicy.cs
- CompositeActivityCodeGenerator.cs
- ConfigurationValue.cs
- JsonEnumDataContract.cs
- FragmentNavigationEventArgs.cs
- FrugalList.cs
- MachineKeyConverter.cs
- DataGridViewCellStyleConverter.cs
- ControllableStoryboardAction.cs
- Classification.cs
- WizardStepBase.cs
- SoapElementAttribute.cs
- XmlTextReaderImplHelpers.cs
- BinaryReader.cs
- DataGridColumnCollectionEditor.cs
- NavigationProperty.cs
- SystemIPv6InterfaceProperties.cs
- UnsettableComboBox.cs
- SequentialWorkflowRootDesigner.cs
- ListViewInsertionMark.cs
- UInt16Converter.cs
- ListParaClient.cs
- SignatureHelper.cs
- CachedCompositeFamily.cs
- TreeNodeMouseHoverEvent.cs
- TextRunCacheImp.cs
- ConnectionProviderAttribute.cs
- QueryOutputWriter.cs
- Nodes.cs
- MimeImporter.cs
- CopyNodeSetAction.cs
- LocalizationParserHooks.cs
- ThreadExceptionDialog.cs
- ColumnMapVisitor.cs
- WsatAdminException.cs
- MethodImplAttribute.cs
- IChannel.cs
- WsdlHelpGeneratorElement.cs
- OrthographicCamera.cs
- SingleResultAttribute.cs
- FontWeights.cs
- BindingsSection.cs
- UpWmlPageAdapter.cs
- WasEndpointConfigContainer.cs
- Inflater.cs
- TableItemPattern.cs
- DefaultSection.cs
- SchemaTypeEmitter.cs
- EmbossBitmapEffect.cs
- Size.cs
- Compiler.cs
- CircleHotSpot.cs
- X509SecurityToken.cs
- CatalogZoneDesigner.cs
- ProcessThreadCollection.cs