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
- RotateTransform3D.cs
- _NativeSSPI.cs
- FontStretchConverter.cs
- TextRangeBase.cs
- GridViewRowPresenter.cs
- SR.cs
- ObjectDataSourceStatusEventArgs.cs
- DataGridViewBand.cs
- Util.cs
- DesignerResources.cs
- DataExchangeServiceBinder.cs
- DataContractSerializerElement.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- MarkerProperties.cs
- LocalizableAttribute.cs
- Operator.cs
- BinHexDecoder.cs
- TextEffect.cs
- GetWinFXPath.cs
- VerticalAlignConverter.cs
- DeploymentExceptionMapper.cs
- Part.cs
- IsolatedStoragePermission.cs
- XPathExpr.cs
- BehaviorEditorPart.cs
- DataSourceControlBuilder.cs
- WebPartHelpVerb.cs
- LinkedResource.cs
- ProviderMetadataCachedInformation.cs
- PointHitTestResult.cs
- PropertyDescriptor.cs
- GestureRecognizer.cs
- Config.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ImmutableObjectAttribute.cs
- TrackingQuery.cs
- recordstatefactory.cs
- KeyProperty.cs
- OdbcDataAdapter.cs
- NoClickablePointException.cs
- SerializableAttribute.cs
- Int32AnimationBase.cs
- CheckBoxFlatAdapter.cs
- Constants.cs
- PenThreadWorker.cs
- GenericPrincipal.cs
- IPGlobalProperties.cs
- AppDomainProtocolHandler.cs
- NameValueSectionHandler.cs
- ProviderCollection.cs
- AuthenticationConfig.cs
- ImageButton.cs
- CharacterHit.cs
- HttpListenerException.cs
- ResourceCodeDomSerializer.cs
- XmlILAnnotation.cs
- WSAddressing10ProblemHeaderQNameFault.cs
- SafeNativeMethods.cs
- ToolboxItemLoader.cs
- TransactionException.cs
- DirectoryInfo.cs
- PageThemeCodeDomTreeGenerator.cs
- SqlTopReducer.cs
- RIPEMD160Managed.cs
- SqlDataSourceStatusEventArgs.cs
- AssemblySettingAttributes.cs
- ControlPropertyNameConverter.cs
- DocumentPaginator.cs
- AccessibleObject.cs
- RolePrincipal.cs
- StylusLogic.cs
- WindowsGraphics.cs
- Html32TextWriter.cs
- AutoSizeComboBox.cs
- SerializationStore.cs
- SwitchLevelAttribute.cs
- DataSourceCache.cs
- KnownTypes.cs
- InfiniteTimeSpanConverter.cs
- filewebrequest.cs
- DataPagerField.cs
- ListParaClient.cs
- MenuItemStyleCollection.cs
- RegistryDataKey.cs
- ListParagraph.cs
- BrowserCapabilitiesFactoryBase.cs
- WindowsListViewGroup.cs
- DescendantOverDescendantQuery.cs
- TimeSpanConverter.cs
- PieceDirectory.cs
- Vector3DValueSerializer.cs
- StylusButtonEventArgs.cs
- ReadWriteObjectLock.cs
- GroupLabel.cs
- DbUpdateCommandTree.cs
- Pair.cs
- EmptyReadOnlyDictionaryInternal.cs
- MenuAdapter.cs
- DebugView.cs
- ScriptReferenceBase.cs