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
- TypeGeneratedEventArgs.cs
- ScrollItemProviderWrapper.cs
- EncodingTable.cs
- LinqDataSourceView.cs
- FileAuthorizationModule.cs
- BezierSegment.cs
- LogicalTreeHelper.cs
- ButtonRenderer.cs
- ApplicationServiceManager.cs
- ToolStripDropDownClosingEventArgs.cs
- BaseDataListPage.cs
- CoTaskMemUnicodeSafeHandle.cs
- TranslateTransform3D.cs
- WebExceptionStatus.cs
- TrustLevelCollection.cs
- UnsafeNativeMethods.cs
- MarkupWriter.cs
- listitem.cs
- UnsafeNativeMethods.cs
- LoopExpression.cs
- BmpBitmapDecoder.cs
- MouseBinding.cs
- DataRecordInfo.cs
- BufferedWebEventProvider.cs
- XmlnsCache.cs
- ConvertersCollection.cs
- Popup.cs
- TileModeValidation.cs
- BulletChrome.cs
- GlyphsSerializer.cs
- SQLCharsStorage.cs
- AnimatedTypeHelpers.cs
- DrawingAttributesDefaultValueFactory.cs
- MappingItemCollection.cs
- XamlTreeBuilderBamlRecordWriter.cs
- XamlClipboardData.cs
- ErrorsHelper.cs
- ColumnResult.cs
- TextDecoration.cs
- Error.cs
- NextPreviousPagerField.cs
- SrgsElement.cs
- WindowsIPAddress.cs
- DataGridLinkButton.cs
- ParseHttpDate.cs
- RadioButtonDesigner.cs
- DictionaryBase.cs
- OleDbDataReader.cs
- FileChangesMonitor.cs
- KeyProperty.cs
- Registry.cs
- ColumnBinding.cs
- RequestQueue.cs
- ChtmlImageAdapter.cs
- OptimalTextSource.cs
- DockPatternIdentifiers.cs
- XpsS0ValidatingLoader.cs
- CustomTypeDescriptor.cs
- ByteStreamBufferedMessageData.cs
- SingleKeyFrameCollection.cs
- HandlerFactoryWrapper.cs
- ConnectionInterfaceCollection.cs
- ReadOnlyPropertyMetadata.cs
- NamespaceDecl.cs
- RayMeshGeometry3DHitTestResult.cs
- FacetChecker.cs
- ChannelBinding.cs
- Win32Exception.cs
- AppDomainAttributes.cs
- CodeObjectCreateExpression.cs
- DbCommandTree.cs
- EndpointInstanceProvider.cs
- DbParameterHelper.cs
- StateDesigner.TransitionInfo.cs
- AudioLevelUpdatedEventArgs.cs
- AttributeCallbackBuilder.cs
- DropSourceBehavior.cs
- InvalidProgramException.cs
- RequestQueue.cs
- PostBackTrigger.cs
- MethodSet.cs
- TdsParser.cs
- _SSPISessionCache.cs
- SystemIPv6InterfaceProperties.cs
- FullTextState.cs
- BinaryReader.cs
- XmlSchemaAppInfo.cs
- WebBrowserUriTypeConverter.cs
- SocketPermission.cs
- TreeNodeBinding.cs
- LineServices.cs
- EntityViewGenerationAttribute.cs
- ConsumerConnectionPointCollection.cs
- DataTableCollection.cs
- OpenTypeLayoutCache.cs
- CodeStatementCollection.cs
- DataControlCommands.cs
- WpfSharedXamlSchemaContext.cs
- XmlSchemaAppInfo.cs
- SelectorAutomationPeer.cs