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
- ProxyHwnd.cs
- RenameRuleObjectDialog.Designer.cs
- XmlMemberMapping.cs
- PeerPresenceInfo.cs
- WebPartZoneCollection.cs
- RtType.cs
- AssemblyAttributesGoHere.cs
- DynamicDataResources.Designer.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- SecurityCriticalDataForSet.cs
- ProvidersHelper.cs
- StylusSystemGestureEventArgs.cs
- AuthenticatedStream.cs
- EraserBehavior.cs
- TreeBuilder.cs
- BookmarkOptionsHelper.cs
- AbstractExpressions.cs
- Bold.cs
- ConnectorMovedEventArgs.cs
- RuleCache.cs
- EntitySqlQueryCacheEntry.cs
- DataGridDetailsPresenterAutomationPeer.cs
- HandleRef.cs
- CodeDOMProvider.cs
- DashStyles.cs
- LicenseManager.cs
- EntityContainerEntitySet.cs
- TextBlockAutomationPeer.cs
- VirtualDirectoryMappingCollection.cs
- MimeObjectFactory.cs
- ellipse.cs
- IndexingContentUnit.cs
- EntityDataSourceView.cs
- RichTextBoxDesigner.cs
- RangeContentEnumerator.cs
- DesignTimeData.cs
- CqlBlock.cs
- KeyNotFoundException.cs
- Lease.cs
- ActiveXSite.cs
- BindingManagerDataErrorEventArgs.cs
- XmlSerializerSection.cs
- ActionMismatchAddressingException.cs
- OutputCacheModule.cs
- FlowSwitchLink.cs
- hresults.cs
- UInt16.cs
- KnownTypeAttribute.cs
- CookieParameter.cs
- WebPartCancelEventArgs.cs
- SystemIcmpV4Statistics.cs
- FormatSettings.cs
- ToolboxCategory.cs
- Exception.cs
- HttpBufferlessInputStream.cs
- XXXOnTypeBuilderInstantiation.cs
- UIElement3D.cs
- ObjectDataSourceStatusEventArgs.cs
- precedingquery.cs
- PostBackTrigger.cs
- ValueCollectionParameterReader.cs
- NamedPipeTransportSecurityElement.cs
- SemanticResolver.cs
- sitestring.cs
- ButtonRenderer.cs
- EventSchemaTraceListener.cs
- LayoutManager.cs
- X509IssuerSerialKeyIdentifierClause.cs
- CLSCompliantAttribute.cs
- DataControlReferenceCollection.cs
- UnsafeNativeMethods.cs
- SafeSecurityHandles.cs
- XmlNamedNodeMap.cs
- Tokenizer.cs
- ClipboardProcessor.cs
- EllipticalNodeOperations.cs
- VectorCollection.cs
- AnimatedTypeHelpers.cs
- ButtonAutomationPeer.cs
- LoginAutoFormat.cs
- MemberDescriptor.cs
- RuleSetReference.cs
- StorageEntityTypeMapping.cs
- LoginCancelEventArgs.cs
- PrinterUnitConvert.cs
- XmlBuffer.cs
- XhtmlConformanceSection.cs
- NamespaceEmitter.cs
- Solver.cs
- HandlerMappingMemo.cs
- ImageConverter.cs
- Label.cs
- GacUtil.cs
- ManipulationDelta.cs
- Publisher.cs
- BrowsableAttribute.cs
- EntityDataSourceState.cs
- AdjustableArrowCap.cs
- Convert.cs
- XPathAncestorQuery.cs