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
- ReferencedAssemblyResolver.cs
- MetadataArtifactLoaderCompositeResource.cs
- AnnotationDocumentPaginator.cs
- TemplateBamlTreeBuilder.cs
- ReadOnlyMetadataCollection.cs
- HandledMouseEvent.cs
- DebuggerAttributes.cs
- EventArgs.cs
- CodeEventReferenceExpression.cs
- BitmapData.cs
- DeferredRunTextReference.cs
- LineBreak.cs
- DataMisalignedException.cs
- DynamicAttribute.cs
- PerformanceCounterPermissionEntryCollection.cs
- RegexBoyerMoore.cs
- SolidBrush.cs
- DataServiceQueryOfT.cs
- ScriptingScriptResourceHandlerSection.cs
- ServerType.cs
- SqlNodeAnnotation.cs
- KnownTypes.cs
- KeyTimeConverter.cs
- InkPresenter.cs
- XmlAttributeAttribute.cs
- GuidelineCollection.cs
- UserControlParser.cs
- MergeFilterQuery.cs
- dataprotectionpermissionattribute.cs
- ExpressionPrefixAttribute.cs
- BordersPage.cs
- BufferedGraphicsContext.cs
- WsdlInspector.cs
- MappingSource.cs
- XmlEntityReference.cs
- _UncName.cs
- XmlUtil.cs
- AddressAlreadyInUseException.cs
- Input.cs
- XmlMtomWriter.cs
- MouseButton.cs
- activationcontext.cs
- ObsoleteAttribute.cs
- XamlParser.cs
- XhtmlBasicControlAdapter.cs
- SafeNativeMemoryHandle.cs
- MonitorWrapper.cs
- LineMetrics.cs
- DateTimeValueSerializer.cs
- EdmPropertyAttribute.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ControlOperationInvoker.cs
- NonParentingControl.cs
- DBSqlParser.cs
- Converter.cs
- DataGridViewCellValueEventArgs.cs
- XmlDocument.cs
- WebBrowserProgressChangedEventHandler.cs
- Typeface.cs
- ComponentDispatcher.cs
- XmlSchemaRedefine.cs
- ProfileGroupSettingsCollection.cs
- ThousandthOfEmRealPoints.cs
- TextRunProperties.cs
- HtmlButton.cs
- FormClosingEvent.cs
- SkewTransform.cs
- WaitForChangedResult.cs
- ScriptManager.cs
- DBCSCodePageEncoding.cs
- OutOfMemoryException.cs
- IndexerNameAttribute.cs
- HttpHandlerAction.cs
- EntityFunctions.cs
- ActiveDocumentEvent.cs
- AttachmentService.cs
- DuplicateWaitObjectException.cs
- XmlSchemaSimpleTypeUnion.cs
- InputMethod.cs
- HasCopySemanticsAttribute.cs
- BuilderPropertyEntry.cs
- XmlSchemaInclude.cs
- CheckBoxField.cs
- StrongNameMembershipCondition.cs
- ConfigViewGenerator.cs
- SendActivityDesignerTheme.cs
- DataTable.cs
- PropVariant.cs
- SelectionEditor.cs
- XmlSchemaSimpleType.cs
- Compiler.cs
- AutoResetEvent.cs
- InkSerializer.cs
- OlePropertyStructs.cs
- IndentedWriter.cs
- CodeExpressionCollection.cs
- CreateUserWizardStep.cs
- PartialTrustHelpers.cs
- InputBuffer.cs
- XPathAxisIterator.cs