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
- DrawingCollection.cs
- MediaContext.cs
- Clipboard.cs
- UniqueID.cs
- TextTreeExtractElementUndoUnit.cs
- BindingWorker.cs
- TaskFileService.cs
- LogExtentCollection.cs
- Compiler.cs
- PageClientProxyGenerator.cs
- Thread.cs
- PassportAuthenticationEventArgs.cs
- CodeSubDirectoriesCollection.cs
- FileSystemInfo.cs
- SettingsAttributes.cs
- SystemKeyConverter.cs
- HostUtils.cs
- DataServiceResponse.cs
- ProxyGenerationError.cs
- AssociationSetEnd.cs
- XmlUnspecifiedAttribute.cs
- SqlStatistics.cs
- ScriptControlManager.cs
- TCPClient.cs
- DatePickerTextBox.cs
- StrokeCollectionDefaultValueFactory.cs
- ListMarkerSourceInfo.cs
- RichTextBox.cs
- ScrollBarRenderer.cs
- Assert.cs
- RTLAwareMessageBox.cs
- LocalizableAttribute.cs
- RequestQueryParser.cs
- TypefaceMap.cs
- UnSafeCharBuffer.cs
- Cloud.cs
- ToolStripItem.cs
- SafeReversePInvokeHandle.cs
- PointCollection.cs
- FrameworkElementAutomationPeer.cs
- DesignerSerializerAttribute.cs
- ListViewPagedDataSource.cs
- GeometryCollection.cs
- DataGridTextBox.cs
- RowSpanVector.cs
- PopupRoot.cs
- DisplayMemberTemplateSelector.cs
- _AuthenticationState.cs
- Ref.cs
- NetSectionGroup.cs
- DataGridViewImageCell.cs
- WorkflowViewStateService.cs
- TextModifierScope.cs
- Serializer.cs
- EdmProperty.cs
- UserPreferenceChangingEventArgs.cs
- EncodingConverter.cs
- CTreeGenerator.cs
- DataList.cs
- WindowsTab.cs
- StorageConditionPropertyMapping.cs
- RtfFormatStack.cs
- GenerateHelper.cs
- MSAAWinEventWrap.cs
- CodeExporter.cs
- safex509handles.cs
- WhiteSpaceTrimStringConverter.cs
- Compiler.cs
- MatrixAnimationUsingKeyFrames.cs
- Scene3D.cs
- PopupControlService.cs
- HtmlInputFile.cs
- Mapping.cs
- OracleString.cs
- MetadataImporterQuotas.cs
- PropertyMapper.cs
- GregorianCalendar.cs
- AdapterUtil.cs
- QilFactory.cs
- PropertyConverter.cs
- EditorZoneBase.cs
- UserUseLicenseDictionaryLoader.cs
- RepeatInfo.cs
- ListViewPagedDataSource.cs
- CacheRequest.cs
- RemotingService.cs
- CustomAttributeSerializer.cs
- CodeSnippetStatement.cs
- SmtpSection.cs
- MenuAdapter.cs
- RegularExpressionValidator.cs
- TabControl.cs
- Byte.cs
- TrustManager.cs
- AlternateViewCollection.cs
- TraceSection.cs
- DownloadProgressEventArgs.cs
- ListMarkerLine.cs
- OutOfProcStateClientManager.cs
- DataGridTable.cs