Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 [....]
//
//-----------------------------------------------------------------------
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
- HtmlEncodedRawTextWriter.cs
- DataControlFieldHeaderCell.cs
- ContextMenuAutomationPeer.cs
- SafeEventLogWriteHandle.cs
- WinFormsComponentEditor.cs
- InternalBase.cs
- X509RawDataKeyIdentifierClause.cs
- ScriptServiceAttribute.cs
- Separator.cs
- SystemIPGlobalProperties.cs
- MatrixCamera.cs
- NavigationService.cs
- CodeArrayIndexerExpression.cs
- ChannelBinding.cs
- ColorConverter.cs
- RefreshPropertiesAttribute.cs
- PointLight.cs
- ValueType.cs
- CreationContext.cs
- XmlCodeExporter.cs
- MessageSmuggler.cs
- MessageFilter.cs
- SocketInformation.cs
- InputScopeNameConverter.cs
- ConfigurationLocation.cs
- SiteMapNodeCollection.cs
- CompoundFileStorageReference.cs
- TranslateTransform3D.cs
- ClientScriptManager.cs
- ViewGenerator.cs
- SessionStateModule.cs
- AddInAttribute.cs
- HttpCacheParams.cs
- Error.cs
- FormClosingEvent.cs
- ExpressionEditorAttribute.cs
- UxThemeWrapper.cs
- DataGridViewCheckBoxColumn.cs
- TextViewBase.cs
- HttpRawResponse.cs
- RSAPKCS1SignatureFormatter.cs
- State.cs
- LambdaExpression.cs
- WebScriptServiceHost.cs
- RtType.cs
- SingleKeyFrameCollection.cs
- ContractValidationHelper.cs
- InternalControlCollection.cs
- XmlAnyAttributeAttribute.cs
- EditingScopeUndoUnit.cs
- ItemList.cs
- TraceHwndHost.cs
- SecurityPermission.cs
- SystemNetHelpers.cs
- EntityDataSourceContainerNameItem.cs
- ContentDefinition.cs
- EntityDataSourceDataSelectionPanel.cs
- MetricEntry.cs
- VisualSerializer.cs
- SimpleWorkerRequest.cs
- WindowCollection.cs
- TrustManagerMoreInformation.cs
- RichTextBox.cs
- GenerateHelper.cs
- ClassHandlersStore.cs
- ObjectListCommand.cs
- CancellationHandlerDesigner.cs
- GeometryModel3D.cs
- TargetException.cs
- SoapRpcServiceAttribute.cs
- ContextMenuAutomationPeer.cs
- GradientStopCollection.cs
- ConfigXmlAttribute.cs
- PermissionSetTriple.cs
- SessionPageStateSection.cs
- WorkflowInstanceExtensionManager.cs
- Hash.cs
- cookieexception.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- XmlNodeChangedEventArgs.cs
- ACE.cs
- KeyGestureConverter.cs
- EventProviderClassic.cs
- CheckBoxFlatAdapter.cs
- NoneExcludedImageIndexConverter.cs
- TreePrinter.cs
- ServiceNotStartedException.cs
- UnaryExpression.cs
- ContentTypeSettingClientMessageFormatter.cs
- IBuiltInEvidence.cs
- DrawListViewSubItemEventArgs.cs
- Properties.cs
- SimpleRecyclingCache.cs
- TabControlAutomationPeer.cs
- MailSettingsSection.cs
- Array.cs
- PageSetupDialog.cs
- ForeignKeyFactory.cs
- ResourceContainer.cs
- PriorityQueue.cs