Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ApplicationCommands.cs
- WebPartConnectionsEventArgs.cs
- XmlSchemaAnnotated.cs
- Set.cs
- LateBoundBitmapDecoder.cs
- SequentialActivityDesigner.cs
- SequentialWorkflowRootDesigner.cs
- SingleSelectRootGridEntry.cs
- PartitionedDataSource.cs
- Properties.cs
- ComponentDispatcherThread.cs
- FontFaceLayoutInfo.cs
- UndirectedGraph.cs
- CheckBoxAutomationPeer.cs
- Keyboard.cs
- ValidationError.cs
- FileAuthorizationModule.cs
- PropVariant.cs
- FindCriteriaApril2005.cs
- Misc.cs
- WindowsProgressbar.cs
- ConnectionStringSettings.cs
- FunctionDefinition.cs
- HttpContextWrapper.cs
- RangeValidator.cs
- TraceSection.cs
- OpenFileDialog.cs
- RtType.cs
- XPathNavigatorKeyComparer.cs
- SrgsDocumentParser.cs
- XmlSchema.cs
- PathData.cs
- CodeMemberProperty.cs
- TypeSemantics.cs
- OlePropertyStructs.cs
- CharacterHit.cs
- FixedFindEngine.cs
- BaseTemplateBuildProvider.cs
- BigInt.cs
- FreezableDefaultValueFactory.cs
- PlaceHolder.cs
- XamlInt32CollectionSerializer.cs
- RawStylusInputReport.cs
- TypeUtil.cs
- OrderedParallelQuery.cs
- OptimalTextSource.cs
- SqlError.cs
- Pool.cs
- TimelineGroup.cs
- PropertyOverridesDialog.cs
- SqlSupersetValidator.cs
- Win32MouseDevice.cs
- DataGridViewCellStyleChangedEventArgs.cs
- TextEditorSpelling.cs
- SafeCertificateStore.cs
- Decoder.cs
- KnownColorTable.cs
- DBConnectionString.cs
- FileRegion.cs
- coordinator.cs
- Scripts.cs
- BevelBitmapEffect.cs
- TraceContextEventArgs.cs
- DeploymentSection.cs
- SqlDataSourceConfigureFilterForm.cs
- SiteMapNodeItemEventArgs.cs
- BaseCodePageEncoding.cs
- TargetConverter.cs
- QueryCacheKey.cs
- Operand.cs
- CommonBehaviorsSection.cs
- DisplayClaim.cs
- EntityDataSourceChangingEventArgs.cs
- ImportCatalogPart.cs
- EmptyStringExpandableObjectConverter.cs
- ImageSource.cs
- HtmlEncodedRawTextWriter.cs
- BrushConverter.cs
- PublisherMembershipCondition.cs
- ConfigurationManagerInternal.cs
- XPathNodeIterator.cs
- WebPartRestoreVerb.cs
- XPathSelfQuery.cs
- RowToParametersTransformer.cs
- KeyInterop.cs
- CheckBox.cs
- NetCodeGroup.cs
- NotFiniteNumberException.cs
- odbcmetadatacollectionnames.cs
- ContractListAdapter.cs
- LiteralLink.cs
- Adorner.cs
- XmlCharCheckingReader.cs
- DelegatingHeader.cs
- MessageFilter.cs
- VisualTreeHelper.cs
- ArrayList.cs
- OutputCacheSettingsSection.cs
- AsyncResult.cs
- XmlSchemaCompilationSettings.cs