Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- BaseUriHelper.cs
- QilTypeChecker.cs
- TraceHandlerErrorFormatter.cs
- MappingItemCollection.cs
- LayoutManager.cs
- ApplicationException.cs
- TreeNodeCollection.cs
- ResolveNameEventArgs.cs
- TextBoxRenderer.cs
- MeasureItemEvent.cs
- TableLayoutRowStyleCollection.cs
- DataBinder.cs
- ZipIOLocalFileBlock.cs
- DesignerProperties.cs
- FieldDescriptor.cs
- CodeDomComponentSerializationService.cs
- ChtmlTextWriter.cs
- OracleParameter.cs
- AnnotationStore.cs
- WorkflowOperationErrorHandler.cs
- BitmapCodecInfoInternal.cs
- ImageListImageEditor.cs
- DllNotFoundException.cs
- CodeTypeReferenceCollection.cs
- Set.cs
- SymbolEqualComparer.cs
- DocumentOrderQuery.cs
- SortedDictionary.cs
- WindowsListViewSubItem.cs
- WebPartEventArgs.cs
- PagesSection.cs
- MarginsConverter.cs
- FixedStringLookup.cs
- PersonalizationEntry.cs
- HttpCapabilitiesSectionHandler.cs
- GetPageCompletedEventArgs.cs
- DesignerExtenders.cs
- UpdateEventArgs.cs
- Point3DCollection.cs
- EntityDesignerBuildProvider.cs
- SerialPort.cs
- EntityDataSourceReferenceGroup.cs
- TimeoutConverter.cs
- ReadOnlyActivityGlyph.cs
- TabRenderer.cs
- SHA1Managed.cs
- GuidelineSet.cs
- ParallelTimeline.cs
- ByteStream.cs
- UnknownExceptionActionHelper.cs
- ToolBarButton.cs
- CommandBindingCollection.cs
- XPathItem.cs
- PropertyChangeTracker.cs
- ADMembershipProvider.cs
- SerializationException.cs
- HtmlInputSubmit.cs
- TrackingMemoryStreamFactory.cs
- XPathDescendantIterator.cs
- Clock.cs
- PlatformCulture.cs
- EntityDataSourceWrapper.cs
- TextEditorCharacters.cs
- IUnknownConstantAttribute.cs
- DeviceContexts.cs
- InputManager.cs
- AppDomainEvidenceFactory.cs
- ThreadInterruptedException.cs
- QuaternionAnimation.cs
- SecurityElement.cs
- TemplateInstanceAttribute.cs
- NamedPermissionSet.cs
- FormDesigner.cs
- ImplicitInputBrush.cs
- SingleStorage.cs
- Bold.cs
- TableRowGroup.cs
- ProxyWebPartConnectionCollection.cs
- InstanceDataCollection.cs
- _CacheStreams.cs
- WebPartConnection.cs
- RangeValuePattern.cs
- ExtensionFile.cs
- EmissiveMaterial.cs
- _LoggingObject.cs
- DragEvent.cs
- compensatingcollection.cs
- ApplyImportsAction.cs
- WebPart.cs
- Pair.cs
- Expression.cs
- sqlnorm.cs
- SqlCacheDependencyDatabaseCollection.cs
- xml.cs
- CounterSetInstanceCounterDataSet.cs
- Error.cs
- EntityCommandDefinition.cs
- RenderOptions.cs
- LinkConverter.cs
- CodeGenHelper.cs