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
- ControlAdapter.cs
- PeerResolverElement.cs
- ConfigurationManagerInternalFactory.cs
- TiffBitmapDecoder.cs
- TextCompositionEventArgs.cs
- ImageDrawing.cs
- ToolStripDesignerAvailabilityAttribute.cs
- HttpDictionary.cs
- ScopelessEnumAttribute.cs
- SqlSelectClauseBuilder.cs
- LogEntry.cs
- TypedServiceChannelBuilder.cs
- ToolStripSplitStackLayout.cs
- ConnectionConsumerAttribute.cs
- HashRepartitionEnumerator.cs
- PeerEndPoint.cs
- WebServiceEndpoint.cs
- WebPartConnectionsConnectVerb.cs
- CodeVariableDeclarationStatement.cs
- TranslateTransform.cs
- SignatureResourceHelper.cs
- BufferedReceiveElement.cs
- StorageTypeMapping.cs
- HtmlListAdapter.cs
- EntityDataSourceWizardForm.cs
- QilReference.cs
- Parameter.cs
- WebPartZoneBase.cs
- CredentialCache.cs
- BitmapFrameEncode.cs
- TypeExtensions.cs
- SecurityRuntime.cs
- SizeAnimationClockResource.cs
- StateMachine.cs
- XmlSchemaCompilationSettings.cs
- MessageDesigner.cs
- Helper.cs
- CheckBoxBaseAdapter.cs
- XmlSchemaImporter.cs
- RotateTransform.cs
- HttpModulesSection.cs
- TrackingStringDictionary.cs
- SchemaImporterExtensionsSection.cs
- XmlCompatibilityReader.cs
- ReturnType.cs
- TemplatePropertyEntry.cs
- EditorZone.cs
- Configuration.cs
- InheritanceContextHelper.cs
- DataBindingCollection.cs
- Int32AnimationUsingKeyFrames.cs
- OdbcRowUpdatingEvent.cs
- NameTable.cs
- OpCellTreeNode.cs
- AppLevelCompilationSectionCache.cs
- AttributeQuery.cs
- EmptyControlCollection.cs
- COSERVERINFO.cs
- FontUnit.cs
- TextSearch.cs
- UnsafeNativeMethods.cs
- RegexCharClass.cs
- SafeCryptHandles.cs
- XmlBinaryReader.cs
- ReadOnlyDataSource.cs
- AccessorTable.cs
- AnnotationService.cs
- CodeNamespace.cs
- MediaPlayerState.cs
- AsymmetricSignatureDeformatter.cs
- FileLogRecord.cs
- NullableFloatMinMaxAggregationOperator.cs
- ScriptResourceHandler.cs
- XmlDictionaryReader.cs
- Schedule.cs
- Set.cs
- ContextStack.cs
- UserControlBuildProvider.cs
- PeerUnsafeNativeCryptMethods.cs
- Popup.cs
- AbstractSvcMapFileLoader.cs
- Attribute.cs
- DesignTimeParseData.cs
- InvokePattern.cs
- SecurityRuntime.cs
- Button.cs
- X509Utils.cs
- autovalidator.cs
- ApplicationGesture.cs
- ViewBase.cs
- BackgroundFormatInfo.cs
- WS2007HttpBindingCollectionElement.cs
- Accessors.cs
- PrinterResolution.cs
- PingReply.cs
- FormatVersion.cs
- ScriptingWebServicesSectionGroup.cs
- TableLayoutSettings.cs
- RuleRefElement.cs
- QuadraticBezierSegment.cs