Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- StaticSiteMapProvider.cs
- DataGridViewCellEventArgs.cs
- DiscreteKeyFrames.cs
- DependentTransaction.cs
- DataSvcMapFileSerializer.cs
- PrintPreviewGraphics.cs
- QilInvokeEarlyBound.cs
- PropertyFilterAttribute.cs
- ItemCheckEvent.cs
- SafeBitVector32.cs
- ValidationErrorInfo.cs
- DependencyProperty.cs
- ImpersonateTokenRef.cs
- XmlSchemaComplexContent.cs
- Privilege.cs
- FontWeightConverter.cs
- FixedBufferAttribute.cs
- StringStorage.cs
- GeneralTransform3DGroup.cs
- RelationshipConstraintValidator.cs
- TitleStyle.cs
- Cursors.cs
- ParserContext.cs
- ApplicationSecurityInfo.cs
- PeerService.cs
- DataGridPagingPage.cs
- DLinqAssociationProvider.cs
- ModelItemDictionary.cs
- QilLoop.cs
- UIElement3D.cs
- ListItemParagraph.cs
- EdmSchemaAttribute.cs
- BufferBuilder.cs
- PartialTrustVisibleAssembliesSection.cs
- SymbolTable.cs
- SqlGatherProducedAliases.cs
- DragDropHelper.cs
- HttpException.cs
- MenuItemStyleCollection.cs
- Point3D.cs
- InstanceNormalEvent.cs
- ResourceProviderFactory.cs
- IPAddressCollection.cs
- OleStrCAMarshaler.cs
- WizardForm.cs
- DateTimeParse.cs
- ExpressionBuilderCollection.cs
- PtsHelper.cs
- XmlChildEnumerator.cs
- PowerStatus.cs
- AddInActivator.cs
- OrderByBuilder.cs
- SystemThemeKey.cs
- StructuralCache.cs
- EdgeModeValidation.cs
- RightsManagementPermission.cs
- SystemThemeKey.cs
- PersonalizationProviderCollection.cs
- MobileTextWriter.cs
- XPathNavigatorReader.cs
- LambdaCompiler.Generated.cs
- AbandonedMutexException.cs
- ScriptManager.cs
- ControlCollection.cs
- ConstructorBuilder.cs
- MD5CryptoServiceProvider.cs
- TrustLevelCollection.cs
- AnnotationHighlightLayer.cs
- Mapping.cs
- HiddenFieldPageStatePersister.cs
- Base64Decoder.cs
- TextUtf8RawTextWriter.cs
- PolicyStatement.cs
- CodeEventReferenceExpression.cs
- Comparer.cs
- XmlDataSourceNodeDescriptor.cs
- RealProxy.cs
- SearchForVirtualItemEventArgs.cs
- ClrProviderManifest.cs
- CounterSetInstanceCounterDataSet.cs
- AttributeEmitter.cs
- DataStorage.cs
- XmlDataLoader.cs
- EntryIndex.cs
- UnsafeNativeMethods.cs
- HttpFormatExtensions.cs
- DataGridViewRow.cs
- ErrorLog.cs
- Queue.cs
- BezierSegment.cs
- ModelPerspective.cs
- AccessedThroughPropertyAttribute.cs
- ConfigurationStrings.cs
- AddressHeaderCollection.cs
- ObjectCacheSettings.cs
- SqlDataSourceFilteringEventArgs.cs
- ScrollEvent.cs
- ExeConfigurationFileMap.cs
- WebConfigManager.cs
- UserPreferenceChangingEventArgs.cs