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
- OutKeywords.cs
- SortQuery.cs
- EventSinkActivity.cs
- SmtpReplyReaderFactory.cs
- ConnectionConsumerAttribute.cs
- ActivityExecutionContext.cs
- OleDbInfoMessageEvent.cs
- ActivityUtilities.cs
- Debug.cs
- ApplicationFileCodeDomTreeGenerator.cs
- DataGridViewImageCell.cs
- DataSourceCacheDurationConverter.cs
- WindowsAuthenticationModule.cs
- TypeDescriptor.cs
- StylusPlugin.cs
- QilStrConcat.cs
- WebServiceErrorEvent.cs
- DocumentGridPage.cs
- MembershipValidatePasswordEventArgs.cs
- MetadataArtifactLoaderCompositeResource.cs
- TextEditorSelection.cs
- XamlPointCollectionSerializer.cs
- MarkupCompiler.cs
- SchemaMapping.cs
- Transform.cs
- SiteMapPathDesigner.cs
- ExpressionBindingCollection.cs
- LookupBindingPropertiesAttribute.cs
- FileSystemEnumerable.cs
- InternalUserCancelledException.cs
- IOThreadTimer.cs
- ApplicationContext.cs
- GroupItemAutomationPeer.cs
- Geometry.cs
- AuthStoreRoleProvider.cs
- TextRunTypographyProperties.cs
- Socket.cs
- IdentityHolder.cs
- MachineKeyValidationConverter.cs
- ReceiveDesigner.xaml.cs
- SerializableReadOnlyDictionary.cs
- ContainerUtilities.cs
- PolyQuadraticBezierSegment.cs
- TextSchema.cs
- SignatureGenerator.cs
- FlowDecisionLabelFeature.cs
- IdleTimeoutMonitor.cs
- HandlerBase.cs
- Argument.cs
- NamespaceEmitter.cs
- X500Name.cs
- BitmapVisualManager.cs
- NavigatorInput.cs
- shaperfactoryquerycacheentry.cs
- AffineTransform3D.cs
- TypedTableGenerator.cs
- DrawListViewSubItemEventArgs.cs
- SQLString.cs
- Profiler.cs
- HttpCachePolicy.cs
- TypeBrowserDialog.cs
- TemplatePropertyEntry.cs
- ButtonStandardAdapter.cs
- SafeProcessHandle.cs
- XmlValidatingReader.cs
- MetadataPropertyAttribute.cs
- DataMemberFieldConverter.cs
- TreeNodeCollection.cs
- HttpFileCollectionWrapper.cs
- XmlSchemaAny.cs
- ProxyOperationRuntime.cs
- ContentWrapperAttribute.cs
- ErrorView.xaml.cs
- DBSchemaRow.cs
- Container.cs
- MachineSettingsSection.cs
- MexTcpBindingCollectionElement.cs
- ToolStripCustomTypeDescriptor.cs
- StreamingContext.cs
- DebugTraceHelper.cs
- TdsValueSetter.cs
- SelectorAutomationPeer.cs
- DesignerHelpers.cs
- RequestResizeEvent.cs
- ListenerElementsCollection.cs
- SqlLiftIndependentRowExpressions.cs
- PointCollection.cs
- Line.cs
- MetadataUtil.cs
- State.cs
- SerializationObjectManager.cs
- SqlBinder.cs
- FontWeightConverter.cs
- OracleCommandBuilder.cs
- CompilationUtil.cs
- WorkflowMarkupSerializer.cs
- BrowserInteropHelper.cs
- XmlSchemaException.cs
- AppDomainEvidenceFactory.cs
- SharedPersonalizationStateInfo.cs