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
- CheckedListBox.cs
- RsaElement.cs
- SimpleType.cs
- CacheHelper.cs
- ClientTargetCollection.cs
- RightsManagementEncryptionTransform.cs
- DurableOperationAttribute.cs
- VisualStyleTypesAndProperties.cs
- MethodBuilderInstantiation.cs
- LambdaCompiler.Address.cs
- MaterialCollection.cs
- XamlFxTrace.cs
- BmpBitmapDecoder.cs
- COAUTHIDENTITY.cs
- ChtmlTextWriter.cs
- LogArchiveSnapshot.cs
- OracleDataAdapter.cs
- mansign.cs
- ZipIOFileItemStream.cs
- HttpVersion.cs
- SplineKeyFrames.cs
- PrintPageEvent.cs
- RedistVersionInfo.cs
- ViewStateModeByIdAttribute.cs
- Vector3DValueSerializer.cs
- PrintDialog.cs
- HostProtectionException.cs
- NonSerializedAttribute.cs
- DataViewSetting.cs
- StylusOverProperty.cs
- MemberDescriptor.cs
- StaticFileHandler.cs
- OrCondition.cs
- DataReceivedEventArgs.cs
- XamlReader.cs
- XmlNullResolver.cs
- EmbossBitmapEffect.cs
- PrintPreviewDialog.cs
- Pointer.cs
- FreezableOperations.cs
- PermissionListSet.cs
- _NegotiateClient.cs
- BoundField.cs
- ControlDesignerState.cs
- SafeMILHandle.cs
- ListView.cs
- PassportPrincipal.cs
- SecurityPermission.cs
- PageMediaSize.cs
- WebRequestModuleElementCollection.cs
- XmlSerializationGeneratedCode.cs
- FormView.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- StatusBar.cs
- CategoryAttribute.cs
- StreamInfo.cs
- CodeStatement.cs
- DataGridViewCellCollection.cs
- JavaScriptObjectDeserializer.cs
- TextRangeAdaptor.cs
- CodeNamespaceCollection.cs
- SortableBindingList.cs
- UnhandledExceptionEventArgs.cs
- FolderLevelBuildProviderCollection.cs
- ToolStripContentPanel.cs
- PackageDigitalSignature.cs
- ChoiceConverter.cs
- FileNotFoundException.cs
- ItemChangedEventArgs.cs
- RSAPKCS1SignatureFormatter.cs
- RSAPKCS1SignatureDeformatter.cs
- GeneralTransform3D.cs
- CodeTypeReference.cs
- IImplicitResourceProvider.cs
- dsa.cs
- ComponentChangingEvent.cs
- ComponentEditorPage.cs
- StylesEditorDialog.cs
- FixedTextBuilder.cs
- ToolBar.cs
- CustomValidator.cs
- CodeDomConfigurationHandler.cs
- SocketStream.cs
- InProcStateClientManager.cs
- GC.cs
- MonitoringDescriptionAttribute.cs
- FreezableOperations.cs
- XPathSelfQuery.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- TrackingRecordPreFilter.cs
- InstallHelper.cs
- RawUIStateInputReport.cs
- Matrix3DStack.cs
- Queue.cs
- Size.cs
- SrgsNameValueTag.cs
- SecurityTimestamp.cs
- TextTreeInsertElementUndoUnit.cs
- SizeIndependentAnimationStorage.cs
- ProgressBarBrushConverter.cs