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
- EditingCoordinator.cs
- NameGenerator.cs
- XPathNodeInfoAtom.cs
- _SingleItemRequestCache.cs
- PropertyPushdownHelper.cs
- selecteditemcollection.cs
- IntSecurity.cs
- StructuredTypeEmitter.cs
- Slider.cs
- FormParameter.cs
- ScrollableControl.cs
- RemotingException.cs
- ResXFileRef.cs
- ObjectNotFoundException.cs
- MatrixCamera.cs
- oledbconnectionstring.cs
- ApplicationSecurityInfo.cs
- CellParaClient.cs
- BitmapEffectRenderDataResource.cs
- Matrix3D.cs
- SafeViewOfFileHandle.cs
- EntityTemplateUserControl.cs
- ScaleTransform3D.cs
- ObjectDataSourceFilteringEventArgs.cs
- RoleGroupCollection.cs
- XmlQualifiedName.cs
- _LazyAsyncResult.cs
- EventBuilder.cs
- StandardBindingElement.cs
- AsyncCompletedEventArgs.cs
- XmlIncludeAttribute.cs
- ListManagerBindingsCollection.cs
- TcpTransportSecurity.cs
- Version.cs
- ToolStripSplitButton.cs
- UrlPath.cs
- EmptyStringExpandableObjectConverter.cs
- MdiWindowListStrip.cs
- EntityDataSourceConfigureObjectContextPanel.cs
- CompilerCollection.cs
- EntryWrittenEventArgs.cs
- ParallelDesigner.cs
- HitTestParameters.cs
- EventLogEntry.cs
- DropShadowBitmapEffect.cs
- XPathNodeIterator.cs
- WorkItem.cs
- GridViewCommandEventArgs.cs
- ServerIdentity.cs
- SingleAnimationUsingKeyFrames.cs
- RelationshipConverter.cs
- PtsPage.cs
- SqlConnectionPoolGroupProviderInfo.cs
- RuntimeIdentifierPropertyAttribute.cs
- AliasGenerator.cs
- odbcmetadatafactory.cs
- PreDigestedSignedInfo.cs
- TransmissionStrategy.cs
- RegexTree.cs
- CancelEventArgs.cs
- SrgsDocument.cs
- ProfileService.cs
- BaseDataBoundControl.cs
- WindowsAuthenticationModule.cs
- ConfigWriter.cs
- MiniConstructorInfo.cs
- AssemblyFilter.cs
- PenThreadPool.cs
- SqlVersion.cs
- ServiceHostingEnvironment.cs
- MailWriter.cs
- IPAddress.cs
- NullableDoubleAverageAggregationOperator.cs
- MenuScrollingVisibilityConverter.cs
- SubpageParagraph.cs
- RemoteAsymmetricSignatureFormatter.cs
- TrackingStringDictionary.cs
- HttpRequestCacheValidator.cs
- WindowsListViewItemCheckBox.cs
- SecurityChannelListener.cs
- Guid.cs
- MessageDecoder.cs
- FormsIdentity.cs
- FixedTextSelectionProcessor.cs
- Size3D.cs
- HandledEventArgs.cs
- Encoder.cs
- XmlSerializerNamespaces.cs
- TickBar.cs
- WebPartVerb.cs
- PathParser.cs
- XmlSchemaSimpleTypeList.cs
- ContentElement.cs
- AsyncCompletedEventArgs.cs
- ScheduleChanges.cs
- ContractCodeDomInfo.cs
- ProcessManager.cs
- PeerReferralPolicy.cs
- GraphicsPathIterator.cs
- PointAnimation.cs