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
- TableStyle.cs
- ContainerSelectorGlyph.cs
- FontInfo.cs
- WebEventCodes.cs
- HttpCapabilitiesEvaluator.cs
- UInt16.cs
- WebPartCatalogAddVerb.cs
- HTTPNotFoundHandler.cs
- XamlSerializerUtil.cs
- Configuration.cs
- CellCreator.cs
- NumberFormatter.cs
- EntityTypeEmitter.cs
- TypeHelpers.cs
- FilteredXmlReader.cs
- KeyMatchBuilder.cs
- CFStream.cs
- WithParamAction.cs
- CompoundFileIOPermission.cs
- StructuredTypeEmitter.cs
- DataServiceEntityAttribute.cs
- ValidationResult.cs
- EpmContentSerializer.cs
- Italic.cs
- Completion.cs
- SafeEventLogWriteHandle.cs
- Matrix.cs
- PropertyPushdownHelper.cs
- TabPageDesigner.cs
- SHA512.cs
- SqlFormatter.cs
- CacheVirtualItemsEvent.cs
- basevalidator.cs
- SqlNotificationRequest.cs
- UnSafeCharBuffer.cs
- SqlNodeAnnotation.cs
- HttpRequest.cs
- Msec.cs
- EmptyEnumerator.cs
- Utils.cs
- LabelEditEvent.cs
- RemotingAttributes.cs
- TTSEngineProxy.cs
- TableLayoutRowStyleCollection.cs
- SQLDecimalStorage.cs
- DebuggerAttributes.cs
- TransactionManager.cs
- DynamicDocumentPaginator.cs
- LoadMessageLogger.cs
- MetadataCache.cs
- CmsInterop.cs
- HttpApplication.cs
- Size3DValueSerializer.cs
- BrowserCapabilitiesFactory35.cs
- SoapFault.cs
- StylusPointPropertyInfo.cs
- WindowsToolbarItemAsMenuItem.cs
- HwndStylusInputProvider.cs
- HttpClientCertificate.cs
- Speller.cs
- selecteditemcollection.cs
- GestureRecognitionResult.cs
- EmptyEnumerable.cs
- Attachment.cs
- SQLConvert.cs
- RoleManagerSection.cs
- ContentTextAutomationPeer.cs
- DataMemberConverter.cs
- PreviewPageInfo.cs
- TextTrailingWordEllipsis.cs
- XmlSchemaElement.cs
- OutKeywords.cs
- NativeMethods.cs
- Int16KeyFrameCollection.cs
- KeyedCollection.cs
- X509SecurityTokenProvider.cs
- UnsafeNativeMethodsPenimc.cs
- TextElementEnumerator.cs
- CheckBox.cs
- RangeBase.cs
- MimeMultiPart.cs
- DataQuery.cs
- GridViewPageEventArgs.cs
- SHA384Managed.cs
- RegexReplacement.cs
- FixedLineResult.cs
- GB18030Encoding.cs
- XmlCharCheckingWriter.cs
- NameNode.cs
- RegexTree.cs
- ToolStripControlHost.cs
- ConfigXmlWhitespace.cs
- ServiceHostFactory.cs
- ContentFileHelper.cs
- MemberExpression.cs
- XmlConverter.cs
- LinqDataSourceStatusEventArgs.cs
- InternalBufferManager.cs
- EventHandlerList.cs
- SRGSCompiler.cs