Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / Stylus / Tablet.cs / 1305600 / 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
- PixelFormat.cs
- ItemsChangedEventArgs.cs
- CodeBlockBuilder.cs
- ObjectDisposedException.cs
- DataServiceQueryOfT.cs
- OrderedEnumerableRowCollection.cs
- XmlHierarchicalEnumerable.cs
- MetadataWorkspace.cs
- _StreamFramer.cs
- PtsHelper.cs
- UxThemeWrapper.cs
- XmlStreamNodeWriter.cs
- TraceProvider.cs
- CompositeKey.cs
- MethodCallConverter.cs
- RuntimeHandles.cs
- AssemblyAttributesGoHere.cs
- WebBrowserContainer.cs
- BuiltInPermissionSets.cs
- SQLByteStorage.cs
- Rectangle.cs
- XmlCharCheckingWriter.cs
- UInt64.cs
- ListViewCancelEventArgs.cs
- CodeGotoStatement.cs
- PeerInvitationResponse.cs
- ByteStorage.cs
- Types.cs
- FileNotFoundException.cs
- AssemblyNameProxy.cs
- ConfigXmlComment.cs
- SoapElementAttribute.cs
- NamespaceDecl.cs
- UserControlCodeDomTreeGenerator.cs
- WorkflowApplication.cs
- Asn1IntegerConverter.cs
- XsdSchemaFileEditor.cs
- RuntimeArgumentHandle.cs
- FileNotFoundException.cs
- uribuilder.cs
- RoleServiceManager.cs
- RowUpdatedEventArgs.cs
- HttpCacheParams.cs
- FileClassifier.cs
- EncoderFallback.cs
- ToolboxComponentsCreatingEventArgs.cs
- TreeNodeSelectionProcessor.cs
- DataTrigger.cs
- SocketAddress.cs
- RangeValidator.cs
- mda.cs
- Rect3D.cs
- WorkflowCommandExtensionItem.cs
- TreeNodeBinding.cs
- EventLogEntryCollection.cs
- DataRowComparer.cs
- DataControlFieldCell.cs
- Light.cs
- ReadOnlyDataSource.cs
- FileSecurity.cs
- SelectionPattern.cs
- IdleTimeoutMonitor.cs
- SystemBrushes.cs
- RadialGradientBrush.cs
- RSAOAEPKeyExchangeFormatter.cs
- EventInfo.cs
- PixelShader.cs
- TCPListener.cs
- TreeViewDesigner.cs
- BasicExpandProvider.cs
- MemberPath.cs
- WebPartExportVerb.cs
- Codec.cs
- OrderByLifter.cs
- Normalization.cs
- Calendar.cs
- ThreadAbortException.cs
- LayoutTable.cs
- MetadataFile.cs
- WizardStepBase.cs
- BitStack.cs
- DbProviderFactoriesConfigurationHandler.cs
- ListenUriMode.cs
- KeyTimeConverter.cs
- Condition.cs
- relpropertyhelper.cs
- SwitchElementsCollection.cs
- MimeParameterWriter.cs
- DockAndAnchorLayout.cs
- TimeoutValidationAttribute.cs
- ObjectHandle.cs
- RemotingSurrogateSelector.cs
- ReadOnlyTernaryTree.cs
- TextEvent.cs
- DataServiceContext.cs
- Package.cs
- FormsAuthenticationCredentials.cs
- DecimalAverageAggregationOperator.cs
- AutoResizedEvent.cs
- PageTheme.cs