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
- HttpApplicationFactory.cs
- SubqueryRules.cs
- BitmapEffectDrawingContextWalker.cs
- HwndSource.cs
- AttachedProperty.cs
- DataGridColumnFloatingHeader.cs
- WindowsAuthenticationModule.cs
- EmptyEnumerable.cs
- SlotInfo.cs
- UnknownWrapper.cs
- SqlCacheDependencyDatabase.cs
- CultureData.cs
- ImageCollectionCodeDomSerializer.cs
- RowToFieldTransformer.cs
- ProvideValueServiceProvider.cs
- figurelengthconverter.cs
- DesignTimeParseData.cs
- ServicePoint.cs
- Padding.cs
- Rect3DConverter.cs
- DbResourceAllocator.cs
- WorkItem.cs
- EntityType.cs
- GeneralTransform3D.cs
- IImplicitResourceProvider.cs
- TextEffectCollection.cs
- ModulesEntry.cs
- InfoCardRSACryptoProvider.cs
- Domain.cs
- AccessViolationException.cs
- DataGridColumn.cs
- DataTableClearEvent.cs
- formatstringdialog.cs
- Psha1DerivedKeyGeneratorHelper.cs
- Stroke.cs
- ProcessHost.cs
- KnownBoxes.cs
- DataKey.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- CalculatedColumn.cs
- WebBaseEventKeyComparer.cs
- IsolationInterop.cs
- Label.cs
- ObjectDataSourceMethodEditor.cs
- NullableFloatAverageAggregationOperator.cs
- XmlNamespaceMappingCollection.cs
- WebPartDisplayMode.cs
- RenderContext.cs
- TypefaceCollection.cs
- ToolStripItem.cs
- ValueConversionAttribute.cs
- TextComposition.cs
- ConfigXmlAttribute.cs
- OleDbRowUpdatingEvent.cs
- Preprocessor.cs
- PrintEvent.cs
- MenuBase.cs
- MemberAccessException.cs
- SqlUserDefinedTypeAttribute.cs
- unsafenativemethodstextservices.cs
- HttpCacheVary.cs
- COAUTHIDENTITY.cs
- VariantWrapper.cs
- AsyncCompletedEventArgs.cs
- ElementMarkupObject.cs
- GeneralTransform3DTo2D.cs
- OleDbDataAdapter.cs
- ObjRef.cs
- LightweightEntityWrapper.cs
- StackBuilderSink.cs
- DescendantQuery.cs
- OrderToken.cs
- WindowsGraphics.cs
- SafeNativeMethodsCLR.cs
- ProgressBar.cs
- OleDbWrapper.cs
- PageParserFilter.cs
- LogicalTreeHelper.cs
- EdmProperty.cs
- CodeArrayCreateExpression.cs
- DynamicResourceExtension.cs
- Matrix3DValueSerializer.cs
- PerspectiveCamera.cs
- TextBox.cs
- AdministrationHelpers.cs
- FormView.cs
- Scalars.cs
- HttpRequest.cs
- MailWriter.cs
- InheritanceAttribute.cs
- Error.cs
- hebrewshape.cs
- Shape.cs
- AssociationProvider.cs
- FrugalList.cs
- ReferenceService.cs
- NotifyParentPropertyAttribute.cs
- MimeImporter.cs
- ImmutableCollection.cs
- ValueUtilsSmi.cs