Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- UnSafeCharBuffer.cs
- BitmapScalingModeValidation.cs
- FileIOPermission.cs
- AssertSection.cs
- HijriCalendar.cs
- ProcessModule.cs
- ArgIterator.cs
- TextParagraphView.cs
- ComponentManagerBroker.cs
- PropertyDescriptor.cs
- indexingfiltermarshaler.cs
- RangeEnumerable.cs
- dbenumerator.cs
- GiveFeedbackEvent.cs
- WorkflowApplicationException.cs
- UriScheme.cs
- SystemFonts.cs
- PrimaryKeyTypeConverter.cs
- MembershipSection.cs
- OleDbParameter.cs
- GridViewRowEventArgs.cs
- SystemTcpStatistics.cs
- ApplicationBuildProvider.cs
- BuildProvider.cs
- Stack.cs
- FilteredReadOnlyMetadataCollection.cs
- DateTimeOffset.cs
- Descriptor.cs
- FontCacheLogic.cs
- ThemeDirectoryCompiler.cs
- UnitySerializationHolder.cs
- SQLDateTime.cs
- XslException.cs
- DirectionalLight.cs
- UInt16Converter.cs
- Crc32.cs
- SQlBooleanStorage.cs
- DataGridViewLinkColumn.cs
- TextBlock.cs
- StateManagedCollection.cs
- RowSpanVector.cs
- Merger.cs
- BinaryMessageEncodingBindingElement.cs
- PolygonHotSpot.cs
- BinaryMessageEncoder.cs
- SQLMoneyStorage.cs
- HttpRequestWrapper.cs
- DataService.cs
- ContextInformation.cs
- SystemPens.cs
- AsymmetricSignatureDeformatter.cs
- RC2.cs
- AutoCompleteStringCollection.cs
- Boolean.cs
- UIHelper.cs
- XmlILIndex.cs
- ReadOnlyDataSourceView.cs
- PageSettings.cs
- unsafenativemethodsother.cs
- _HelperAsyncResults.cs
- EventProxy.cs
- MaskDesignerDialog.cs
- PlatformNotSupportedException.cs
- XmlHierarchicalDataSourceView.cs
- ProjectionCamera.cs
- TargetPerspective.cs
- OpenTypeLayoutCache.cs
- PowerEase.cs
- GridViewDeleteEventArgs.cs
- ActivityExecutorDelegateInfo.cs
- SQLByteStorage.cs
- SqlBulkCopy.cs
- Deflater.cs
- AlphabetConverter.cs
- X509SecurityTokenAuthenticator.cs
- FontNameEditor.cs
- Configuration.cs
- GridView.cs
- WindowsGraphicsWrapper.cs
- DataGridItemEventArgs.cs
- DBPropSet.cs
- MetricEntry.cs
- ListDictionaryInternal.cs
- EncodingTable.cs
- CompiledRegexRunnerFactory.cs
- DetailsViewDeleteEventArgs.cs
- Vector3DAnimationUsingKeyFrames.cs
- ResourceIDHelper.cs
- ZoneMembershipCondition.cs
- Soap.cs
- BaseWebProxyFinder.cs
- LayoutTable.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- DateTimeOffsetConverter.cs
- XhtmlTextWriter.cs
- DataGridViewLinkColumn.cs
- RtfToXamlReader.cs
- DataGridColumnEventArgs.cs
- XsltArgumentList.cs
- BindStream.cs