Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Navigation / NavigationProgressEventArgs.cs / 1305600 / 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
- StyleHelper.cs
- Command.cs
- FixedPageAutomationPeer.cs
- Publisher.cs
- ListenerElementsCollection.cs
- pingexception.cs
- MatrixUtil.cs
- WebPartManagerInternals.cs
- CommonGetThemePartSize.cs
- SQLInt32.cs
- DrawingContext.cs
- WebEventTraceProvider.cs
- PrinterSettings.cs
- _BasicClient.cs
- XmlSchemaSimpleContentExtension.cs
- DatePicker.cs
- FullTrustAssembliesSection.cs
- Positioning.cs
- BindingWorker.cs
- SqlDataSourceView.cs
- CatchBlock.cs
- DataSourceView.cs
- ServiceNotStartedException.cs
- XmlSchemaComplexType.cs
- Pkcs7Signer.cs
- AlphabeticalEnumConverter.cs
- DependencyObject.cs
- SystemException.cs
- GeneralTransformCollection.cs
- ListViewGroupItemCollection.cs
- PasswordDeriveBytes.cs
- DbDataRecord.cs
- ListMarkerSourceInfo.cs
- CaseInsensitiveComparer.cs
- EnumUnknown.cs
- GroupBox.cs
- CalendarSelectionChangedEventArgs.cs
- Internal.cs
- GuidTagList.cs
- ManagementQuery.cs
- DragDeltaEventArgs.cs
- ToolStripControlHost.cs
- StackOverflowException.cs
- TypeAccessException.cs
- XmlElementList.cs
- DocumentPropertiesDialog.cs
- XamlReader.cs
- InvalidPropValue.cs
- NullToBooleanConverter.cs
- Inflater.cs
- xdrvalidator.cs
- ResourceDescriptionAttribute.cs
- TextAction.cs
- PrintDocument.cs
- XmlException.cs
- SiteMapDataSourceView.cs
- TypeAccessException.cs
- EventSinkActivity.cs
- PersonalizationProviderCollection.cs
- DataSourceSelectArguments.cs
- PermissionSetTriple.cs
- UpdateRecord.cs
- ExtractedStateEntry.cs
- HtmlInputSubmit.cs
- PenContexts.cs
- ExecutionEngineException.cs
- TreeBuilder.cs
- TemplatedMailWebEventProvider.cs
- TypeConverterHelper.cs
- CachedBitmap.cs
- WebScriptEnablingElement.cs
- ClientSideQueueItem.cs
- DataGridViewColumnConverter.cs
- TableCellCollection.cs
- LayoutUtils.cs
- NonParentingControl.cs
- WorkflowRuntimeElement.cs
- TreeNodeBinding.cs
- Range.cs
- KeyboardNavigation.cs
- SafeFileHandle.cs
- LinkedResourceCollection.cs
- StatusBar.cs
- XmlElement.cs
- SqlLiftIndependentRowExpressions.cs
- CompositeActivityDesigner.cs
- PolyLineSegmentFigureLogic.cs
- GridViewColumnHeaderAutomationPeer.cs
- QueryCursorEventArgs.cs
- RangeValueProviderWrapper.cs
- KeySplineConverter.cs
- AjaxFrameworkAssemblyAttribute.cs
- ResourceWriter.cs
- MarkupExtensionParser.cs
- ActivationWorker.cs
- PrimitiveSchema.cs
- SqlInfoMessageEvent.cs
- ToolboxService.cs
- DataGridRow.cs
- InkSerializer.cs