Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ActivityMarkupSerializationProvider.cs
- RemotingAttributes.cs
- DefaultEventAttribute.cs
- SafeSystemMetrics.cs
- GridViewColumnHeaderAutomationPeer.cs
- RequestStatusBarUpdateEventArgs.cs
- RelationshipDetailsRow.cs
- HtmlInputRadioButton.cs
- TabControlCancelEvent.cs
- DayRenderEvent.cs
- ControlBuilder.cs
- PropertyGeneratedEventArgs.cs
- PathFigureCollection.cs
- SvcFileManager.cs
- OleDbConnectionFactory.cs
- HostProtectionPermission.cs
- TemplateControlParser.cs
- AnnotationDocumentPaginator.cs
- XsltException.cs
- QueryActivatableWorkflowsCommand.cs
- DelayedRegex.cs
- FlatButtonAppearance.cs
- SelectedGridItemChangedEvent.cs
- Int32Converter.cs
- SignatureResourceHelper.cs
- ListGeneralPage.cs
- SqlDataSourceCommandEventArgs.cs
- ThicknessAnimationBase.cs
- TreeView.cs
- UnsafeNativeMethodsMilCoreApi.cs
- DataSourceDescriptorCollection.cs
- StreamAsIStream.cs
- XPathParser.cs
- UInt64Converter.cs
- ReadOnlyTernaryTree.cs
- AlphabeticalEnumConverter.cs
- DataControlFieldHeaderCell.cs
- ToolStripContainer.cs
- PropertyGeneratedEventArgs.cs
- ValidatedControlConverter.cs
- WebPartVerb.cs
- SharedUtils.cs
- RequestQueryParser.cs
- SqlDataSourceSelectingEventArgs.cs
- NamedPipeConnectionPool.cs
- ArithmeticException.cs
- ConsumerConnectionPoint.cs
- ConnectionOrientedTransportChannelListener.cs
- TableAdapterManagerNameHandler.cs
- StringAnimationUsingKeyFrames.cs
- DefaultBinder.cs
- InspectionWorker.cs
- EventRouteFactory.cs
- XmlFormatWriterGenerator.cs
- XslCompiledTransform.cs
- FontDialog.cs
- ProjectionCamera.cs
- Soap12ProtocolReflector.cs
- x509store.cs
- ThicknessKeyFrameCollection.cs
- HttpFileCollectionBase.cs
- DurableRuntimeValidator.cs
- HTTPNotFoundHandler.cs
- WebBrowserBase.cs
- ProgressBarBrushConverter.cs
- Empty.cs
- BypassElement.cs
- PropertyTabAttribute.cs
- SortQuery.cs
- TableStyle.cs
- RefExpr.cs
- StandardBindingImporter.cs
- Enlistment.cs
- GenericsInstances.cs
- DBDataPermissionAttribute.cs
- PropertyDescriptor.cs
- VirtualPathProvider.cs
- ConsoleKeyInfo.cs
- Path.cs
- DbConnectionHelper.cs
- TypefaceMetricsCache.cs
- IImplicitResourceProvider.cs
- DataTableCollection.cs
- DataView.cs
- ValidationEventArgs.cs
- ClockGroup.cs
- ProfileSettings.cs
- HttpContext.cs
- SqlTriggerAttribute.cs
- Native.cs
- Expressions.cs
- XmlSchemaComplexType.cs
- MarkupExtensionParser.cs
- Enum.cs
- NamedPipeChannelFactory.cs
- ToolStripAdornerWindowService.cs
- TextCompositionManager.cs
- IndexerNameAttribute.cs
- UnSafeCharBuffer.cs
- ClientTargetSection.cs