Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- UnmanagedMemoryStream.cs
- SmiContextFactory.cs
- ArrayList.cs
- FixedElement.cs
- DeviceContext.cs
- ProxyHelper.cs
- TableRowsCollectionEditor.cs
- FixedSOMSemanticBox.cs
- SByte.cs
- TypeHelpers.cs
- FunctionMappingTranslator.cs
- XmlEntityReference.cs
- Keywords.cs
- Mutex.cs
- ButtonRenderer.cs
- StringUtil.cs
- VectorKeyFrameCollection.cs
- ZoneLinkButton.cs
- FormsIdentity.cs
- Label.cs
- HostProtectionPermission.cs
- AsyncParams.cs
- PostBackTrigger.cs
- UnsafeNativeMethods.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- SQLSingleStorage.cs
- ListBindingHelper.cs
- TypographyProperties.cs
- X509Certificate2.cs
- Ops.cs
- ProviderIncompatibleException.cs
- InputMethodStateTypeInfo.cs
- QuaternionIndependentAnimationStorage.cs
- FlowNode.cs
- TableRowCollection.cs
- SHA512Managed.cs
- ExtendedPropertiesHandler.cs
- RuntimeResourceSet.cs
- XslException.cs
- HostingPreferredMapPath.cs
- PrePrepareMethodAttribute.cs
- SessionEndingEventArgs.cs
- Interlocked.cs
- ChineseLunisolarCalendar.cs
- ConsoleCancelEventArgs.cs
- ChannelManager.cs
- Size.cs
- __Filters.cs
- DeferredTextReference.cs
- RedistVersionInfo.cs
- DBAsyncResult.cs
- HtmlImage.cs
- EntityKeyElement.cs
- ValidatingCollection.cs
- TagPrefixCollection.cs
- ElementNotEnabledException.cs
- InvalidPropValue.cs
- TaiwanCalendar.cs
- DataGridViewButtonColumn.cs
- ProxyAttribute.cs
- SQLBinaryStorage.cs
- WebPartConnectVerb.cs
- XmlSchemaObjectCollection.cs
- ComboBox.cs
- WindowsRichEdit.cs
- GridViewSelectEventArgs.cs
- SQLInt32Storage.cs
- HttpHandlerAction.cs
- DependencyPropertyValueSerializer.cs
- ColorConvertedBitmap.cs
- Invariant.cs
- Byte.cs
- RangeExpression.cs
- Command.cs
- ZeroOpNode.cs
- ObjectItemCollection.cs
- QilIterator.cs
- DateTimeFormatInfoScanner.cs
- EUCJPEncoding.cs
- HttpApplication.cs
- BuildProviderAppliesToAttribute.cs
- GridViewColumn.cs
- PersonalizationState.cs
- XmlWrappingReader.cs
- CustomAttributeFormatException.cs
- NonVisualControlAttribute.cs
- SettingsPropertyWrongTypeException.cs
- XmlSerializationWriter.cs
- DynamicObjectAccessor.cs
- ThreadStateException.cs
- XmlQueryStaticData.cs
- TextLineBreak.cs
- Row.cs
- TypographyProperties.cs
- AuthenticateEventArgs.cs
- SqlAliaser.cs
- ColorBlend.cs
- PropertyGrid.cs
- TextDecorationUnitValidation.cs
- GroupJoinQueryOperator.cs