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
- ConnectionPoint.cs
- ProxyElement.cs
- CachingHintValidation.cs
- XamlFilter.cs
- TransformedBitmap.cs
- arc.cs
- XmlWellformedWriter.cs
- DecoderFallback.cs
- HttpRequestCacheValidator.cs
- StatusBarPanelClickEvent.cs
- SmtpClient.cs
- RuntimeHelpers.cs
- panel.cs
- FileChangesMonitor.cs
- ScrollBar.cs
- PersonalizationProvider.cs
- NeutralResourcesLanguageAttribute.cs
- SqlClientMetaDataCollectionNames.cs
- Storyboard.cs
- TimerElapsedEvenArgs.cs
- SqlGenerator.cs
- WindowsListViewGroupHelper.cs
- SplitterEvent.cs
- EnumValAlphaComparer.cs
- TemplateControlCodeDomTreeGenerator.cs
- LogExtentCollection.cs
- HeaderUtility.cs
- DaylightTime.cs
- shaperfactoryquerycachekey.cs
- MissingMemberException.cs
- UnicodeEncoding.cs
- MessageLoggingElement.cs
- StylusButtonEventArgs.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- RestClientProxyHandler.cs
- ExpressionBindingCollection.cs
- SmtpDateTime.cs
- XmlTextAttribute.cs
- FragmentNavigationEventArgs.cs
- LayoutManager.cs
- EncodingConverter.cs
- isolationinterop.cs
- PackUriHelper.cs
- PagedDataSource.cs
- FileInfo.cs
- MouseCaptureWithinProperty.cs
- ObjectContext.cs
- Rfc2898DeriveBytes.cs
- NodeInfo.cs
- UniqueID.cs
- HttpEncoder.cs
- ByteConverter.cs
- AuthenticationManager.cs
- GeometryGroup.cs
- ConnectionStringsSection.cs
- Literal.cs
- QilReference.cs
- LicenseManager.cs
- DeferrableContent.cs
- TemplateComponentConnector.cs
- InlineObject.cs
- TextDecorationUnitValidation.cs
- DataTemplateKey.cs
- DirectionalLight.cs
- Renderer.cs
- SoapCommonClasses.cs
- AddingNewEventArgs.cs
- ObjectCache.cs
- TreePrinter.cs
- XsltFunctions.cs
- BinarySerializer.cs
- _UncName.cs
- ConfigurationStrings.cs
- NetStream.cs
- QueueException.cs
- EventDescriptor.cs
- PeekCompletedEventArgs.cs
- ResourceDescriptionAttribute.cs
- ImageAttributes.cs
- PageRouteHandler.cs
- TimeEnumHelper.cs
- HashAlgorithm.cs
- TextEndOfParagraph.cs
- WindowsSysHeader.cs
- SqlDataSourceDesigner.cs
- PartialCachingControl.cs
- InvokeBase.cs
- EmptyStringExpandableObjectConverter.cs
- XmlChildNodes.cs
- DependencySource.cs
- HttpPostServerProtocol.cs
- EventLogger.cs
- TextCharacters.cs
- LeaseManager.cs
- InteropBitmapSource.cs
- GroupDescription.cs
- StartUpEventArgs.cs
- TextServicesLoader.cs
- WindowsGraphics.cs
- WhitespaceReader.cs