Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ProtocolsConfigurationHandler.cs
- BookmarkManager.cs
- ObjectDataSourceSelectingEventArgs.cs
- ListViewInsertionMark.cs
- ClientTargetSection.cs
- CompositeTypefaceMetrics.cs
- ConnectionStringSettingsCollection.cs
- ToolStripAdornerWindowService.cs
- Vector3DCollectionValueSerializer.cs
- LineGeometry.cs
- CompilationSection.cs
- SqlColumnizer.cs
- HtmlAnchor.cs
- Int64Animation.cs
- LightweightCodeGenerator.cs
- RtfToXamlLexer.cs
- TextBounds.cs
- CryptoApi.cs
- BitStack.cs
- WebSysDescriptionAttribute.cs
- XmlDataFileEditor.cs
- ProvidePropertyAttribute.cs
- XsltCompileContext.cs
- WebConfigManager.cs
- ParseHttpDate.cs
- DataSourceBooleanViewSchemaConverter.cs
- CommonDialog.cs
- IndentTextWriter.cs
- Helpers.cs
- ProcessHostConfigUtils.cs
- BindingValueChangedEventArgs.cs
- ActivationWorker.cs
- TextServicesDisplayAttributePropertyRanges.cs
- OracleParameterBinding.cs
- RegexMatch.cs
- BitmapMetadataEnumerator.cs
- InstanceOwnerQueryResult.cs
- TagNameToTypeMapper.cs
- DeploymentExceptionMapper.cs
- SmiEventSink_DeferedProcessing.cs
- DataConnectionHelper.cs
- EncryptedPackageFilter.cs
- TimelineClockCollection.cs
- SoapAttributeAttribute.cs
- Signature.cs
- TrueReadOnlyCollection.cs
- KnownTypes.cs
- AssociationTypeEmitter.cs
- controlskin.cs
- TraceHwndHost.cs
- TextBox.cs
- ObjectManager.cs
- LinqDataView.cs
- HtmlValidationSummaryAdapter.cs
- GeometryCombineModeValidation.cs
- ScrollItemPatternIdentifiers.cs
- SqlBooleanMismatchVisitor.cs
- SafeHandles.cs
- SchemaManager.cs
- AnnotationResource.cs
- ToolStripRenderEventArgs.cs
- ManagedWndProcTracker.cs
- Icon.cs
- SerializationSectionGroup.cs
- DotAtomReader.cs
- StateItem.cs
- XmlChildNodes.cs
- WebPartConnectVerb.cs
- Random.cs
- FileEnumerator.cs
- RecommendedAsConfigurableAttribute.cs
- MsmqTransportSecurity.cs
- HatchBrush.cs
- MatrixConverter.cs
- ChannelDemuxer.cs
- TreeNodeStyleCollection.cs
- DefaultTextStore.cs
- PropertyGeneratedEventArgs.cs
- GenerateTemporaryTargetAssembly.cs
- CultureInfoConverter.cs
- XmlNamespaceDeclarationsAttribute.cs
- HScrollProperties.cs
- PingOptions.cs
- HtmlDocument.cs
- KeyGestureValueSerializer.cs
- NegotiateStream.cs
- BindToObject.cs
- SqlNotificationEventArgs.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- BrowserCapabilitiesFactoryBase.cs
- CommandCollectionEditor.cs
- BinaryUtilClasses.cs
- TargetFrameworkAttribute.cs
- MemberInfoSerializationHolder.cs
- WindowsRichEditRange.cs
- IApplicationTrustManager.cs
- DataGridViewIntLinkedList.cs
- ScrollData.cs
- Pkcs9Attribute.cs
- FrugalMap.cs