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
- ContextStaticAttribute.cs
- Dispatcher.cs
- GridViewColumnCollectionChangedEventArgs.cs
- Identity.cs
- ResourceIDHelper.cs
- CombinedGeometry.cs
- ArgumentsParser.cs
- ContainerParaClient.cs
- SchemaCollectionCompiler.cs
- RoutedEventConverter.cs
- ModelFunctionTypeElement.cs
- DataControlCommands.cs
- XpsS0ValidatingLoader.cs
- XmlSchemaExternal.cs
- DataControlButton.cs
- httpstaticobjectscollection.cs
- AdRotatorDesigner.cs
- IntegrationExceptionEventArgs.cs
- CodeCompiler.cs
- MethodExpr.cs
- DocComment.cs
- ObjectQueryProvider.cs
- ScrollViewer.cs
- SiteMapDataSource.cs
- StyleXamlParser.cs
- HttpCapabilitiesEvaluator.cs
- Environment.cs
- LoginView.cs
- AndCondition.cs
- VisualBasicSettingsHandler.cs
- NominalTypeEliminator.cs
- EntitySqlQueryBuilder.cs
- DiscoveryDefaults.cs
- TraceXPathNavigator.cs
- XmlNamespaceMappingCollection.cs
- WebPartCancelEventArgs.cs
- MultipartContentParser.cs
- DataQuery.cs
- NodeLabelEditEvent.cs
- Pointer.cs
- SoapReflectionImporter.cs
- ClockController.cs
- PersonalizablePropertyEntry.cs
- SpeechUI.cs
- WindowInteropHelper.cs
- ValueChangedEventManager.cs
- MeasureData.cs
- UserControlAutomationPeer.cs
- CacheChildrenQuery.cs
- FixedPageProcessor.cs
- _TimerThread.cs
- FrameworkContextData.cs
- RectConverter.cs
- CryptoConfig.cs
- WindowsListBox.cs
- AuthenticationModuleElement.cs
- FixedTextPointer.cs
- ManipulationDelta.cs
- IndicCharClassifier.cs
- ControlIdConverter.cs
- DiagnosticTrace.cs
- TextTreeUndo.cs
- XmlSignatureManifest.cs
- ObfuscationAttribute.cs
- PropertyMap.cs
- GridViewEditEventArgs.cs
- TableRow.cs
- KeyConverter.cs
- CallContext.cs
- SQlBooleanStorage.cs
- AssemblyUtil.cs
- Events.cs
- securitycriticaldataClass.cs
- PartManifestEntry.cs
- DataTableReaderListener.cs
- HostingPreferredMapPath.cs
- ActivationServices.cs
- HttpCookiesSection.cs
- NamedObject.cs
- StringAttributeCollection.cs
- ActivationArguments.cs
- Schema.cs
- XmlSchemaProviderAttribute.cs
- SkewTransform.cs
- SRGSCompiler.cs
- SqlParameter.cs
- WindowsHyperlink.cs
- CaseInsensitiveOrdinalStringComparer.cs
- DependencyObject.cs
- CommandLibraryHelper.cs
- PointLightBase.cs
- MetadataItemEmitter.cs
- SR.cs
- ChtmlTextWriter.cs
- WSDualHttpBindingCollectionElement.cs
- SerializationException.cs
- DtdParser.cs
- ProviderSettings.cs
- Tokenizer.cs
- CacheHelper.cs