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
- TraceSwitch.cs
- AvTrace.cs
- ByteStreamMessageUtility.cs
- ErrorStyle.cs
- FragmentQueryProcessor.cs
- LogEntryUtils.cs
- BasicExpandProvider.cs
- DurableTimerExtension.cs
- ReadWriteObjectLock.cs
- Pts.cs
- Size3D.cs
- EntityTypeEmitter.cs
- JapaneseCalendar.cs
- PropertyChange.cs
- DecimalAverageAggregationOperator.cs
- PeerTransportSecurityElement.cs
- AllMembershipCondition.cs
- DirectionalLight.cs
- ScalarConstant.cs
- SignatureConfirmationElement.cs
- ContentPosition.cs
- GenerateTemporaryTargetAssembly.cs
- GridViewSelectEventArgs.cs
- BinaryParser.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- DataGridTextBox.cs
- WorkflowWebHostingModule.cs
- SourceLineInfo.cs
- EntityProxyTypeInfo.cs
- VirtualPathProvider.cs
- CursorConverter.cs
- WebPartMovingEventArgs.cs
- MenuBase.cs
- FrameworkElementAutomationPeer.cs
- XmlSchemaValidator.cs
- DataGridViewTextBoxCell.cs
- TextViewSelectionProcessor.cs
- RTLAwareMessageBox.cs
- LookupNode.cs
- ParallelSeparator.xaml.cs
- ApplicationFileCodeDomTreeGenerator.cs
- RuleInfoComparer.cs
- SecurityTokenException.cs
- _ServiceNameStore.cs
- ObjectItemNoOpAssemblyLoader.cs
- WindowsListViewGroupSubsetLink.cs
- ICspAsymmetricAlgorithm.cs
- CharacterBufferReference.cs
- LinkedResource.cs
- PenThreadWorker.cs
- ObjectListField.cs
- UTF7Encoding.cs
- ColumnMap.cs
- HtmlShim.cs
- PersonalizableTypeEntry.cs
- RayMeshGeometry3DHitTestResult.cs
- ParagraphResult.cs
- HtmlEmptyTagControlBuilder.cs
- LayoutEvent.cs
- ListControlDesigner.cs
- QilReference.cs
- WpfGeneratedKnownTypes.cs
- AutomationTextAttribute.cs
- DataTemplate.cs
- BulletedListEventArgs.cs
- DocumentSchemaValidator.cs
- SafeNativeMethods.cs
- OleDbRowUpdatedEvent.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- QueryOptionExpression.cs
- Panel.cs
- EmbeddedMailObjectsCollection.cs
- ResourcePermissionBase.cs
- HttpWebRequestElement.cs
- TypedTableBase.cs
- IdentifierCollection.cs
- BamlTreeUpdater.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- BaseDataListActionList.cs
- PersonalizationAdministration.cs
- DetailsViewRowCollection.cs
- Attributes.cs
- ValueTypeIndexerReference.cs
- JournalEntry.cs
- ColumnWidthChangedEvent.cs
- SchemaDeclBase.cs
- Timeline.cs
- IListConverters.cs
- MultiSelector.cs
- SystemIPInterfaceStatistics.cs
- sqlstateclientmanager.cs
- SessionMode.cs
- SubpageParaClient.cs
- ValidatorCompatibilityHelper.cs
- ServicesExceptionNotHandledEventArgs.cs
- BrowsableAttribute.cs
- EqualityArray.cs
- ConfigXmlCDataSection.cs
- TabItemAutomationPeer.cs
- ToolBar.cs