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
- CodeNamespaceImportCollection.cs
- FrameworkTemplate.cs
- DependencySource.cs
- DoubleLinkListEnumerator.cs
- TransportSecurityHelpers.cs
- AutomationElementCollection.cs
- iisPickupDirectory.cs
- ValidateNames.cs
- SchemaImporterExtensionElement.cs
- SQLInt32.cs
- AssemblyHash.cs
- StringFunctions.cs
- QilScopedVisitor.cs
- WebPartDisplayModeCancelEventArgs.cs
- SingleAnimationUsingKeyFrames.cs
- ListItemParagraph.cs
- TabletCollection.cs
- GenericArgumentsUpdater.cs
- OleDbErrorCollection.cs
- TakeQueryOptionExpression.cs
- EventDescriptorCollection.cs
- PopOutPanel.cs
- SecurityTokenRequirement.cs
- OutputWindow.cs
- HtmlLink.cs
- SoapAttributeOverrides.cs
- DataSourceControlBuilder.cs
- UnsafeNativeMethods.cs
- InvokePatternIdentifiers.cs
- HtmlString.cs
- WebPartDescriptionCollection.cs
- ToolBarButton.cs
- DiscoveryVersionConverter.cs
- HttpPostedFile.cs
- sqlmetadatafactory.cs
- TcpTransportManager.cs
- Line.cs
- LambdaCompiler.Expressions.cs
- AssemblyCollection.cs
- FamilyTypefaceCollection.cs
- ToolStripDropDownClosedEventArgs.cs
- ParameterCollection.cs
- DocobjHost.cs
- ObjectDataSourceDisposingEventArgs.cs
- AnnotationResourceChangedEventArgs.cs
- LogLogRecord.cs
- ApplicationActivator.cs
- EdmItemCollection.cs
- ParagraphResult.cs
- Currency.cs
- ExpressionConverter.cs
- TextBoxLine.cs
- EventlogProvider.cs
- SchemaCollectionPreprocessor.cs
- SiteMap.cs
- XPathAncestorQuery.cs
- FormViewInsertEventArgs.cs
- SettingsProviderCollection.cs
- ScrollBarAutomationPeer.cs
- EntityDataSourceViewSchema.cs
- CompositeDataBoundControl.cs
- KnownBoxes.cs
- PassportAuthentication.cs
- ExpressionEditorAttribute.cs
- TypeConverterAttribute.cs
- LambdaReference.cs
- SafeNativeMethods.cs
- IndicShape.cs
- RealizationDrawingContextWalker.cs
- StringArrayConverter.cs
- RtType.cs
- Property.cs
- PerspectiveCamera.cs
- FrameworkContextData.cs
- SectionRecord.cs
- WindowsClaimSet.cs
- QueryExpression.cs
- ErrorView.xaml.cs
- ExternalFile.cs
- ZoneButton.cs
- Freezable.cs
- PathGeometry.cs
- DataServiceResponse.cs
- WindowsAuthenticationModule.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- PropertyStore.cs
- Rect.cs
- FieldNameLookup.cs
- FontCacheUtil.cs
- ResolvedKeyFrameEntry.cs
- ExpressionBuilder.cs
- Dynamic.cs
- AttachedPropertyMethodSelector.cs
- ListItemCollection.cs
- X509UI.cs
- Propagator.JoinPropagator.cs
- ModelServiceImpl.cs
- ActivityWithResultValueSerializer.cs
- BinaryObjectInfo.cs
- DbConnectionPoolOptions.cs