Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / 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. 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
- SecurityDescriptor.cs
- Encoder.cs
- ConfigurationLocationCollection.cs
- IisTraceWebEventProvider.cs
- BulletChrome.cs
- ResumeStoryboard.cs
- ComboBox.cs
- Queue.cs
- ConfigXmlCDataSection.cs
- WebPartHeaderCloseVerb.cs
- ListControlDesigner.cs
- ObjectQueryProvider.cs
- PerformanceCounterManager.cs
- ReachDocumentSequenceSerializer.cs
- cryptoapiTransform.cs
- DbLambda.cs
- DependencyPropertyKey.cs
- httpapplicationstate.cs
- DynamicValueConverter.cs
- BrowserInteropHelper.cs
- GeneralTransform.cs
- GeneralTransform3DTo2D.cs
- FillBehavior.cs
- InplaceBitmapMetadataWriter.cs
- ToggleProviderWrapper.cs
- DbProviderFactory.cs
- XmlWrappingReader.cs
- CodeComment.cs
- TimeEnumHelper.cs
- OracleLob.cs
- SqlMethodCallConverter.cs
- PackageDigitalSignature.cs
- CatchBlock.cs
- WindowsTitleBar.cs
- NodeInfo.cs
- TimeEnumHelper.cs
- DataServiceStreamProviderWrapper.cs
- ObjectListSelectEventArgs.cs
- ScrollEventArgs.cs
- NumberAction.cs
- PriorityBinding.cs
- ConfigurationCollectionAttribute.cs
- GetWorkflowTree.cs
- WizardStepBase.cs
- EventToken.cs
- ContextDataSourceView.cs
- WebPartDisplayMode.cs
- FileAuthorizationModule.cs
- TileModeValidation.cs
- ProcessHostServerConfig.cs
- LinkedResourceCollection.cs
- UIPermission.cs
- ColorPalette.cs
- ListViewContainer.cs
- WebConfigurationFileMap.cs
- BooleanAnimationUsingKeyFrames.cs
- ExceptionCollection.cs
- AnnotationResourceChangedEventArgs.cs
- ScrollPatternIdentifiers.cs
- TabControl.cs
- TimelineGroup.cs
- ToolStripItemClickedEventArgs.cs
- TwoPhaseCommit.cs
- WebPartDeleteVerb.cs
- WebPartConnectionsCancelVerb.cs
- CodeCommentStatement.cs
- ButtonChrome.cs
- LogEntryDeserializer.cs
- RegexWorker.cs
- PolyLineSegment.cs
- FreezableCollection.cs
- SizeKeyFrameCollection.cs
- Int32RectValueSerializer.cs
- SamlSubjectStatement.cs
- SamlEvidence.cs
- PathBox.cs
- DebugView.cs
- XmlIlVisitor.cs
- LocalValueEnumerator.cs
- RegisteredHiddenField.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- WeakReferenceList.cs
- InsufficientMemoryException.cs
- webeventbuffer.cs
- PersonalizationState.cs
- CodeRemoveEventStatement.cs
- Int64Converter.cs
- RemotingServices.cs
- RegionData.cs
- XmlChildEnumerator.cs
- XamlToRtfWriter.cs
- FontDialog.cs
- ReversePositionQuery.cs
- TaskExceptionHolder.cs
- DesignerForm.cs
- TextTreeRootTextBlock.cs
- UnsafeNativeMethods.cs
- ActivitySurrogateSelector.cs
- PlainXmlSerializer.cs
- PatternMatcher.cs