Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------ // // 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
- PermissionListSet.cs
- DocumentXPathNavigator.cs
- Rectangle.cs
- TextEditor.cs
- StructuredCompositeActivityDesigner.cs
- Vector3DAnimation.cs
- IisTraceWebEventProvider.cs
- RegexParser.cs
- OLEDB_Enum.cs
- Point3DCollectionConverter.cs
- ProfileGroupSettingsCollection.cs
- XmlTypeMapping.cs
- WebBrowserSiteBase.cs
- ExpressionBinding.cs
- ThousandthOfEmRealPoints.cs
- ParseNumbers.cs
- TextEndOfLine.cs
- FillErrorEventArgs.cs
- SoapEnvelopeProcessingElement.cs
- XPathBinder.cs
- WinEventHandler.cs
- LongCountAggregationOperator.cs
- Button.cs
- SessionStateSection.cs
- TreeNodeMouseHoverEvent.cs
- ProgressPage.cs
- GraphicsContext.cs
- BufferedStream.cs
- Wildcard.cs
- DataServiceProviderMethods.cs
- MetabaseReader.cs
- SignatureResourcePool.cs
- DBCommandBuilder.cs
- GlyphManager.cs
- SQLMoney.cs
- PageCodeDomTreeGenerator.cs
- DataGridAutoFormatDialog.cs
- CheckoutException.cs
- SqlNodeTypeOperators.cs
- ScriptResourceAttribute.cs
- ThemeableAttribute.cs
- XamlTypeMapper.cs
- BidOverLoads.cs
- VectorKeyFrameCollection.cs
- querybuilder.cs
- AnonymousIdentificationModule.cs
- SchemaType.cs
- SafeRegistryKey.cs
- HttpClientCertificate.cs
- SecureEnvironment.cs
- StateChangeEvent.cs
- ComponentResourceManager.cs
- IODescriptionAttribute.cs
- HttpHandlerAction.cs
- MemoryFailPoint.cs
- QilBinary.cs
- UnitControl.cs
- DataGridSortCommandEventArgs.cs
- ThreadStateException.cs
- UserValidatedEventArgs.cs
- Int32Converter.cs
- XPathAncestorQuery.cs
- DataRelationCollection.cs
- FlowLayoutSettings.cs
- ApplicationGesture.cs
- ListControl.cs
- CompositeActivityTypeDescriptorProvider.cs
- StyleXamlParser.cs
- DataTableReaderListener.cs
- XmlNodeComparer.cs
- FontDialog.cs
- FtpRequestCacheValidator.cs
- EventLogPermission.cs
- DesignerDataRelationship.cs
- DispatcherEventArgs.cs
- ProxyWebPart.cs
- TypeDelegator.cs
- ZipIORawDataFileBlock.cs
- EdmPropertyAttribute.cs
- brushes.cs
- FormatterServices.cs
- AnnotationAuthorChangedEventArgs.cs
- ErrorWrapper.cs
- MemberPath.cs
- EntityTransaction.cs
- PKCS1MaskGenerationMethod.cs
- SecurityPolicySection.cs
- FullTextState.cs
- SmtpDateTime.cs
- BindingMAnagerBase.cs
- WindowsRebar.cs
- DataControlField.cs
- JumpList.cs
- RawStylusSystemGestureInputReport.cs
- RemoteWebConfigurationHost.cs
- TextEditorTyping.cs
- CheckableControlBaseAdapter.cs
- LinearKeyFrames.cs
- ListView.cs
- WebPartVerbCollection.cs