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
- IndexedEnumerable.cs
- XamlHostingConfiguration.cs
- RadioButtonList.cs
- OleTxTransaction.cs
- BindValidator.cs
- SequentialOutput.cs
- DocumentApplicationDocumentViewer.cs
- ToolStripContextMenu.cs
- SymLanguageType.cs
- ToolBarTray.cs
- SiteMapNode.cs
- NamedPipeChannelListener.cs
- RSAPKCS1SignatureFormatter.cs
- ServiceAuthorizationBehavior.cs
- OutputChannelBinder.cs
- WebHttpBindingCollectionElement.cs
- SliderAutomationPeer.cs
- PhysicalOps.cs
- StylusShape.cs
- HostSecurityManager.cs
- IncrementalHitTester.cs
- WebSysDisplayNameAttribute.cs
- RoutedEventArgs.cs
- LassoHelper.cs
- HandlerMappingMemo.cs
- ArgumentElement.cs
- RelatedView.cs
- WriteTimeStream.cs
- FontFamily.cs
- CodeVariableDeclarationStatement.cs
- TrackingMemoryStream.cs
- SynchronizationLockException.cs
- SafeEventHandle.cs
- SqlDataSourceFilteringEventArgs.cs
- mongolianshape.cs
- AdCreatedEventArgs.cs
- ParserStreamGeometryContext.cs
- columnmapkeybuilder.cs
- BaseDataBoundControl.cs
- AutomationElementIdentifiers.cs
- CompensatableTransactionScopeActivityDesigner.cs
- CodeMemberEvent.cs
- SettingsContext.cs
- initElementDictionary.cs
- Tokenizer.cs
- StyleSheetComponentEditor.cs
- AddDataControlFieldDialog.cs
- RowTypeElement.cs
- EmptyStringExpandableObjectConverter.cs
- COM2ExtendedUITypeEditor.cs
- DataGridViewComboBoxCell.cs
- httpstaticobjectscollection.cs
- ContractHandle.cs
- DataProtectionSecurityStateEncoder.cs
- MatrixTransform3D.cs
- ComponentConverter.cs
- TraceRecords.cs
- CommandEventArgs.cs
- RowType.cs
- MailMessageEventArgs.cs
- Panel.cs
- Compiler.cs
- QueryCursorEventArgs.cs
- XmlAnyElementAttributes.cs
- DiffuseMaterial.cs
- WebPartZone.cs
- AppDomainProtocolHandler.cs
- CreateUserWizardDesigner.cs
- DataGridLengthConverter.cs
- PerfCounterSection.cs
- DragDrop.cs
- xmlfixedPageInfo.cs
- HtmlToClrEventProxy.cs
- SqlDataSourceCustomCommandPanel.cs
- TextRangeProviderWrapper.cs
- DesignObjectWrapper.cs
- DataGridViewColumnConverter.cs
- TreeNodeStyle.cs
- RemotingConfiguration.cs
- CompiledQueryCacheEntry.cs
- InvalidDataException.cs
- Image.cs
- Component.cs
- LabelLiteral.cs
- Touch.cs
- Html32TextWriter.cs
- ADMembershipUser.cs
- FixedDSBuilder.cs
- TextPointer.cs
- IgnoreSection.cs
- UnionExpr.cs
- TextPointer.cs
- RSAOAEPKeyExchangeFormatter.cs
- DescendantBaseQuery.cs
- SoapInteropTypes.cs
- FontInfo.cs
- FormCollection.cs
- WindowsFormsSynchronizationContext.cs
- WinCategoryAttribute.cs
- Binding.cs