Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Input / InputLanguageProfileNotifySink.cs / 1 / InputLanguageProfileNotifySink.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: The source of the input language of the thread. // // History: // 07/30/2003 : yutakas - ported from dotnet tree. // //--------------------------------------------------------------------------- using MS.Win32; using System.Collections; using System.Globalization; using System.Windows.Input; using System.Windows.Media; using System.Windows.Interop; using System.Runtime.InteropServices; using System; namespace System.Windows.Input { //----------------------------------------------------- // // InputLanguageProfileNotifySink // //----------------------------------------------------- ////// This is an internal. This is an implementation of ITfLanguageProfileNotifySink. /// internal class InputLanguageProfileNotifySink : UnsafeNativeMethods.ITfLanguageProfileNotifySink { //------------------------------------------------------ // // Constructors // //----------------------------------------------------- internal InputLanguageProfileNotifySink(InputLanguageSource target) { _target = target; } //------------------------------------------------------ // // Public Methods // //------------------------------------------------------ ////// OnLanguageChange call back of the interface. /// public void OnLanguageChange(short langid, out bool accept) { accept = _target.OnLanguageChange(langid); } ////// OnLanguageChanged call back of the interface. /// public void OnLanguageChanged() { _target.OnLanguageChanged(); } //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ // the owner of this sink. private InputLanguageSource _target; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: The source of the input language of the thread. // // History: // 07/30/2003 : yutakas - ported from dotnet tree. // //--------------------------------------------------------------------------- using MS.Win32; using System.Collections; using System.Globalization; using System.Windows.Input; using System.Windows.Media; using System.Windows.Interop; using System.Runtime.InteropServices; using System; namespace System.Windows.Input { //----------------------------------------------------- // // InputLanguageProfileNotifySink // //----------------------------------------------------- ////// This is an internal. This is an implementation of ITfLanguageProfileNotifySink. /// internal class InputLanguageProfileNotifySink : UnsafeNativeMethods.ITfLanguageProfileNotifySink { //------------------------------------------------------ // // Constructors // //----------------------------------------------------- internal InputLanguageProfileNotifySink(InputLanguageSource target) { _target = target; } //------------------------------------------------------ // // Public Methods // //------------------------------------------------------ ////// OnLanguageChange call back of the interface. /// public void OnLanguageChange(short langid, out bool accept) { accept = _target.OnLanguageChange(langid); } ////// OnLanguageChanged call back of the interface. /// public void OnLanguageChanged() { _target.OnLanguageChanged(); } //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ // the owner of this sink. private InputLanguageSource _target; } } // 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
- ItemCollection.cs
- QualificationDataItem.cs
- FixedSOMTableCell.cs
- ChannelToken.cs
- InstalledFontCollection.cs
- CompilerWrapper.cs
- ProfileGroupSettings.cs
- HelpFileFileNameEditor.cs
- MetadataUtilsSmi.cs
- _NTAuthentication.cs
- Icon.cs
- DetailsViewInsertEventArgs.cs
- Invariant.cs
- ConfigurationLockCollection.cs
- PublishLicense.cs
- ToolboxItemAttribute.cs
- RawStylusActions.cs
- RSAPKCS1KeyExchangeFormatter.cs
- WorkflowMessageEventArgs.cs
- SqlClientWrapperSmiStreamChars.cs
- DataGridViewTopRowAccessibleObject.cs
- HttpEncoderUtility.cs
- FactoryMaker.cs
- RightsManagementInformation.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- HttpCachePolicy.cs
- ArcSegment.cs
- TraceInternal.cs
- RelatedImageListAttribute.cs
- MaskedTextBoxTextEditor.cs
- TreeView.cs
- BamlRecordWriter.cs
- EdmTypeAttribute.cs
- QueryActivatableWorkflowsCommand.cs
- MetadataSerializer.cs
- RuntimeWrappedException.cs
- safelinkcollection.cs
- DesignerLabelAdapter.cs
- LinkedResource.cs
- HttpPostLocalhostServerProtocol.cs
- PixelShader.cs
- ComplexObject.cs
- ContextStack.cs
- EntityDataSourceSelectingEventArgs.cs
- RectangleGeometry.cs
- MetadataFile.cs
- FontUnit.cs
- XmlExpressionDumper.cs
- FontFamilyIdentifier.cs
- Stack.cs
- XamlHostingSection.cs
- SupportsEventValidationAttribute.cs
- IntSecurity.cs
- SchemaNamespaceManager.cs
- XsltLoader.cs
- TextInfo.cs
- StorageBasedPackageProperties.cs
- StylusPointProperty.cs
- ScrollChrome.cs
- Timeline.cs
- DiagnosticsConfigurationHandler.cs
- FlowDocumentReader.cs
- AuthorizationRule.cs
- DoubleKeyFrameCollection.cs
- ImageSource.cs
- WsdlImporterElementCollection.cs
- SmtpDigestAuthenticationModule.cs
- PointCollectionConverter.cs
- UTF8Encoding.cs
- ColorTypeConverter.cs
- ResXResourceWriter.cs
- PrincipalPermission.cs
- IODescriptionAttribute.cs
- PerfService.cs
- XamlReader.cs
- ObjectListCommandEventArgs.cs
- NumberFormatInfo.cs
- DataRelationPropertyDescriptor.cs
- PagerStyle.cs
- FilteredDataSetHelper.cs
- TickBar.cs
- ContainerVisual.cs
- WebBrowserHelper.cs
- OptimizedTemplateContent.cs
- Activity.cs
- ExpandedWrapper.cs
- EventLogPermissionEntryCollection.cs
- RectAnimationClockResource.cs
- MetafileHeaderWmf.cs
- DefaultSection.cs
- ArgIterator.cs
- Speller.cs
- SolidColorBrush.cs
- Version.cs
- UriTemplateTrieNode.cs
- UnknownBitmapEncoder.cs
- DispatcherFrame.cs
- PrimarySelectionGlyph.cs
- NavigationPropertyEmitter.cs
- Label.cs