Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / Stylus / StylusButtonCollection.cs / 1305600 / StylusButtonCollection.cs
//// Copyright (C) Microsoft Corporation. All rights reserved. // using System; using System.Windows; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Windows.Media; using MS.Utility; using MS.Internal; using SR = MS.Internal.PresentationCore.SR; using SRID = MS.Internal.PresentationCore.SRID; namespace System.Windows.Input { ///////////////////////////////////////////////////////////////////////// ////// Collection of the stylus devices that are available on the tablet. /// public class StylusButtonCollection : ReadOnlyCollection{ ///////////////////////////////////////////////////////////////////// internal StylusButtonCollection(StylusButton[] buttons) : base(new List (buttons)) { } /// /// Returns the first StylusButton in the collection with a Guid property /// that matches the specified guid. Returns null if no matching StylusButton is found /// /// guid public StylusButton GetStylusButtonByGuid(Guid guid) { for (int x = 0; x < this.Count; x++) { if (this[x].Guid == guid) { return this[x]; } } return null; } } } // 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
- DependencyObjectProvider.cs
- ExpressionDumper.cs
- TraceSwitch.cs
- DoubleAnimationBase.cs
- StringExpressionSet.cs
- OneToOneMappingSerializer.cs
- BufferedStream2.cs
- XpsFixedDocumentReaderWriter.cs
- ToolboxDataAttribute.cs
- SqlDataReader.cs
- CanonicalFormWriter.cs
- RegexInterpreter.cs
- dbdatarecord.cs
- ObjectStateEntryDbDataRecord.cs
- NumericExpr.cs
- ValidationPropertyAttribute.cs
- ScriptBehaviorDescriptor.cs
- DataServiceStreamResponse.cs
- PeerTransportListenAddressConverter.cs
- Thumb.cs
- XmlSchemaCompilationSettings.cs
- PermissionSetEnumerator.cs
- SafeCryptHandles.cs
- PersonalizationDictionary.cs
- IntegerValidator.cs
- SQLMoney.cs
- WindowsGrip.cs
- DataGrid.cs
- ZipPackagePart.cs
- QuotedPrintableStream.cs
- StringFormat.cs
- XmlDownloadManager.cs
- ChangeDirector.cs
- Process.cs
- RotationValidation.cs
- SqlLiftIndependentRowExpressions.cs
- MetafileHeaderWmf.cs
- GeometryHitTestResult.cs
- AutomationElementCollection.cs
- BaseCollection.cs
- DataSourceView.cs
- Bold.cs
- TraceSection.cs
- MetadataProperty.cs
- FileCodeGroup.cs
- OutputWindow.cs
- ThreadInterruptedException.cs
- ShaperBuffers.cs
- DropSourceBehavior.cs
- Funcletizer.cs
- ResolveRequestResponseAsyncResult.cs
- SystemUnicastIPAddressInformation.cs
- PrintDialogException.cs
- FillBehavior.cs
- CodeDefaultValueExpression.cs
- JoinElimination.cs
- Size.cs
- _BasicClient.cs
- TypeListConverter.cs
- MailSettingsSection.cs
- NativeMethods.cs
- HttpListenerTimeoutManager.cs
- ConfigurationProviderException.cs
- IImplicitResourceProvider.cs
- CacheHelper.cs
- SortedList.cs
- MsmqHostedTransportConfiguration.cs
- ResourceType.cs
- DecimalStorage.cs
- NonParentingControl.cs
- MetabaseReader.cs
- PageCodeDomTreeGenerator.cs
- Message.cs
- TerminateDesigner.cs
- FixedSOMGroup.cs
- dataSvcMapFileLoader.cs
- EmptyStringExpandableObjectConverter.cs
- Font.cs
- SmtpNegotiateAuthenticationModule.cs
- SqlRowUpdatingEvent.cs
- ResolvedKeyFrameEntry.cs
- Token.cs
- StaticTextPointer.cs
- UnknownBitmapEncoder.cs
- TraceInternal.cs
- MetadataItem_Static.cs
- Label.cs
- FusionWrap.cs
- MsmqIntegrationProcessProtocolHandler.cs
- HttpCacheParams.cs
- safemediahandle.cs
- PropertiesTab.cs
- odbcmetadatafactory.cs
- OlePropertyStructs.cs
- FloaterParagraph.cs
- SiteMapPath.cs
- WebPartCollection.cs
- StoreAnnotationsMap.cs
- DependencyPropertyChangedEventArgs.cs
- ColumnMap.cs