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
- ParameterCollectionEditor.cs
- CollectionConverter.cs
- ScriptingScriptResourceHandlerSection.cs
- TrustManagerPromptUI.cs
- InternalRelationshipCollection.cs
- Equal.cs
- controlskin.cs
- PropertyStore.cs
- RenderTargetBitmap.cs
- SimpleHandlerFactory.cs
- PropertyChange.cs
- UnauthorizedWebPart.cs
- WsatServiceAddress.cs
- Base64Decoder.cs
- DataComponentNameHandler.cs
- PartialTrustVisibleAssembliesSection.cs
- PropertyMetadata.cs
- EntityDataSourceQueryBuilder.cs
- WindowsStatusBar.cs
- PageHandlerFactory.cs
- ShutDownListener.cs
- NamespaceQuery.cs
- Vector3DAnimation.cs
- LockCookie.cs
- XXXInfos.cs
- ClientScriptManager.cs
- Manipulation.cs
- CryptoConfig.cs
- QilInvokeLateBound.cs
- FormatterServices.cs
- SystemGatewayIPAddressInformation.cs
- RoutedPropertyChangedEventArgs.cs
- DataServiceHostFactory.cs
- ModelFunction.cs
- WebPartCatalogAddVerb.cs
- TimerEventSubscriptionCollection.cs
- DescendantQuery.cs
- Encoder.cs
- QuerySetOp.cs
- TCEAdapterGenerator.cs
- HitTestFilterBehavior.cs
- OpCodes.cs
- UITypeEditor.cs
- XmlSchemaObject.cs
- HierarchicalDataBoundControlAdapter.cs
- SerializationAttributes.cs
- XmlSchemaElement.cs
- ProxyHwnd.cs
- CustomAttributeSerializer.cs
- TransformerTypeCollection.cs
- StorageComplexTypeMapping.cs
- httpapplicationstate.cs
- ZipIOCentralDirectoryBlock.cs
- BuilderInfo.cs
- MsmqMessageProperty.cs
- ValueQuery.cs
- HtmlTableRow.cs
- AttributeXamlType.cs
- DefinitionBase.cs
- OciLobLocator.cs
- DesignTimeXamlWriter.cs
- OleDbPropertySetGuid.cs
- Listbox.cs
- HighlightComponent.cs
- ReadOnlyTernaryTree.cs
- TextCharacters.cs
- EffectiveValueEntry.cs
- XPathParser.cs
- EmptyControlCollection.cs
- VisualTarget.cs
- ChannelManagerBase.cs
- CodeNamespace.cs
- Floater.cs
- CodeMethodInvokeExpression.cs
- DataGridViewCellConverter.cs
- Exceptions.cs
- Drawing.cs
- brushes.cs
- DataSourceHelper.cs
- RubberbandSelector.cs
- TextElementEnumerator.cs
- MiniLockedBorderGlyph.cs
- CodeVariableReferenceExpression.cs
- Polyline.cs
- IISMapPath.cs
- AspProxy.cs
- WebPartVerbCollection.cs
- HttpGetServerProtocol.cs
- DebugInfoExpression.cs
- ContentElementAutomationPeer.cs
- DocumentPageViewAutomationPeer.cs
- Rule.cs
- SspiNegotiationTokenAuthenticator.cs
- EventSource.cs
- PerformanceCounterTraceRecord.cs
- ConsoleTraceListener.cs
- ParameterElement.cs
- OLEDB_Enum.cs
- UriTemplateVariablePathSegment.cs
- AddToCollection.cs