Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Input / InputLanguageEventArgs.cs / 1 / InputLanguageEventArgs.cs
using System;
using System.Collections;
using System.Windows.Threading;
using System.Windows;
using System.Globalization;
namespace System.Windows.Input
{
///
/// The InputLanguageEventArgs class represents a type of
/// RoutedEventArgs that are relevant to events raised to indicate
/// changes.
///
public abstract class InputLanguageEventArgs : EventArgs
{
//------------------------------------------------------
//
// Constructors
//
//-----------------------------------------------------
///
/// Constructs an instance of the InputLanguageEventArgs class.
///
///
/// The new language id.
///
///
/// The previous language id.
///
protected InputLanguageEventArgs(CultureInfo newLanguageId, CultureInfo previousLanguageId)
{
_newLanguageId = newLanguageId;
_previousLanguageId = previousLanguageId;
}
//-----------------------------------------------------
//
// Public Properties
//
//-----------------------------------------------------
///
/// New Language Id.
///
public virtual CultureInfo NewLanguage
{
get { return _newLanguageId; }
}
///
/// Previous Language Id.
///
public virtual CultureInfo PreviousLanguage
{
get { return _previousLanguageId; }
}
//------------------------------------------------------
//
// Private Fields
//
//-----------------------------------------------------
#region Private Fields
// the new input language.
private CultureInfo _newLanguageId;
// the previous input language.
private CultureInfo _previousLanguageId;
#endregion Private Fields
}
///
/// The InputLanguageEventArgs class represents a type of
/// RoutedEventArgs that are relevant to events raised to indicate
/// changes.
///
public class InputLanguageChangedEventArgs : InputLanguageEventArgs
{
//------------------------------------------------------
//
// Constructors
//
//------------------------------------------------------
///
/// Constructs an instance of the InputLanguageEventArgs class.
///
///
/// The new language id.
///
///
/// The new language id.
///
public InputLanguageChangedEventArgs(CultureInfo newLanguageId, CultureInfo previousLanguageId) : base(newLanguageId, previousLanguageId)
{
}
}
///
/// The InputLanguageEventArgs class represents a type of
/// RoutedEventArgs that are relevant to events raised to indicate
/// changes.
///
///
public class InputLanguageChangingEventArgs : InputLanguageEventArgs
{
//-----------------------------------------------------
//
// Constructors
//
//------------------------------------------------------
///
/// Constructs an instance of the InputLanguageEventArgs class.
///
///
/// The new language id.
///
///
/// The previous language id.
///
public InputLanguageChangingEventArgs(CultureInfo newLanguageId, CultureInfo previousLanguageId) : base(newLanguageId, previousLanguageId)
{
_rejected = false;
}
//-----------------------------------------------------
//
// Public Properties
//
//-----------------------------------------------------
///
/// This is a value to reject the input language change.
///
public bool Rejected
{
get { return _rejected; }
set { _rejected = value; }
}
//-----------------------------------------------------
//
// Private Fields
//
//------------------------------------------------------
#region Private Fields
// bool to reject the input language change.
private bool _rejected;
#endregion Private Fields
}
}
// 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
- CacheEntry.cs
- IDQuery.cs
- FixedSOMLineRanges.cs
- SystemWebSectionGroup.cs
- UpdatePanel.cs
- Helper.cs
- ObjectHelper.cs
- PopupRoot.cs
- ConfigXmlText.cs
- WinFormsSpinner.cs
- WebPartVerbsEventArgs.cs
- ZipIOLocalFileHeader.cs
- DataProtectionSecurityStateEncoder.cs
- SoapIgnoreAttribute.cs
- NamespaceInfo.cs
- ToolTip.cs
- XPathChildIterator.cs
- DataServiceBuildProvider.cs
- XamlStyleSerializer.cs
- WindowProviderWrapper.cs
- SqlParameter.cs
- ResourcesChangeInfo.cs
- RectAnimation.cs
- DynamicDataResources.Designer.cs
- ArrayConverter.cs
- ErrorStyle.cs
- DataTableMappingCollection.cs
- BoundPropertyEntry.cs
- StrokeNodeData.cs
- UserControlBuildProvider.cs
- _Win32.cs
- PropertyManager.cs
- AutomationIdentifierGuids.cs
- ViewgenContext.cs
- DataObjectPastingEventArgs.cs
- TypeInitializationException.cs
- DataGridTextBox.cs
- UInt32.cs
- BitmapMetadata.cs
- SecurityRequiresReviewAttribute.cs
- parserscommon.cs
- HtmlInputControl.cs
- SymbolType.cs
- Bitmap.cs
- HitTestFilterBehavior.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- HostingMessageProperty.cs
- DataKeyPropertyAttribute.cs
- LoadRetryAsyncResult.cs
- TraceContext.cs
- XmlDeclaration.cs
- ToolstripProfessionalRenderer.cs
- ServiceOperationParameter.cs
- XmlWrappingWriter.cs
- SchemaCollectionPreprocessor.cs
- SoapInteropTypes.cs
- AppDomainManager.cs
- TreeNodeClickEventArgs.cs
- DesignSurfaceCollection.cs
- PersonalizableTypeEntry.cs
- PackWebRequest.cs
- String.cs
- NullableDecimalSumAggregationOperator.cs
- SubstitutionList.cs
- DbConnectionPoolCounters.cs
- HttpResponseHeader.cs
- SmtpFailedRecipientsException.cs
- ArglessEventHandlerProxy.cs
- CollectionEditVerbManager.cs
- ProcessStartInfo.cs
- WebPartEditorApplyVerb.cs
- ToolboxBitmapAttribute.cs
- Underline.cs
- ModifierKeysConverter.cs
- Ipv6Element.cs
- SettingsAttributes.cs
- InputScopeManager.cs
- FixedHyperLink.cs
- TableAdapterManagerNameHandler.cs
- ObjectMaterializedEventArgs.cs
- ButtonPopupAdapter.cs
- AddInToken.cs
- Filter.cs
- PrintPreviewDialog.cs
- JapaneseCalendar.cs
- ObjectDataSourceView.cs
- WorkflowControlClient.cs
- LocationUpdates.cs
- ExpanderAutomationPeer.cs
- MultilineStringEditor.cs
- RotationValidation.cs
- LicenseContext.cs
- StylusTip.cs
- GeneralTransform.cs
- Nullable.cs
- _ConnectStream.cs
- PasswordRecoveryDesigner.cs
- DbConnectionPoolGroupProviderInfo.cs
- BufferedReadStream.cs
- QuotedPrintableStream.cs