Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / System / Windows / Media / DisableDpiAwarenessAttribute.cs / 1305600 / DisableDpiAwarenessAttribute.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2006 // // File: DisableDpiAwarenessAttribute.cs // // By default, WPF application is Dpi-Aware when the UI layout is calculated. // But if in any case, an application wants to host WPF control and doesn't // want to support Dpi aware, the way to achieve it is to add below attribute // value in its application assembly. // // [assembly:System.Windows.Media.DisableDpiAwareness] // // Created: 06/01/2006 WeibZ // //----------------------------------------------------------------------- using System; namespace System.Windows.Media { ////// DisableDpiAwarenessAttribute tells to disable DpiAwareness in this /// application for WPF UI elements. /// [AttributeUsage(AttributeTargets.Assembly, AllowMultiple=false)] public sealed class DisableDpiAwarenessAttribute: Attribute { ////// Ctor of DisableDpiAwareness /// public DisableDpiAwarenessAttribute( ) { } } } // 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
- InvalidOperationException.cs
- DbMetaDataColumnNames.cs
- ProfileParameter.cs
- ClickablePoint.cs
- BinHexEncoding.cs
- LocatorPart.cs
- XPathNodeInfoAtom.cs
- _IPv4Address.cs
- ColumnMapCopier.cs
- CubicEase.cs
- XmlSchemas.cs
- AssemblyHash.cs
- MemberNameValidator.cs
- SafeProcessHandle.cs
- SqlClientMetaDataCollectionNames.cs
- ChangeNode.cs
- FileEnumerator.cs
- MessageQueueKey.cs
- X509UI.cs
- SqlVisitor.cs
- JsonCollectionDataContract.cs
- WindowsTab.cs
- WithStatement.cs
- CommonRemoteMemoryBlock.cs
- PersonalizationProvider.cs
- DiscoveryReferences.cs
- TimerElapsedEvenArgs.cs
- WinOEToolBoxItem.cs
- FloatAverageAggregationOperator.cs
- HtmlControlPersistable.cs
- Tuple.cs
- CoreSwitches.cs
- RightsManagementInformation.cs
- ErrorWrapper.cs
- GifBitmapDecoder.cs
- CompilerCollection.cs
- RuntimeResourceSet.cs
- State.cs
- CompoundFileStorageReference.cs
- AssemblyAssociatedContentFileAttribute.cs
- XmlReader.cs
- PerformanceCounterNameAttribute.cs
- XmlBufferReader.cs
- VariableQuery.cs
- DecimalAnimationUsingKeyFrames.cs
- WebPartCollection.cs
- IISUnsafeMethods.cs
- ToolboxItemWrapper.cs
- DataGridViewRowConverter.cs
- PaintValueEventArgs.cs
- CompositeActivityTypeDescriptor.cs
- CryptoHelper.cs
- DataGridState.cs
- OleServicesContext.cs
- SqlDataSourceCache.cs
- XmlCDATASection.cs
- BulletedListEventArgs.cs
- SurrogateChar.cs
- RuntimeWrappedException.cs
- XamlReaderHelper.cs
- FormattedText.cs
- SafeThreadHandle.cs
- TypeConverterHelper.cs
- ChannelOptions.cs
- SecurityTimestamp.cs
- LocalServiceSecuritySettingsElement.cs
- PrimitiveDataContract.cs
- ProxyAttribute.cs
- FaultFormatter.cs
- CngProperty.cs
- SqlServices.cs
- BindingList.cs
- ThousandthOfEmRealDoubles.cs
- UIElementAutomationPeer.cs
- OrderedDictionary.cs
- DocumentViewerAutomationPeer.cs
- EditorPartChrome.cs
- OpenTypeMethods.cs
- CodeEventReferenceExpression.cs
- Brush.cs
- DataGridViewCellFormattingEventArgs.cs
- SynchronizationLockException.cs
- LinqMaximalSubtreeNominator.cs
- ChannelAcceptor.cs
- EdmConstants.cs
- HttpPostProtocolImporter.cs
- TabPageDesigner.cs
- ImageConverter.cs
- SecurityTokenContainer.cs
- IList.cs
- Page.cs
- HtmlImage.cs
- FirstMatchCodeGroup.cs
- HandleCollector.cs
- Thread.cs
- GacUtil.cs
- base64Transforms.cs
- TransactionScope.cs
- DataSetViewSchema.cs
- BaseAsyncResult.cs