Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / InputLanguageProfileNotifySink.cs / 1305600 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OutputCacheSection.cs
- DBPropSet.cs
- DataContractSerializer.cs
- MeasureItemEvent.cs
- BCLDebug.cs
- TriggerAction.cs
- WebControlsSection.cs
- ControlIdConverter.cs
- Matrix3DConverter.cs
- MetadataProperty.cs
- RegisteredHiddenField.cs
- DataGrid.cs
- GenericsInstances.cs
- FastEncoder.cs
- ISFClipboardData.cs
- ReferenceSchema.cs
- EndSelectCardRequest.cs
- CodeGenerator.cs
- SoapSchemaMember.cs
- CompositeTypefaceMetrics.cs
- EasingKeyFrames.cs
- ListControl.cs
- IDReferencePropertyAttribute.cs
- XmlSerializerSection.cs
- BooleanFunctions.cs
- ProfileGroupSettingsCollection.cs
- GridViewDeletedEventArgs.cs
- ImageField.cs
- FileSecurity.cs
- SafeFileMappingHandle.cs
- AvtEvent.cs
- StorageScalarPropertyMapping.cs
- TypeSemantics.cs
- AnnotationDocumentPaginator.cs
- TypeForwardedToAttribute.cs
- Odbc32.cs
- coordinatorfactory.cs
- TimeSpanConverter.cs
- XpsInterleavingPolicy.cs
- EventBuilder.cs
- HasActivatableWorkflowEvent.cs
- ScrollViewerAutomationPeer.cs
- EntityDataSourceContainerNameItem.cs
- SimpleTextLine.cs
- OleDbError.cs
- WorkflowApplicationEventArgs.cs
- StrokeCollection2.cs
- CorrelationScope.cs
- FileCodeGroup.cs
- FileDataSourceCache.cs
- WebPartManagerInternals.cs
- FirstMatchCodeGroup.cs
- CollectionAdapters.cs
- RadioButton.cs
- TreeNode.cs
- BitmapFrameDecode.cs
- UnauthorizedWebPart.cs
- FlowDocumentPageViewerAutomationPeer.cs
- PartialCachingAttribute.cs
- TransactionFlowProperty.cs
- GeometryModel3D.cs
- ExpressionBuilderContext.cs
- HttpPostProtocolImporter.cs
- CompiledRegexRunnerFactory.cs
- LineServicesRun.cs
- GenericUriParser.cs
- AnnotationResourceChangedEventArgs.cs
- TraceContextRecord.cs
- XsltArgumentList.cs
- DbConnectionPoolGroup.cs
- CodeObjectCreateExpression.cs
- CatalogZone.cs
- BezierSegment.cs
- BreakRecordTable.cs
- TagPrefixInfo.cs
- LinqDataSourceSelectEventArgs.cs
- WorkflowWebHostingModule.cs
- RegexReplacement.cs
- BooleanConverter.cs
- PropertyStore.cs
- DataObject.cs
- WebCategoryAttribute.cs
- StrongNamePublicKeyBlob.cs
- TemplatedAdorner.cs
- CodeTypeDeclarationCollection.cs
- Random.cs
- AsymmetricSecurityProtocol.cs
- HtmlForm.cs
- TablePatternIdentifiers.cs
- ZipIOBlockManager.cs
- OleStrCAMarshaler.cs
- QilIterator.cs
- Wrapper.cs
- SizeChangedInfo.cs
- OutputCacheSettingsSection.cs
- IsolatedStoragePermission.cs
- DataGridColumnFloatingHeader.cs
- Emitter.cs
- Subset.cs
- XmlCharCheckingWriter.cs