Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- SecUtil.cs
- QueryRelOp.cs
- BinaryCommonClasses.cs
- ServiceContractListItemList.cs
- CompositeTypefaceMetrics.cs
- _NestedMultipleAsyncResult.cs
- FileDataSourceCache.cs
- HyperlinkAutomationPeer.cs
- CodeThrowExceptionStatement.cs
- AuthorizationSection.cs
- TreeWalkHelper.cs
- MonitoringDescriptionAttribute.cs
- PasswordRecovery.cs
- BitmapImage.cs
- CompilerTypeWithParams.cs
- Trace.cs
- AdobeCFFWrapper.cs
- Console.cs
- CatalogPart.cs
- TransactedReceiveScope.cs
- MessageDecoder.cs
- PnrpPermission.cs
- InternalConfigHost.cs
- GreenMethods.cs
- clipboard.cs
- PackWebResponse.cs
- PackWebRequestFactory.cs
- SQLDouble.cs
- XPathEmptyIterator.cs
- ListItemCollection.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- SamlAudienceRestrictionCondition.cs
- SupportingTokenParameters.cs
- AudioLevelUpdatedEventArgs.cs
- CompilerGlobalScopeAttribute.cs
- XmlNodeReader.cs
- LogManagementAsyncResult.cs
- SourceElementsCollection.cs
- SQLConvert.cs
- OAVariantLib.cs
- TransportDefaults.cs
- ExtensibleClassFactory.cs
- DefaultBinder.cs
- ActivationProxy.cs
- StringAttributeCollection.cs
- CommonXSendMessage.cs
- ThreadAttributes.cs
- GenericIdentity.cs
- ZipPackage.cs
- UserControlFileEditor.cs
- WindowsAuthenticationModule.cs
- ControlHelper.cs
- DynamicContractTypeBuilder.cs
- DnsEndPoint.cs
- DelegateHelpers.cs
- Authorization.cs
- CodeParameterDeclarationExpression.cs
- URLString.cs
- DynamicResourceExtensionConverter.cs
- EncodingInfo.cs
- SafeFileMappingHandle.cs
- TableRowCollection.cs
- MarkupExtensionSerializer.cs
- QueueProcessor.cs
- DescendantQuery.cs
- GridItemPatternIdentifiers.cs
- AccessedThroughPropertyAttribute.cs
- GridViewCommandEventArgs.cs
- MenuAutomationPeer.cs
- SequenceFullException.cs
- ClusterUtils.cs
- CrossContextChannel.cs
- ToolStripContentPanelDesigner.cs
- HttpProtocolReflector.cs
- ProvideValueServiceProvider.cs
- ImageSourceConverter.cs
- Serializer.cs
- panel.cs
- RemoteX509Token.cs
- EntityType.cs
- AuthenticationModulesSection.cs
- SqlClientMetaDataCollectionNames.cs
- RichTextBoxConstants.cs
- ButtonBase.cs
- AssertHelper.cs
- Validator.cs
- TransactionProxy.cs
- RadioButtonAutomationPeer.cs
- VariantWrapper.cs
- XmlUtil.cs
- BoundsDrawingContextWalker.cs
- TableItemPattern.cs
- ObjectConverter.cs
- StandardBindingReliableSessionElement.cs
- IISMapPath.cs
- mediaeventargs.cs
- JsonWriter.cs
- SystemThemeKey.cs
- TrackPoint.cs
- ObjectTag.cs