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
- RuleSetBrowserDialog.cs
- UnsafeNativeMethodsCLR.cs
- PropertyPathConverter.cs
- IxmlLineInfo.cs
- Exceptions.cs
- ClientSettingsSection.cs
- DataGridItem.cs
- QueryResponse.cs
- BindingMAnagerBase.cs
- IntellisenseTextBox.cs
- SqlDataSourceCommandParser.cs
- IResourceProvider.cs
- RtfControlWordInfo.cs
- cache.cs
- AdornerDecorator.cs
- CornerRadiusConverter.cs
- URLAttribute.cs
- VerificationAttribute.cs
- Model3D.cs
- ButtonBaseAdapter.cs
- SqlUtil.cs
- StringPropertyBuilder.cs
- LinkClickEvent.cs
- DataBinding.cs
- SecurityException.cs
- SqlConnectionStringBuilder.cs
- EventToken.cs
- ApplicationBuildProvider.cs
- _IPv6Address.cs
- Opcode.cs
- TimelineGroup.cs
- LinkedResourceCollection.cs
- XmlLoader.cs
- ComponentSerializationService.cs
- SynchronizationScope.cs
- SpecularMaterial.cs
- WebPartConnectionsDisconnectVerb.cs
- Rules.cs
- _IPv4Address.cs
- DrawingVisual.cs
- ContainerUIElement3D.cs
- ClickablePoint.cs
- TypedElement.cs
- ProvideValueServiceProvider.cs
- ApplicationHost.cs
- ProxyWebPartManager.cs
- FilterQuery.cs
- FunctionImportMapping.cs
- DataGridViewCellStyleBuilderDialog.cs
- XmlHelper.cs
- Win32PrintDialog.cs
- DataGridViewRow.cs
- DirtyTextRange.cs
- Triplet.cs
- DataGridViewRowStateChangedEventArgs.cs
- TdsValueSetter.cs
- PrivateFontCollection.cs
- NativeMethods.cs
- ConnectionPoolManager.cs
- XamlBrushSerializer.cs
- TiffBitmapDecoder.cs
- XmlDataContract.cs
- ComponentConverter.cs
- UriSection.cs
- VirtualPathUtility.cs
- TextTreeUndo.cs
- Triangle.cs
- DesignerDataTable.cs
- ResourceIDHelper.cs
- BidirectionalDictionary.cs
- SpellerHighlightLayer.cs
- MimeParameter.cs
- CacheForPrimitiveTypes.cs
- FieldToken.cs
- SvcMapFileSerializer.cs
- WorkflowApplicationAbortedException.cs
- PersonalizableAttribute.cs
- SoapTypeAttribute.cs
- AvTrace.cs
- XmlDataProvider.cs
- EntityWrapper.cs
- TextModifier.cs
- FixedBufferAttribute.cs
- ModuleElement.cs
- FormatterServices.cs
- CachingHintValidation.cs
- RequestNavigateEventArgs.cs
- Pair.cs
- ImageIndexConverter.cs
- CreateUserErrorEventArgs.cs
- CommentEmitter.cs
- AvTraceFormat.cs
- Form.cs
- Fx.cs
- DataGridColumnDropSeparator.cs
- MouseGestureValueSerializer.cs
- CreateParams.cs
- ControlIdConverter.cs
- MetadataFile.cs
- TriggerActionCollection.cs