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
- CodeTypeOfExpression.cs
- PersonalizationProviderCollection.cs
- DesignerDataSourceView.cs
- CodeAttachEventStatement.cs
- MsmqIntegrationMessagePool.cs
- ReadOnlyTernaryTree.cs
- HostingPreferredMapPath.cs
- CustomLineCap.cs
- BaseProcessor.cs
- TaskFormBase.cs
- HealthMonitoringSection.cs
- Win32SafeHandles.cs
- InheritanceUI.cs
- CompressStream.cs
- _SafeNetHandles.cs
- CollectionBase.cs
- SetterBase.cs
- WebBrowserSiteBase.cs
- BitmapVisualManager.cs
- Stack.cs
- MulticastOption.cs
- ListItemConverter.cs
- FirstMatchCodeGroup.cs
- AttachedProperty.cs
- QuadraticBezierSegment.cs
- CountdownEvent.cs
- MeasureData.cs
- SpecialNameAttribute.cs
- ZipQueryOperator.cs
- SchemaNotation.cs
- FragmentQueryKB.cs
- WorkflowControlEndpoint.cs
- Token.cs
- ToolStripDropDownDesigner.cs
- MDIWindowDialog.cs
- CodeMethodReturnStatement.cs
- DataControlButton.cs
- ParameterToken.cs
- EventQueueState.cs
- Label.cs
- NativeMethods.cs
- SelectionProcessor.cs
- ImageClickEventArgs.cs
- EntityConnectionStringBuilderItem.cs
- EventProxy.cs
- Tag.cs
- DoubleStorage.cs
- HandoffBehavior.cs
- MasterPageCodeDomTreeGenerator.cs
- PrimaryKeyTypeConverter.cs
- PartitionResolver.cs
- XmlElementList.cs
- CfgRule.cs
- WebSysDisplayNameAttribute.cs
- TypeReference.cs
- ScrollEvent.cs
- ComboBoxRenderer.cs
- FontUnit.cs
- CompilerState.cs
- DesignerDataConnection.cs
- AutomationIdentifier.cs
- CodeTypeParameterCollection.cs
- AppDomain.cs
- ExpressionCopier.cs
- ObjectItemLoadingSessionData.cs
- ModifyActivitiesPropertyDescriptor.cs
- EntityContainerEntitySet.cs
- LocatorPart.cs
- EventManager.cs
- TextRunCache.cs
- Mouse.cs
- SqlDataSourceStatusEventArgs.cs
- PropertyPath.cs
- URL.cs
- WebConfigurationHost.cs
- ImageInfo.cs
- Internal.cs
- SqlInternalConnection.cs
- StopStoryboard.cs
- FixedPageStructure.cs
- ParallelTimeline.cs
- WmfPlaceableFileHeader.cs
- TcpClientSocketManager.cs
- DataListItem.cs
- TextProviderWrapper.cs
- ImageAttributes.cs
- ValuePattern.cs
- Visual3D.cs
- DataSetViewSchema.cs
- GroupBox.cs
- PageWrapper.cs
- SettingsSection.cs
- CombinedGeometry.cs
- Repeater.cs
- SamlAction.cs
- WebPartDisplayModeEventArgs.cs
- XmlText.cs
- HtmlInputSubmit.cs
- UIAgentAsyncBeginRequest.cs
- DataGridViewCellStyleContentChangedEventArgs.cs