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
- CursorConverter.cs
- SqlParameter.cs
- XmlCharCheckingWriter.cs
- TextEditorTables.cs
- ResourceType.cs
- EdmProviderManifest.cs
- MetaType.cs
- RankException.cs
- XPathNavigatorKeyComparer.cs
- PreservationFileWriter.cs
- HttpModule.cs
- EntityDataReader.cs
- _HeaderInfoTable.cs
- DbExpressionVisitor_TResultType.cs
- AddInController.cs
- PartitionResolver.cs
- ToolZone.cs
- QueueProcessor.cs
- Soap12ProtocolReflector.cs
- XmlRawWriter.cs
- HandleCollector.cs
- DesignerEventService.cs
- PerformanceCounterPermissionEntry.cs
- DropShadowBitmapEffect.cs
- SafeSecurityHandles.cs
- TextRangeAdaptor.cs
- FormViewRow.cs
- EasingKeyFrames.cs
- DataServices.cs
- DuplicateWaitObjectException.cs
- DetailsViewUpdatedEventArgs.cs
- unsafenativemethodsother.cs
- DiscoveryClientChannelFactory.cs
- SafeNativeMethods.cs
- EpmSyndicationContentDeSerializer.cs
- SchemaObjectWriter.cs
- ToolStripPanelDesigner.cs
- DictionaryManager.cs
- TypedServiceOperationListItem.cs
- SwitchElementsCollection.cs
- Zone.cs
- ScriptControl.cs
- CodeAttributeDeclaration.cs
- ByteStack.cs
- CodeThrowExceptionStatement.cs
- CommandHelper.cs
- sortedlist.cs
- OpenFileDialog.cs
- TextDecoration.cs
- HttpTransportElement.cs
- RightsManagementInformation.cs
- StorageFunctionMapping.cs
- CompilerParameters.cs
- RuntimeArgument.cs
- WebMessageEncoderFactory.cs
- TreeView.cs
- NetworkInterface.cs
- ADMembershipUser.cs
- NavigateUrlConverter.cs
- XmlSchemaFacet.cs
- Formatter.cs
- BoundField.cs
- PropertyDescriptor.cs
- PartitionerStatic.cs
- UrlAuthorizationModule.cs
- TextParaLineResult.cs
- Typeface.cs
- CustomExpressionEventArgs.cs
- ProtocolsConfigurationEntry.cs
- DataSvcMapFile.cs
- TextSpan.cs
- RecordManager.cs
- SingleAnimation.cs
- MembershipSection.cs
- TableChangeProcessor.cs
- ConfigurationFileMap.cs
- RestClientProxyHandler.cs
- WpfPayload.cs
- DoubleConverter.cs
- BinaryFormatterWriter.cs
- ByteStack.cs
- WebServiceClientProxyGenerator.cs
- ToggleProviderWrapper.cs
- OdbcReferenceCollection.cs
- SystemIPGlobalStatistics.cs
- WebPartEditVerb.cs
- FormViewInsertEventArgs.cs
- Asn1Utilities.cs
- ToolStripContextMenu.cs
- UriParserTemplates.cs
- CalendarDay.cs
- WindowShowOrOpenTracker.cs
- WindowsListViewGroup.cs
- BlurBitmapEffect.cs
- JournalEntry.cs
- PeerEndPoint.cs
- DetailsViewDeletedEventArgs.cs
- WebProxyScriptElement.cs
- HTTPNotFoundHandler.cs
- CompilerInfo.cs