Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Input / Stylus / Tablet.cs / 1 / Tablet.cs
using System; using System.Windows; using System.Windows.Threading; using System.Security; namespace System.Windows.Input { ///////////////////////////////////////////////////////////////////////// ////// Class containing only static methods to access tablet info. /// public static class Tablet { ///////////////////////////////////////////////////////////////////// ////// Read-only access to the Tablet device associated with the current event /// for the current input manager. /// public static TabletDevice CurrentTabletDevice { get { StylusDevice stylus = Stylus.CurrentStylusDevice; if (stylus == null) return null; return stylus.TabletDevice; } } ///////////////////////////////////////////////////////////////////// ////// Returns the collection of Tablet Devices defined on this tablet. /// ////// Critical: calls into SecurityCritical code (Stylus.TabletDevices) /// PublicOK: - asserts for unmanaged code access (via SUC) to create TabletDevices. /// - returns our collection of TabletDevices which we want public. /// public static TabletDeviceCollection TabletDevices { [SecurityCritical] get { return StylusLogic.CurrentStylusLogic.TabletDevices; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Windows; using System.Windows.Threading; using System.Security; namespace System.Windows.Input { ///////////////////////////////////////////////////////////////////////// ////// Class containing only static methods to access tablet info. /// public static class Tablet { ///////////////////////////////////////////////////////////////////// ////// Read-only access to the Tablet device associated with the current event /// for the current input manager. /// public static TabletDevice CurrentTabletDevice { get { StylusDevice stylus = Stylus.CurrentStylusDevice; if (stylus == null) return null; return stylus.TabletDevice; } } ///////////////////////////////////////////////////////////////////// ////// Returns the collection of Tablet Devices defined on this tablet. /// ////// Critical: calls into SecurityCritical code (Stylus.TabletDevices) /// PublicOK: - asserts for unmanaged code access (via SUC) to create TabletDevices. /// - returns our collection of TabletDevices which we want public. /// public static TabletDeviceCollection TabletDevices { [SecurityCritical] get { return StylusLogic.CurrentStylusLogic.TabletDevices; } } } } // 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
- ToolTip.cs
- KerberosReceiverSecurityToken.cs
- SqlRowUpdatingEvent.cs
- BinHexEncoder.cs
- SocketCache.cs
- MetadataItemEmitter.cs
- SchemaCollectionPreprocessor.cs
- DetectRunnableInstancesTask.cs
- WindowProviderWrapper.cs
- GuidelineCollection.cs
- SpeechSynthesizer.cs
- WebBrowsableAttribute.cs
- CurrencyWrapper.cs
- RegexWorker.cs
- RecognizerStateChangedEventArgs.cs
- RegexRunnerFactory.cs
- StrongNameKeyPair.cs
- Column.cs
- ExecutedRoutedEventArgs.cs
- Identity.cs
- EncoderBestFitFallback.cs
- DurationConverter.cs
- HeaderCollection.cs
- BookmarkResumptionRecord.cs
- DataTemplateSelector.cs
- FloatUtil.cs
- List.cs
- ImageKeyConverter.cs
- GetPageNumberCompletedEventArgs.cs
- externdll.cs
- SqlClientFactory.cs
- ChtmlSelectionListAdapter.cs
- DesignerUtility.cs
- RsaKeyIdentifierClause.cs
- BorderGapMaskConverter.cs
- RenderingBiasValidation.cs
- WebEventCodes.cs
- MessageAction.cs
- ProofTokenCryptoHandle.cs
- ListViewEditEventArgs.cs
- CustomPopupPlacement.cs
- Win32PrintDialog.cs
- Types.cs
- NavigationCommands.cs
- DynamicMethod.cs
- HMACSHA512.cs
- PtsCache.cs
- CompilerResults.cs
- SiteMapDataSource.cs
- SymDocumentType.cs
- _CookieModule.cs
- BaseDataListDesigner.cs
- counter.cs
- TemplateBindingExtensionConverter.cs
- ZoomPercentageConverter.cs
- DynamicValidatorEventArgs.cs
- HyperLinkField.cs
- Identity.cs
- DynamicPropertyHolder.cs
- HttpBrowserCapabilitiesWrapper.cs
- DispatcherFrame.cs
- InfoCard.cs
- FormsAuthentication.cs
- RepeatInfo.cs
- AuthenticationService.cs
- PublisherMembershipCondition.cs
- DataColumnChangeEvent.cs
- RotateTransform3D.cs
- PointValueSerializer.cs
- NativeMethods.cs
- DocumentSequenceHighlightLayer.cs
- PropertyGeneratedEventArgs.cs
- MimeMapping.cs
- VarInfo.cs
- MsmqElementBase.cs
- SecurityDescriptor.cs
- BasicHttpMessageSecurity.cs
- EdmToObjectNamespaceMap.cs
- InkCanvasFeedbackAdorner.cs
- ListItemConverter.cs
- XamlVector3DCollectionSerializer.cs
- Aggregates.cs
- TreeViewImageIndexConverter.cs
- ProviderManager.cs
- ColumnHeader.cs
- MdiWindowListStrip.cs
- XhtmlBasicImageAdapter.cs
- ReverseInheritProperty.cs
- TextParagraph.cs
- DataStreamFromComStream.cs
- MouseOverProperty.cs
- ReaderWriterLockWrapper.cs
- ConstrainedDataObject.cs
- CompositeDataBoundControl.cs
- DeferredSelectedIndexReference.cs
- StickyNoteAnnotations.cs
- XsltSettings.cs
- Cursors.cs
- MembershipAdapter.cs
- PageHandlerFactory.cs