Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / System / Windows / Media / DisableDpiAwarenessAttribute.cs / 1305600 / 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
- AssemblyCollection.cs
- MasterPageCodeDomTreeGenerator.cs
- DataGridTextBoxColumn.cs
- DiagnosticsConfigurationHandler.cs
- QilReference.cs
- ObjectViewQueryResultData.cs
- CompositeTypefaceMetrics.cs
- QfeChecker.cs
- DesignerObjectListAdapter.cs
- Journal.cs
- SqlRowUpdatingEvent.cs
- StylusButtonCollection.cs
- InstanceNameConverter.cs
- ZipPackage.cs
- CDSsyncETWBCLProvider.cs
- AbsoluteQuery.cs
- XmlSchemaAll.cs
- GroupLabel.cs
- AssemblyName.cs
- DataGrid.cs
- DeferredBinaryDeserializerExtension.cs
- ParameterElementCollection.cs
- DataSetMappper.cs
- CodeEventReferenceExpression.cs
- NullableIntMinMaxAggregationOperator.cs
- XmlFormatExtensionAttribute.cs
- XmlProcessingInstruction.cs
- RSAPKCS1SignatureFormatter.cs
- CancellationState.cs
- formatter.cs
- Tuple.cs
- ExceptionUtility.cs
- StyleCollectionEditor.cs
- AddInContractAttribute.cs
- SystemWebSectionGroup.cs
- RC2CryptoServiceProvider.cs
- ObjectManager.cs
- PopOutPanel.cs
- KeyValuePairs.cs
- DropDownButton.cs
- ThousandthOfEmRealPoints.cs
- HtmlInputRadioButton.cs
- TableLayoutPanelCellPosition.cs
- SafeNativeMethods.cs
- TypeExtensionConverter.cs
- ManipulationStartedEventArgs.cs
- XmlReflectionImporter.cs
- ListViewItemMouseHoverEvent.cs
- SettingsProviderCollection.cs
- ValidationHelpers.cs
- OperationGenerator.cs
- SecurityDescriptor.cs
- BitmapEffectInputConnector.cs
- JsonDeserializer.cs
- EventLogConfiguration.cs
- ObjectCloneHelper.cs
- DataGridViewHeaderCell.cs
- SqlHelper.cs
- ConnectionManagementElement.cs
- ScrollItemPatternIdentifiers.cs
- HiddenFieldDesigner.cs
- PenContexts.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- TabPanel.cs
- BadImageFormatException.cs
- ContentHostHelper.cs
- DriveNotFoundException.cs
- ConditionCollection.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- CaseKeyBox.xaml.cs
- Floater.cs
- PrintPreviewGraphics.cs
- GeneralTransform.cs
- LookupNode.cs
- StructuredProperty.cs
- CellRelation.cs
- ImageSourceTypeConverter.cs
- MulticastNotSupportedException.cs
- ContextMenu.cs
- XmlSchemaAnnotated.cs
- XsltLibrary.cs
- AssociationTypeEmitter.cs
- DataGridViewLinkColumn.cs
- DictionaryEditChange.cs
- xmlsaver.cs
- SecureUICommand.cs
- TimeSpan.cs
- MimeMapping.cs
- PenContext.cs
- DataServiceRequestException.cs
- PropertyManager.cs
- ListDictionary.cs
- XslTransform.cs
- GPStream.cs
- ExtensionElementCollection.cs
- QueryOptionExpression.cs
- DesignerToolboxInfo.cs
- MulticastNotSupportedException.cs
- TableProviderWrapper.cs
- TokenBasedSetEnumerator.cs