Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / System / Windows / Navigation / NavigationProgressEventArgs.cs / 1 / NavigationProgressEventArgs.cs
//---------------------------------------------------------------------------- // File: NavigationProgressEventArgs.cs // // Copyright (C) 2004 by Microsoft Corporation. All rights reserved. // // Description: // This event is fired when a navigation is in progress. It is fired for // every chunk of 1024 bytes read. // This event is fired on INavigator and refired on the NavigationWindow // and Application. When the event is re-fired on the // NavigationWindow, the bytesRead and maxBytes are the cumulative // totals of all navigations in progress in that window. The uri is the // uri that is contributing to this event, for frame level this is the frame's // uri, for window level it is the INavigator's Uri which received this // notification from the Loader // // History: // 08/10/04: kusumav Moved out of Application.cs to its own separate file. // //--------------------------------------------------------------------------- namespace System.Windows.Navigation { ////// Event args for the NavigationProgress event. /// The NavigationProgressEventArgs tell how many total bytes need to be downloaded and /// how many have been sent at the moment the event is fired. /// public class NavigationProgressEventArgs : EventArgs { // Internal constructor // URI of the markup page to navigate to. // The number of bytes that have already been downloaded. // The maximum number of bytes to be downloaded. // navigator that raised this event internal NavigationProgressEventArgs(Uri uri, long bytesRead, long maxBytes, object Navigator) { _uri = uri; _bytesRead = bytesRead; _maxBytes = maxBytes; _navigator = Navigator; } ////// URI of the markup page to navigate to. /// public Uri Uri { get { return _uri; } } ////// The number of bytes that have already been downloaded. /// public long BytesRead { get { return _bytesRead; } } ////// The maximum number of bytes to be downloaded. /// public long MaxBytes { get { return _maxBytes; } } ////// The navigator that raised this event /// public object Navigator { get { return _navigator; } } Uri _uri; long _bytesRead; long _maxBytes; object _navigator; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // File: NavigationProgressEventArgs.cs // // Copyright (C) 2004 by Microsoft Corporation. All rights reserved. // // Description: // This event is fired when a navigation is in progress. It is fired for // every chunk of 1024 bytes read. // This event is fired on INavigator and refired on the NavigationWindow // and Application. When the event is re-fired on the // NavigationWindow, the bytesRead and maxBytes are the cumulative // totals of all navigations in progress in that window. The uri is the // uri that is contributing to this event, for frame level this is the frame's // uri, for window level it is the INavigator's Uri which received this // notification from the Loader // // History: // 08/10/04: kusumav Moved out of Application.cs to its own separate file. // //--------------------------------------------------------------------------- namespace System.Windows.Navigation { ////// Event args for the NavigationProgress event. /// The NavigationProgressEventArgs tell how many total bytes need to be downloaded and /// how many have been sent at the moment the event is fired. /// public class NavigationProgressEventArgs : EventArgs { // Internal constructor // URI of the markup page to navigate to. // The number of bytes that have already been downloaded. // The maximum number of bytes to be downloaded. // navigator that raised this event internal NavigationProgressEventArgs(Uri uri, long bytesRead, long maxBytes, object Navigator) { _uri = uri; _bytesRead = bytesRead; _maxBytes = maxBytes; _navigator = Navigator; } ////// URI of the markup page to navigate to. /// public Uri Uri { get { return _uri; } } ////// The number of bytes that have already been downloaded. /// public long BytesRead { get { return _bytesRead; } } ////// The maximum number of bytes to be downloaded. /// public long MaxBytes { get { return _maxBytes; } } ////// The navigator that raised this event /// public object Navigator { get { return _navigator; } } Uri _uri; long _bytesRead; long _maxBytes; object _navigator; } } // 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
- PropertyTabAttribute.cs
- SchemaComplexType.cs
- IntegrationExceptionEventArgs.cs
- _AutoWebProxyScriptHelper.cs
- Matrix.cs
- UInt64Storage.cs
- CompilationUtil.cs
- EmptyCollection.cs
- CalculatedColumn.cs
- TabItemAutomationPeer.cs
- OAVariantLib.cs
- DataBinder.cs
- CheckedListBox.cs
- MutexSecurity.cs
- ConfigurationValidatorAttribute.cs
- DataGridViewTopRowAccessibleObject.cs
- ListenUriMode.cs
- IisTraceListener.cs
- TranslateTransform3D.cs
- XmlIncludeAttribute.cs
- XmlSerializerAssemblyAttribute.cs
- HashSetEqualityComparer.cs
- IDQuery.cs
- ElasticEase.cs
- ControlParameter.cs
- DataTable.cs
- SecurityTokenSerializer.cs
- Point3DAnimation.cs
- TextPattern.cs
- TextPatternIdentifiers.cs
- RichTextBoxConstants.cs
- OleDbMetaDataFactory.cs
- PropertyPushdownHelper.cs
- ToolStripSeparator.cs
- CaseCqlBlock.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- RedirectionProxy.cs
- ToolStripSplitStackLayout.cs
- Crc32Helper.cs
- Int32KeyFrameCollection.cs
- TextUtf8RawTextWriter.cs
- Helpers.cs
- ListViewItem.cs
- Attributes.cs
- GridItemPattern.cs
- InstanceValue.cs
- TimeSpan.cs
- MethodRental.cs
- QilInvoke.cs
- RuntimeWrappedException.cs
- DateTimePicker.cs
- ToolStrip.cs
- QueryableDataSourceHelper.cs
- SchemaName.cs
- Vector3DAnimationBase.cs
- UpdatePanelTrigger.cs
- PathFigureCollection.cs
- HttpRequestBase.cs
- SchemaMapping.cs
- FileDialogCustomPlace.cs
- ExeContext.cs
- ButtonColumn.cs
- SetState.cs
- LayoutSettings.cs
- StringUtil.cs
- DnsEndPoint.cs
- TimelineGroup.cs
- ModelUIElement3D.cs
- PageSetupDialog.cs
- AttributeCallbackBuilder.cs
- TraceUtils.cs
- SqlBulkCopy.cs
- Nullable.cs
- Int16Converter.cs
- ContentHostHelper.cs
- SecUtil.cs
- _SSPIWrapper.cs
- LabelEditEvent.cs
- DragDeltaEventArgs.cs
- CookielessHelper.cs
- XmlParser.cs
- HealthMonitoringSectionHelper.cs
- SinglePageViewer.cs
- DataRecordInternal.cs
- WindowsPen.cs
- Model3DGroup.cs
- UTF8Encoding.cs
- XmlDeclaration.cs
- SQLChars.cs
- ProgressBar.cs
- ModuleConfigurationInfo.cs
- Variant.cs
- TextModifier.cs
- FileLogRecordStream.cs
- SeverityFilter.cs
- TransformerConfigurationWizardBase.cs
- App.cs
- Delegate.cs
- Trigger.cs
- MissingManifestResourceException.cs