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
- UpdatableGenericsFeature.cs
- ProvidePropertyAttribute.cs
- XmlCustomFormatter.cs
- ConnectionManagementElementCollection.cs
- GAC.cs
- PhysicalOps.cs
- ProjectionCamera.cs
- WinEventTracker.cs
- InputGestureCollection.cs
- FragmentQueryProcessor.cs
- GeneralTransform2DTo3DTo2D.cs
- ReferencedType.cs
- OdbcConnectionPoolProviderInfo.cs
- basenumberconverter.cs
- SynchronizedCollection.cs
- DataList.cs
- DependencyObject.cs
- StructuredTypeInfo.cs
- LassoSelectionBehavior.cs
- ExpressionBuilder.cs
- StreamWriter.cs
- Array.cs
- PropertyOrder.cs
- BinaryObjectReader.cs
- RequestQueue.cs
- Control.cs
- FieldTemplateFactory.cs
- UnconditionalPolicy.cs
- Hex.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- AuthenticationService.cs
- SimpleTypesSurrogate.cs
- BounceEase.cs
- GridViewSortEventArgs.cs
- MetadataItemEmitter.cs
- NativeMethods.cs
- DataGridHelper.cs
- VarRemapper.cs
- ListViewEditEventArgs.cs
- CallInfo.cs
- InheritedPropertyChangedEventArgs.cs
- mactripleDES.cs
- SqlClientWrapperSmiStream.cs
- GroupQuery.cs
- DataTableMapping.cs
- NativeMethods.cs
- StringKeyFrameCollection.cs
- TdsParserStaticMethods.cs
- VScrollProperties.cs
- MobileUserControlDesigner.cs
- HtmlInputFile.cs
- HostedAspNetEnvironment.cs
- MasterPageCodeDomTreeGenerator.cs
- QueueNameHelper.cs
- RemotingServices.cs
- BitmapSizeOptions.cs
- ContextMenu.cs
- PanelStyle.cs
- EntityContainerRelationshipSet.cs
- MemoryStream.cs
- PageMediaSize.cs
- RealizationContext.cs
- OledbConnectionStringbuilder.cs
- AnonymousIdentificationSection.cs
- XmlSchemaImporter.cs
- TextDecorations.cs
- DiscoveryClient.cs
- SettingsProviderCollection.cs
- SingleTagSectionHandler.cs
- Freezable.cs
- XmlSubtreeReader.cs
- Point3DCollectionConverter.cs
- HtmlControl.cs
- WmlControlAdapter.cs
- DbModificationCommandTree.cs
- Process.cs
- SerializationEventsCache.cs
- GZipDecoder.cs
- WebReferencesBuildProvider.cs
- JpegBitmapEncoder.cs
- ColorAnimation.cs
- XmlWriterSettings.cs
- BinaryObjectInfo.cs
- DataRelationPropertyDescriptor.cs
- ProtocolsConfigurationEntry.cs
- CLRBindingWorker.cs
- ToolStripPanelDesigner.cs
- SettingsAttributeDictionary.cs
- DockAndAnchorLayout.cs
- WebPartTransformerCollection.cs
- baseaxisquery.cs
- InputScopeConverter.cs
- NotSupportedException.cs
- WebRequestModuleElement.cs
- DirectoryObjectSecurity.cs
- HashCoreRequest.cs
- ApplyImportsAction.cs
- DataFormat.cs
- SingleAnimationBase.cs
- MSHTMLHostUtil.cs