Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- BitmapImage.cs
- SchemaElementDecl.cs
- InputProcessorProfiles.cs
- ViewGenerator.cs
- FixedSOMTableRow.cs
- WpfXamlMember.cs
- RC2.cs
- BitmapEncoder.cs
- UInt32Storage.cs
- NameValuePair.cs
- BindingMAnagerBase.cs
- ToolStripControlHost.cs
- AutomationPropertyInfo.cs
- DataGridCellsPanel.cs
- Dictionary.cs
- CompressedStack.cs
- CanExecuteRoutedEventArgs.cs
- StorageSetMapping.cs
- Parser.cs
- IApplicationTrustManager.cs
- NetCodeGroup.cs
- SourceElementsCollection.cs
- SolidColorBrush.cs
- HelloOperation11AsyncResult.cs
- MenuItem.cs
- Color.cs
- WorkflowApplicationTerminatedException.cs
- RowsCopiedEventArgs.cs
- EntitySet.cs
- WhitespaceRuleReader.cs
- SettingsSection.cs
- PointCollectionConverter.cs
- ValidatorCollection.cs
- XPathSelfQuery.cs
- WCFServiceClientProxyGenerator.cs
- BaseAppDomainProtocolHandler.cs
- XmlAnyAttributeAttribute.cs
- TrustManagerMoreInformation.cs
- ToolboxItem.cs
- ActivityDesignerResources.cs
- TextEvent.cs
- StylusPointPropertyId.cs
- DesigntimeLicenseContext.cs
- DetailsViewDeletedEventArgs.cs
- InheritanceContextHelper.cs
- StylusPlugin.cs
- ImageIndexConverter.cs
- MsmqIntegrationInputChannel.cs
- TextSearch.cs
- COM2Enum.cs
- CompatibleIComparer.cs
- SetterBaseCollection.cs
- QuaternionAnimationBase.cs
- TraceXPathNavigator.cs
- ChannelProtectionRequirements.cs
- UInt64Converter.cs
- TableHeaderCell.cs
- SQlBooleanStorage.cs
- SmiEventStream.cs
- RepeatButtonAutomationPeer.cs
- AuthorizationSection.cs
- SelectionListComponentEditor.cs
- TextClipboardData.cs
- SQLUtility.cs
- KeyValuePairs.cs
- IChannel.cs
- MetadataProperty.cs
- CodeRemoveEventStatement.cs
- WindowsIdentity.cs
- ShaperBuffers.cs
- TraceSwitch.cs
- StopStoryboard.cs
- BufferAllocator.cs
- NameSpaceExtractor.cs
- CssTextWriter.cs
- SettingsBindableAttribute.cs
- CollaborationHelperFunctions.cs
- Blend.cs
- arclist.cs
- CheckBox.cs
- SqlUDTStorage.cs
- LineBreakRecord.cs
- Quaternion.cs
- AnnotationMap.cs
- HitTestWithPointDrawingContextWalker.cs
- Shape.cs
- Utils.cs
- VirtualPathProvider.cs
- SiteMap.cs
- AutoGeneratedField.cs
- InternalSendMessage.cs
- PrivilegedConfigurationManager.cs
- XamlWriter.cs
- ClientScriptManager.cs
- ObjectIDGenerator.cs
- ToReply.cs
- AddressUtility.cs
- XmlSchemaObject.cs
- Events.cs
- CodeStatement.cs