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
- DockAndAnchorLayout.cs
- SetStateDesigner.cs
- RuleProcessor.cs
- DesignerOptions.cs
- StandardCommands.cs
- ConfigurationException.cs
- PerformanceCounterLib.cs
- Point3DCollection.cs
- FlowLayoutSettings.cs
- DataGridCell.cs
- SectionUpdates.cs
- GraphicsPath.cs
- SafeEventLogReadHandle.cs
- ChunkedMemoryStream.cs
- SqlServices.cs
- ICollection.cs
- InternalUserCancelledException.cs
- MethodBuilderInstantiation.cs
- ListViewItem.cs
- ColorConvertedBitmap.cs
- ServiceModelActivity.cs
- prompt.cs
- WebScriptServiceHostFactory.cs
- DiffuseMaterial.cs
- WebPartsPersonalization.cs
- Menu.cs
- FormatException.cs
- FocusWithinProperty.cs
- IncrementalHitTester.cs
- MemberPathMap.cs
- ServiceDurableInstance.cs
- EntityProviderServices.cs
- GridViewCancelEditEventArgs.cs
- XamlRtfConverter.cs
- HtmlGenericControl.cs
- FillErrorEventArgs.cs
- DataSetMappper.cs
- ChannelManager.cs
- FtpWebRequest.cs
- SQLMoneyStorage.cs
- IdentityModelDictionary.cs
- SqlDataSourceFilteringEventArgs.cs
- BulletDecorator.cs
- ClientTarget.cs
- Object.cs
- TypeElementCollection.cs
- LoginName.cs
- CacheMemory.cs
- DesignerUtils.cs
- CombinedGeometry.cs
- ValidationErrorEventArgs.cs
- ImmutableObjectAttribute.cs
- SpeakCompletedEventArgs.cs
- DelegateBodyWriter.cs
- SizeAnimationUsingKeyFrames.cs
- StateDesigner.cs
- TaiwanLunisolarCalendar.cs
- VirtualPathData.cs
- EntityDataSource.cs
- JoinTreeNode.cs
- AutomationIdentifier.cs
- AccessDataSourceView.cs
- HostedTcpTransportManager.cs
- BamlBinaryReader.cs
- TemplateLookupAction.cs
- WebEvents.cs
- SecurityState.cs
- AsyncResult.cs
- ValueTable.cs
- HttpHandlersInstallComponent.cs
- X509ChainPolicy.cs
- ContextStaticAttribute.cs
- ToolStripDropDownItem.cs
- _CookieModule.cs
- Win32Exception.cs
- KeyManager.cs
- OrderPreservingPipeliningSpoolingTask.cs
- TextWriter.cs
- SocketPermission.cs
- TextRangeEditLists.cs
- DesignerDataParameter.cs
- ApplicationSettingsBase.cs
- NetworkAddressChange.cs
- QuinticEase.cs
- DataSourceCacheDurationConverter.cs
- DefaultBindingPropertyAttribute.cs
- GridViewRowCollection.cs
- SoapFault.cs
- SqlRecordBuffer.cs
- ClientUtils.cs
- GatewayDefinition.cs
- MessageSmuggler.cs
- GlobalProxySelection.cs
- ConnectionPoint.cs
- FullTextBreakpoint.cs
- Stack.cs
- CompilationSection.cs
- ListItemCollection.cs
- XmlDigitalSignatureProcessor.cs
- SimpleTableProvider.cs