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
- ButtonStandardAdapter.cs
- WeakEventManager.cs
- NamespaceTable.cs
- AttributeUsageAttribute.cs
- ResXResourceWriter.cs
- NativeMethods.cs
- DateTimeOffset.cs
- InputReferenceExpression.cs
- XmlSerializerNamespaces.cs
- IIS7WorkerRequest.cs
- MaterialGroup.cs
- EdmError.cs
- OracleException.cs
- WorkflowTraceTransfer.cs
- EmptyImpersonationContext.cs
- EdmPropertyAttribute.cs
- _SslSessionsCache.cs
- SwitchElementsCollection.cs
- DataGridViewColumnCollection.cs
- FillErrorEventArgs.cs
- Typeface.cs
- StrokeCollectionConverter.cs
- EditorPartCollection.cs
- ReferenceConverter.cs
- hresults.cs
- ContractAdapter.cs
- DiscreteKeyFrames.cs
- SerialPinChanges.cs
- ConditionChanges.cs
- serverconfig.cs
- ControlFilterExpression.cs
- ComboBoxItem.cs
- LinkButton.cs
- BamlBinaryReader.cs
- DBCommandBuilder.cs
- Trigger.cs
- AspNetRouteServiceHttpHandler.cs
- PersonalizationProvider.cs
- StylusPlugin.cs
- WebHttpBinding.cs
- DynamicActivityTypeDescriptor.cs
- DataBindingCollection.cs
- XmlBindingWorker.cs
- DbConnectionHelper.cs
- SecurityRuntime.cs
- OrderedDictionaryStateHelper.cs
- X509ClientCertificateAuthentication.cs
- DetailsViewDeleteEventArgs.cs
- UpdateTracker.cs
- SoapMessage.cs
- SeparatorAutomationPeer.cs
- ShowExpandedMultiValueConverter.cs
- LongMinMaxAggregationOperator.cs
- ProviderConnectionPoint.cs
- DependencyPropertyHelper.cs
- SchemaImporter.cs
- HttpCapabilitiesSectionHandler.cs
- HttpResponseHeader.cs
- MsmqIntegrationProcessProtocolHandler.cs
- Light.cs
- IsolatedStorageFileStream.cs
- MethodCallExpression.cs
- GridViewRow.cs
- ProfilePropertySettingsCollection.cs
- ScopedKnownTypes.cs
- HtmlMeta.cs
- Int32AnimationUsingKeyFrames.cs
- CorrelationKey.cs
- DataGridViewCellLinkedList.cs
- StreamUpdate.cs
- ObjectDataSourceDisposingEventArgs.cs
- SQLGuidStorage.cs
- RijndaelManagedTransform.cs
- CheckableControlBaseAdapter.cs
- WithStatement.cs
- ControlCollection.cs
- MsdtcClusterUtils.cs
- ValidationRuleCollection.cs
- WebPartConnectVerb.cs
- EventManager.cs
- InstancePersistenceCommand.cs
- LogStore.cs
- TearOffProxy.cs
- DrawingContext.cs
- WebBrowserSiteBase.cs
- JsonWriter.cs
- ProvideValueServiceProvider.cs
- DBSqlParserTable.cs
- ChangeTracker.cs
- WebPartMenu.cs
- Stroke2.cs
- CollectionEditor.cs
- SystemIcmpV4Statistics.cs
- InertiaRotationBehavior.cs
- TableRowCollection.cs
- CodeArrayIndexerExpression.cs
- FontNameEditor.cs
- StyleHelper.cs
- TimeSpanMinutesConverter.cs
- AttributeCollection.cs