Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / Navigation / RequestNavigateEventArgs.cs / 1 / RequestNavigateEventArgs.cs
//----------------------------------------------------------------------------
// File: RequestNavigateEventArgs.cs
//
// Copyright (C) 2001 by Microsoft Corporation. All rights reserved.
//
//---------------------------------------------------------------------------
using System;
using System.Net;
using System.Windows;
using MS.Internal.Utility;
namespace System.Windows.Navigation
{
///
/// EventArgs for RequestNavigate
///
///
public class RequestNavigateEventArgs : RoutedEventArgs
{
Uri _uri;
string _target;
///
/// Default constructor
///
///
protected RequestNavigateEventArgs() : base()
{
base.RoutedEvent=System.Windows.Documents.Hyperlink.RequestNavigateEvent;
}
///
/// Constructor
///
/// Uri to navigate
/// Name of the target navigator
///
public RequestNavigateEventArgs(Uri uri, string target) : base()
{
_uri = uri;
_target = target;
base.RoutedEvent=System.Windows.Documents.Hyperlink.RequestNavigateEvent;
}
///
/// Uri to navigate
///
///
///
/// Don't add a setter to this property since it could open up for spoofing attacks.
///
public Uri Uri
{
get{return _uri;}
}
///
/// Target window or frame to perform navigation
///
///
public string Target
{
get{return _target;}
}
///
///
///
///
///
protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
{
if (RoutedEvent == null)
{
throw new InvalidOperationException(SR.Get(SRID.RequestNavigateEventMustHaveRoutedEvent));
}
RequestNavigateEventHandler handler = (RequestNavigateEventHandler)genericHandler;
handler(genericTarget, this);
}
}
///
/// Delegate that handles RequestNavigate event.
///
///
public delegate void RequestNavigateEventHandler(object sender, RequestNavigateEventArgs e);
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------------------------
// File: RequestNavigateEventArgs.cs
//
// Copyright (C) 2001 by Microsoft Corporation. All rights reserved.
//
//---------------------------------------------------------------------------
using System;
using System.Net;
using System.Windows;
using MS.Internal.Utility;
namespace System.Windows.Navigation
{
///
/// EventArgs for RequestNavigate
///
///
public class RequestNavigateEventArgs : RoutedEventArgs
{
Uri _uri;
string _target;
///
/// Default constructor
///
///
protected RequestNavigateEventArgs() : base()
{
base.RoutedEvent=System.Windows.Documents.Hyperlink.RequestNavigateEvent;
}
///
/// Constructor
///
/// Uri to navigate
/// Name of the target navigator
///
public RequestNavigateEventArgs(Uri uri, string target) : base()
{
_uri = uri;
_target = target;
base.RoutedEvent=System.Windows.Documents.Hyperlink.RequestNavigateEvent;
}
///
/// Uri to navigate
///
///
///
/// Don't add a setter to this property since it could open up for spoofing attacks.
///
public Uri Uri
{
get{return _uri;}
}
///
/// Target window or frame to perform navigation
///
///
public string Target
{
get{return _target;}
}
///
///
///
///
///
protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
{
if (RoutedEvent == null)
{
throw new InvalidOperationException(SR.Get(SRID.RequestNavigateEventMustHaveRoutedEvent));
}
RequestNavigateEventHandler handler = (RequestNavigateEventHandler)genericHandler;
handler(genericTarget, this);
}
}
///
/// Delegate that handles RequestNavigate event.
///
///
public delegate void RequestNavigateEventHandler(object sender, RequestNavigateEventArgs e);
}
// 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
- KeyValueConfigurationCollection.cs
- WsatProxy.cs
- LoadWorkflowAsyncResult.cs
- LocalizabilityAttribute.cs
- Compiler.cs
- Tile.cs
- FloaterParagraph.cs
- ListDataHelper.cs
- ConfigurationPropertyAttribute.cs
- MailSettingsSection.cs
- IdentifierCreationService.cs
- DataPagerField.cs
- FlowDocumentReader.cs
- TemplateBuilder.cs
- HttpResponseInternalWrapper.cs
- Crypto.cs
- DataGridViewMethods.cs
- EmptyReadOnlyDictionaryInternal.cs
- FixedSOMPageConstructor.cs
- SparseMemoryStream.cs
- MaterialCollection.cs
- SmiEventStream.cs
- CopyOfAction.cs
- CompositionAdorner.cs
- WebPartConnectionsCancelEventArgs.cs
- CheckBox.cs
- NamedPipeAppDomainProtocolHandler.cs
- GregorianCalendarHelper.cs
- IdentityModelDictionary.cs
- ClientSettingsStore.cs
- EntitySqlQueryCacheEntry.cs
- QueryCacheKey.cs
- EventWaitHandle.cs
- FilterEventArgs.cs
- FieldReference.cs
- SqlConnectionPoolProviderInfo.cs
- ZipIOLocalFileDataDescriptor.cs
- LinearGradientBrush.cs
- Stylus.cs
- TextEditorCharacters.cs
- ExtensionDataObject.cs
- SettingsBase.cs
- AdapterUtil.cs
- SqlUserDefinedAggregateAttribute.cs
- HttpGetProtocolImporter.cs
- SqlNotificationEventArgs.cs
- loginstatus.cs
- ListViewItem.cs
- MatrixCamera.cs
- CapiSafeHandles.cs
- HelpKeywordAttribute.cs
- QuaternionKeyFrameCollection.cs
- XmlMapping.cs
- ReplacementText.cs
- ToolStripContentPanelRenderEventArgs.cs
- WebPartDisplayModeCollection.cs
- StateDesigner.TransitionInfo.cs
- BitmapSourceSafeMILHandle.cs
- TimelineGroup.cs
- FileNotFoundException.cs
- StateWorkerRequest.cs
- XmlSchemaSimpleContentRestriction.cs
- Translator.cs
- WorkflowMarkupSerializerMapping.cs
- SQLDateTimeStorage.cs
- embossbitmapeffect.cs
- DeferredBinaryDeserializerExtension.cs
- UserControl.cs
- FormsAuthenticationCredentials.cs
- ReaderWriterLockWrapper.cs
- DataGridColumnCollectionEditor.cs
- NamespaceQuery.cs
- ToolboxItemImageConverter.cs
- AsymmetricKeyExchangeDeformatter.cs
- MetadataItemCollectionFactory.cs
- ServicePointManagerElement.cs
- WebAdminConfigurationHelper.cs
- codemethodreferenceexpression.cs
- StructureChangedEventArgs.cs
- ChtmlSelectionListAdapter.cs
- SystemIPInterfaceProperties.cs
- NamespaceCollection.cs
- ObjectComplexPropertyMapping.cs
- OracleMonthSpan.cs
- ZipIOCentralDirectoryBlock.cs
- SafeRegistryKey.cs
- ModuleConfigurationInfo.cs
- ColorMatrix.cs
- Size.cs
- PageAsyncTask.cs
- XmlHelper.cs
- AnonymousIdentificationSection.cs
- SecurityKeyIdentifierClause.cs
- _FtpControlStream.cs
- EntityContainerEntitySet.cs
- AccessDataSourceView.cs
- MouseCaptureWithinProperty.cs
- SafeRegistryKey.cs
- HttpStaticObjectsCollectionBase.cs
- BinaryFormatterWriter.cs