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
- PointUtil.cs
- AVElementHelper.cs
- HtmlInputPassword.cs
- MeshGeometry3D.cs
- IListConverters.cs
- QueryAccessibilityHelpEvent.cs
- LinkTarget.cs
- XmlReader.cs
- AxisAngleRotation3D.cs
- XmlHierarchicalDataSourceView.cs
- ScriptRegistrationManager.cs
- VBIdentifierNameEditor.cs
- DynamicEndpointElement.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- ActivityTypeDesigner.xaml.cs
- MessageRpc.cs
- CallbackDebugElement.cs
- HybridObjectCache.cs
- TreeNodeClickEventArgs.cs
- PathData.cs
- BackgroundFormatInfo.cs
- entityreference_tresulttype.cs
- VirtualPathUtility.cs
- TextRangeSerialization.cs
- ToolboxItem.cs
- InfocardChannelParameter.cs
- CapabilitiesPattern.cs
- BitmapEffectInput.cs
- InkCanvasSelection.cs
- HashRepartitionStream.cs
- RSAPKCS1SignatureFormatter.cs
- SingleAnimation.cs
- Token.cs
- TextTreeDeleteContentUndoUnit.cs
- AnimationLayer.cs
- DataKey.cs
- EmptyImpersonationContext.cs
- CodeCommentStatementCollection.cs
- TableCellCollection.cs
- ImageDrawing.cs
- LocalizableResourceBuilder.cs
- ValuePatternIdentifiers.cs
- TableCellCollection.cs
- FormsAuthenticationEventArgs.cs
- PointCollection.cs
- BitmapFrameDecode.cs
- WindowsContainer.cs
- FileDialogCustomPlacesCollection.cs
- DrawingAttributeSerializer.cs
- XsltInput.cs
- PersonalizationStateInfo.cs
- SiteMap.cs
- NotificationContext.cs
- MouseBinding.cs
- DataKey.cs
- RectAnimationClockResource.cs
- MachineKeyConverter.cs
- XmlIgnoreAttribute.cs
- LinkAreaEditor.cs
- DynamicDataExtensions.cs
- ZipFileInfo.cs
- EventData.cs
- WebServiceEnumData.cs
- EnglishPluralizationService.cs
- EntityDataSourceSelectedEventArgs.cs
- ProfileSettings.cs
- QilReplaceVisitor.cs
- FormatConvertedBitmap.cs
- DataBindingCollection.cs
- MachineKeySection.cs
- FloatAverageAggregationOperator.cs
- BrowserCapabilitiesCodeGenerator.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- OleDbCommand.cs
- login.cs
- TemplateApplicationHelper.cs
- baseaxisquery.cs
- XmlConverter.cs
- ReliableMessagingHelpers.cs
- ScaleTransform3D.cs
- base64Transforms.cs
- XamlHostingSection.cs
- X509CertificateTokenFactoryCredential.cs
- SqlBulkCopyColumnMappingCollection.cs
- XmlWriterTraceListener.cs
- MSHTMLHost.cs
- SpeakProgressEventArgs.cs
- MiniConstructorInfo.cs
- DynamicArgumentDialog.cs
- WebPartHeaderCloseVerb.cs
- GcHandle.cs
- ExpressionNormalizer.cs
- WebControlToolBoxItem.cs
- TablePatternIdentifiers.cs
- XmlNamespaceMappingCollection.cs
- CatalogZoneBase.cs
- X509AsymmetricSecurityKey.cs
- AppModelKnownContentFactory.cs
- EntityClassGenerator.cs
- FixedPosition.cs