Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / InputLanguageEventArgs.cs / 1305600 / 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
- TypeExtension.cs
- UnknownWrapper.cs
- XmlDataDocument.cs
- TextEndOfParagraph.cs
- ListViewSortEventArgs.cs
- FtpCachePolicyElement.cs
- SRGSCompiler.cs
- MultiTrigger.cs
- TrustManagerMoreInformation.cs
- DataGridAddNewRow.cs
- BindingCompleteEventArgs.cs
- JobDuplex.cs
- Color.cs
- InvalidOleVariantTypeException.cs
- GroupBox.cs
- DataPagerFieldItem.cs
- ElementHostAutomationPeer.cs
- Aggregates.cs
- VisualStates.cs
- ResourceDescriptionAttribute.cs
- XmlProcessingInstruction.cs
- SamlSecurityToken.cs
- ContentTextAutomationPeer.cs
- Decimal.cs
- XPathException.cs
- DataControlFieldHeaderCell.cs
- EventSourceCreationData.cs
- RightsManagementPermission.cs
- CompiledQueryCacheKey.cs
- ProtocolException.cs
- CorrelationManager.cs
- Variant.cs
- SystemGatewayIPAddressInformation.cs
- SQLRoleProvider.cs
- ClientEventManager.cs
- DigestComparer.cs
- FileIOPermission.cs
- XmlTextEncoder.cs
- AccessedThroughPropertyAttribute.cs
- RelOps.cs
- CommonDialog.cs
- ProcessHost.cs
- StyleSheetDesigner.cs
- EntityModelBuildProvider.cs
- DbDeleteCommandTree.cs
- FixedNode.cs
- DataFormats.cs
- ICspAsymmetricAlgorithm.cs
- SqlClientPermission.cs
- DockAndAnchorLayout.cs
- WebEventTraceProvider.cs
- shaperfactory.cs
- BuildProvidersCompiler.cs
- CodeAssignStatement.cs
- DynamicRendererThreadManager.cs
- FixedSOMElement.cs
- ChangeConflicts.cs
- DataSourceCacheDurationConverter.cs
- RightsManagementEncryptionTransform.cs
- SqlWebEventProvider.cs
- lengthconverter.cs
- DefaultProxySection.cs
- Int32Rect.cs
- NameValueCollection.cs
- XamlSerializerUtil.cs
- PasswordDeriveBytes.cs
- FamilyMapCollection.cs
- EndpointNotFoundException.cs
- BulletChrome.cs
- ReferenceEqualityComparer.cs
- ProxyHwnd.cs
- DataRowCollection.cs
- Configuration.cs
- ChildDocumentBlock.cs
- FieldBuilder.cs
- BamlTreeMap.cs
- AuthenticationModuleElementCollection.cs
- SupportingTokenListenerFactory.cs
- WebPartEditVerb.cs
- PrinterResolution.cs
- DoubleLink.cs
- XmlSchemaGroupRef.cs
- WebPartConnectionsDisconnectVerb.cs
- IndependentAnimationStorage.cs
- ConfigurationValidatorAttribute.cs
- SpeechUI.cs
- EntityTransaction.cs
- SqlNotificationEventArgs.cs
- ZoneButton.cs
- RegexStringValidatorAttribute.cs
- RegexCaptureCollection.cs
- StyleTypedPropertyAttribute.cs
- WebEvents.cs
- ImageListImage.cs
- BinaryWriter.cs
- Cursors.cs
- RawUIStateInputReport.cs
- Ipv6Element.cs
- SoapAttributes.cs
- CacheAxisQuery.cs