Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- Geometry3D.cs
- cookiecollection.cs
- VirtualPathProvider.cs
- TriggerActionCollection.cs
- WindowsClientElement.cs
- FixedLineResult.cs
- Int64Animation.cs
- SiteMapDataSource.cs
- ProjectionPruner.cs
- SendDesigner.xaml.cs
- HeaderElement.cs
- Activator.cs
- TreeNode.cs
- RsaEndpointIdentity.cs
- safex509handles.cs
- MultiDataTrigger.cs
- RequestCacheEntry.cs
- ControlDesigner.cs
- Application.cs
- WmpBitmapDecoder.cs
- EqualityComparer.cs
- BufferBuilder.cs
- OAVariantLib.cs
- HebrewNumber.cs
- ChtmlSelectionListAdapter.cs
- EventLogPermissionEntryCollection.cs
- Assembly.cs
- ObservableCollection.cs
- RequestCacheEntry.cs
- HMACRIPEMD160.cs
- ReaderOutput.cs
- NullExtension.cs
- ToolStripRenderer.cs
- ProvidersHelper.cs
- TextEditorThreadLocalStore.cs
- CellParaClient.cs
- PrintControllerWithStatusDialog.cs
- PtsContext.cs
- CalendarBlackoutDatesCollection.cs
- DSGeneratorProblem.cs
- TextSelectionHelper.cs
- IntegerFacetDescriptionElement.cs
- ColumnBinding.cs
- LinqDataSourceStatusEventArgs.cs
- Transaction.cs
- DesignerLoader.cs
- MsmqChannelFactoryBase.cs
- ResXBuildProvider.cs
- DataColumnCollection.cs
- List.cs
- ConstraintStruct.cs
- ContentOperations.cs
- ShutDownListener.cs
- SvcMapFileLoader.cs
- XmlCodeExporter.cs
- TreeNodeStyleCollection.cs
- QuarticEase.cs
- MethodBuilder.cs
- DataBindingList.cs
- PrimitiveDataContract.cs
- BuiltInExpr.cs
- TextPatternIdentifiers.cs
- GenericsInstances.cs
- ProfileParameter.cs
- ScaleTransform3D.cs
- ZipIOModeEnforcingStream.cs
- OracleRowUpdatedEventArgs.cs
- DataBoundLiteralControl.cs
- ByteRangeDownloader.cs
- TimeoutException.cs
- SpellCheck.cs
- Tracer.cs
- BindingManagerDataErrorEventArgs.cs
- SystemFonts.cs
- ToggleButtonAutomationPeer.cs
- WebPartVerbCollection.cs
- SemanticResolver.cs
- QuotedPrintableStream.cs
- Metadata.cs
- ReadOnlyDataSourceView.cs
- ClientScriptItem.cs
- SettingsBindableAttribute.cs
- RecognitionEventArgs.cs
- EndpointDiscoveryMetadata11.cs
- DataSysAttribute.cs
- DBCommand.cs
- CheckBoxField.cs
- SimpleHandlerFactory.cs
- PropertyChangingEventArgs.cs
- figurelengthconverter.cs
- ChannelFactory.cs
- TemplatePropertyEntry.cs
- HebrewNumber.cs
- TrackingStringDictionary.cs
- DetailsViewAutoFormat.cs
- NullableDecimalMinMaxAggregationOperator.cs
- AutomationIdentifier.cs
- PolygonHotSpot.cs
- CachedTypeface.cs
- FontFamilyValueSerializer.cs