Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Base / System / Windows / Media / DisableDpiAwarenessAttribute.cs / 1 / 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. //------------------------------------------------------------------------ // // 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
- DoubleSumAggregationOperator.cs
- _UriSyntax.cs
- XmlTypeAttribute.cs
- DrawingServices.cs
- BasicViewGenerator.cs
- _CacheStreams.cs
- SchemaImporterExtensionElement.cs
- PropertyRecord.cs
- DeflateStreamAsyncResult.cs
- DataRelationPropertyDescriptor.cs
- UnsafeNativeMethods.cs
- ThreadSafeList.cs
- EntryIndex.cs
- SignatureTargetIdManager.cs
- Win32.cs
- SecUtil.cs
- XmlName.cs
- ResourcePermissionBaseEntry.cs
- HandleCollector.cs
- SerializerDescriptor.cs
- Models.cs
- TraceContextRecord.cs
- DbProviderSpecificTypePropertyAttribute.cs
- PassportAuthenticationEventArgs.cs
- ComplexPropertyEntry.cs
- NavigationProgressEventArgs.cs
- httpapplicationstate.cs
- TextDecorationLocationValidation.cs
- UrlPath.cs
- ReaderWriterLock.cs
- ObjectQueryState.cs
- XPathNodeIterator.cs
- PinnedBufferMemoryStream.cs
- UInt16.cs
- DoubleConverter.cs
- Application.cs
- PngBitmapDecoder.cs
- HostProtectionPermission.cs
- ObfuscationAttribute.cs
- ZoneLinkButton.cs
- AsyncPostBackTrigger.cs
- Item.cs
- SamlAuthorityBinding.cs
- AsymmetricKeyExchangeFormatter.cs
- TypeConverter.cs
- CommonProperties.cs
- CharUnicodeInfo.cs
- DateRangeEvent.cs
- DateBoldEvent.cs
- RectangleF.cs
- TranslateTransform.cs
- nulltextnavigator.cs
- ValidationPropertyAttribute.cs
- DocumentViewerAutomationPeer.cs
- LambdaCompiler.Lambda.cs
- ResourcesBuildProvider.cs
- ArglessEventHandlerProxy.cs
- VirtualDirectoryMappingCollection.cs
- fixedPageContentExtractor.cs
- QueryReaderSettings.cs
- Canvas.cs
- CodeThrowExceptionStatement.cs
- SupportingTokenBindingElement.cs
- CmsUtils.cs
- BamlRecordWriter.cs
- XmlQualifiedNameTest.cs
- HostAdapter.cs
- OrderedDictionary.cs
- SmiRequestExecutor.cs
- util.cs
- NodeLabelEditEvent.cs
- FixedSOMImage.cs
- InvalidPrinterException.cs
- Logging.cs
- SchemaImporterExtensionElement.cs
- SqlIdentifier.cs
- Expressions.cs
- TypeConverterValueSerializer.cs
- User.cs
- TrackBarRenderer.cs
- WmlObjectListAdapter.cs
- ConnectionOrientedTransportElement.cs
- Matrix.cs
- ResourceReader.cs
- CodeAttributeDeclarationCollection.cs
- TableLayoutPanelDesigner.cs
- AdornerLayer.cs
- BrowserInteropHelper.cs
- AutomationIdentifierGuids.cs
- AnonymousIdentificationSection.cs
- VarRefManager.cs
- InputElement.cs
- Configuration.cs
- GroupBoxRenderer.cs
- WebPartConnectionsCancelEventArgs.cs
- SqlXmlStorage.cs
- CompositeTypefaceMetrics.cs
- TextFormatterImp.cs
- WindowsScrollBar.cs
- ReferentialConstraintRoleElement.cs