Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OracleParameterCollection.cs
- ILGenerator.cs
- XamlFxTrace.cs
- ConfigXmlText.cs
- DefaultSerializationProviderAttribute.cs
- objectquery_tresulttype.cs
- ExplicitDiscriminatorMap.cs
- arclist.cs
- KeyMatchBuilder.cs
- Literal.cs
- WebColorConverter.cs
- TextEditorTables.cs
- MimeParameterWriter.cs
- PageBreakRecord.cs
- CodePropertyReferenceExpression.cs
- DataGridViewColumnHeaderCell.cs
- HttpHeaderCollection.cs
- SqlFactory.cs
- QuinticEase.cs
- MouseBinding.cs
- ResourceSet.cs
- TreeView.cs
- ServerValidateEventArgs.cs
- DataGridViewTopRowAccessibleObject.cs
- PackageProperties.cs
- EntityViewContainer.cs
- processwaithandle.cs
- HttpServerVarsCollection.cs
- CodeIterationStatement.cs
- _RequestCacheProtocol.cs
- BitmapDownload.cs
- InputProviderSite.cs
- LicenseContext.cs
- ToolStripSeparator.cs
- SiteMapNodeItemEventArgs.cs
- InteropAutomationProvider.cs
- NewArrayExpression.cs
- EntityDataSourceReferenceGroup.cs
- Thumb.cs
- ObjectViewEntityCollectionData.cs
- SerializerDescriptor.cs
- GPPOINT.cs
- UnderstoodHeaders.cs
- MappingModelBuildProvider.cs
- TextServicesCompartment.cs
- PublisherMembershipCondition.cs
- StrongNameIdentityPermission.cs
- HtmlInputText.cs
- XsltFunctions.cs
- StringFreezingAttribute.cs
- HtmlInputRadioButton.cs
- HttpWebRequestElement.cs
- DataGridParentRows.cs
- OuterGlowBitmapEffect.cs
- WCFModelStrings.Designer.cs
- _ConnectOverlappedAsyncResult.cs
- dataprotectionpermissionattribute.cs
- IntegrationExceptionEventArgs.cs
- AnnotationComponentManager.cs
- XmlChoiceIdentifierAttribute.cs
- ConfigurationStrings.cs
- RoleManagerModule.cs
- XsdValidatingReader.cs
- HitTestWithPointDrawingContextWalker.cs
- MetaTableHelper.cs
- ToolStripProgressBar.cs
- TypeUsageBuilder.cs
- StringToken.cs
- ButtonBase.cs
- ToolStripContainerActionList.cs
- CircleEase.cs
- ToolStripDropDownMenu.cs
- SQLInt32.cs
- TextSimpleMarkerProperties.cs
- TabControl.cs
- RegisteredScript.cs
- StringFunctions.cs
- DispatcherObject.cs
- ToolBarOverflowPanel.cs
- SecurityTokenProvider.cs
- Message.cs
- DataView.cs
- XD.cs
- CollectionViewGroupInternal.cs
- HttpCachePolicyBase.cs
- ContextMenuAutomationPeer.cs
- XmlSchemaComplexContentRestriction.cs
- MenuItemCollection.cs
- WorkflowApplication.cs
- PathFigureCollectionConverter.cs
- DataViewManagerListItemTypeDescriptor.cs
- StrongNameIdentityPermission.cs
- ToolStripDropDownClosingEventArgs.cs
- TogglePatternIdentifiers.cs
- ConfigurationSettings.cs
- LogicalCallContext.cs
- NullableLongMinMaxAggregationOperator.cs
- DrawingGroup.cs
- SqlBuffer.cs
- HGlobalSafeHandle.cs