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
- InstalledFontCollection.cs
- SettingsSection.cs
- FixedElement.cs
- BindToObject.cs
- DbQueryCommandTree.cs
- MessageBox.cs
- DataGridLength.cs
- X509ChainElement.cs
- Rules.cs
- CqlIdentifiers.cs
- CodeAttributeArgument.cs
- RenderCapability.cs
- Wow64ConfigurationLoader.cs
- FileRecordSequence.cs
- HttpPostProtocolImporter.cs
- CellQuery.cs
- ModifyActivitiesPropertyDescriptor.cs
- Int32.cs
- ChtmlLinkAdapter.cs
- Rotation3DKeyFrameCollection.cs
- DeploymentExceptionMapper.cs
- SessionStateSection.cs
- DataListCommandEventArgs.cs
- OdbcConnection.cs
- StaticTextPointer.cs
- DockPanel.cs
- MessageEncoderFactory.cs
- XPathNode.cs
- TemplateControlBuildProvider.cs
- NetworkInformationPermission.cs
- FixedPage.cs
- CollectionDataContractAttribute.cs
- Cursors.cs
- SerializationBinder.cs
- CreateWorkflowOwnerCommand.cs
- OleDbRowUpdatedEvent.cs
- ConfigurationValues.cs
- InputBinding.cs
- DataServiceEntityAttribute.cs
- TabletDeviceInfo.cs
- MultipartContentParser.cs
- ActivityCodeDomSerializationManager.cs
- CuspData.cs
- HwndHostAutomationPeer.cs
- AggregateNode.cs
- TextTreeObjectNode.cs
- PolicyValidationException.cs
- Utils.cs
- MemberInfoSerializationHolder.cs
- InvokeProviderWrapper.cs
- ComponentEditorPage.cs
- AdapterDictionary.cs
- TextProviderWrapper.cs
- XsltException.cs
- PeerEndPoint.cs
- WindowsIdentity.cs
- FixedSchema.cs
- LoginDesigner.cs
- AssemblyAttributesGoHere.cs
- StrokeCollection2.cs
- RequestStatusBarUpdateEventArgs.cs
- UnsafeNativeMethods.cs
- QuinticEase.cs
- FixUpCollection.cs
- Console.cs
- KeyTime.cs
- DataRowChangeEvent.cs
- IERequestCache.cs
- TypeCacheManager.cs
- DataRowCollection.cs
- RetrieveVirtualItemEventArgs.cs
- Overlapped.cs
- SizeAnimationBase.cs
- ServiceDescriptionContext.cs
- SqlXml.cs
- EncoderParameter.cs
- DataGridRow.cs
- UpdatePanelTriggerCollection.cs
- JsonUriDataContract.cs
- DiagnosticsConfigurationHandler.cs
- xmlfixedPageInfo.cs
- ToolboxItemFilterAttribute.cs
- ReadOnlyCollection.cs
- _RequestCacheProtocol.cs
- WebPartChrome.cs
- StaticExtension.cs
- ListSortDescription.cs
- XsltInput.cs
- PointIndependentAnimationStorage.cs
- TableDetailsRow.cs
- DockEditor.cs
- GeneralTransform.cs
- LingerOption.cs
- DataGridHeaderBorder.cs
- SplitContainerDesigner.cs
- Statements.cs
- updatecommandorderer.cs
- SqlCaseSimplifier.cs
- WebControl.cs
- SubMenuStyleCollection.cs