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
- EntityContainerEmitter.cs
- Assert.cs
- HtmlTextArea.cs
- RichTextBoxDesigner.cs
- pingexception.cs
- KerberosSecurityTokenAuthenticator.cs
- CompModHelpers.cs
- MetaData.cs
- SamlSerializer.cs
- MouseGestureConverter.cs
- DataServiceHostWrapper.cs
- SByte.cs
- ObjectDataSourceView.cs
- ParserHooks.cs
- IndexedEnumerable.cs
- TableSectionStyle.cs
- Menu.cs
- Int16.cs
- UseManagedPresentationBindingElement.cs
- DefaultWorkflowSchedulerService.cs
- CollectionViewProxy.cs
- SqlGenerator.cs
- SoapBinding.cs
- CompiledIdentityConstraint.cs
- AtomContentProperty.cs
- TemplateEditingFrame.cs
- FixedSOMPage.cs
- WebCategoryAttribute.cs
- BinaryObjectWriter.cs
- WCFServiceClientProxyGenerator.cs
- SendKeys.cs
- HandleCollector.cs
- SystemThemeKey.cs
- SerializationTrace.cs
- ExpressionBinding.cs
- SwitchLevelAttribute.cs
- HierarchicalDataBoundControl.cs
- OperatorExpressions.cs
- MatrixAnimationBase.cs
- WebPartMinimizeVerb.cs
- ByteStorage.cs
- SrgsOneOf.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- SmiTypedGetterSetter.cs
- DynamicField.cs
- GenericWebPart.cs
- Point3DCollection.cs
- ConfigXmlText.cs
- ToolStripPanelRow.cs
- TypedElement.cs
- CompilerTypeWithParams.cs
- DataSysAttribute.cs
- DbModificationCommandTree.cs
- ByteStreamMessageEncoderFactory.cs
- ImageSourceConverter.cs
- ScrollEvent.cs
- EmptyReadOnlyDictionaryInternal.cs
- UserValidatedEventArgs.cs
- NotSupportedException.cs
- Model3D.cs
- StaticContext.cs
- ExcCanonicalXml.cs
- Rule.cs
- RegexCode.cs
- CompressionTracing.cs
- QueryStringParameter.cs
- Mappings.cs
- NotifyParentPropertyAttribute.cs
- ResourceReferenceExpressionConverter.cs
- AffineTransform3D.cs
- DetailsViewPageEventArgs.cs
- HyperLinkField.cs
- ImmutableObjectAttribute.cs
- ListViewInsertEventArgs.cs
- Imaging.cs
- InputScopeManager.cs
- SR.cs
- VisualTreeUtils.cs
- RectangleGeometry.cs
- RoutedCommand.cs
- SchemaReference.cs
- DesignerLoader.cs
- ListBindingHelper.cs
- HttpInputStream.cs
- EdmMember.cs
- RtfToken.cs
- CalendarDay.cs
- MailHeaderInfo.cs
- TraceContext.cs
- TypeToken.cs
- BackgroundWorker.cs
- WindowsSysHeader.cs
- CheckBoxAutomationPeer.cs
- LinearQuaternionKeyFrame.cs
- keycontainerpermission.cs
- DictionaryContent.cs
- RetrieveVirtualItemEventArgs.cs
- TemplateControl.cs
- TimelineCollection.cs
- ListViewSortEventArgs.cs