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
- CacheChildrenQuery.cs
- VirtualDirectoryMappingCollection.cs
- DataGridTableCollection.cs
- TableProvider.cs
- Font.cs
- StatusBar.cs
- WindowsListViewScroll.cs
- AttributeEmitter.cs
- ContactManager.cs
- UniqueConstraint.cs
- AuthenticationModuleElement.cs
- RightsManagementResourceHelper.cs
- PerformanceCountersElement.cs
- Page.cs
- BulletedListEventArgs.cs
- RangeBase.cs
- SqlClientWrapperSmiStreamChars.cs
- GroupItemAutomationPeer.cs
- BezierSegment.cs
- SystemColors.cs
- WeakHashtable.cs
- NativeRightsManagementAPIsStructures.cs
- basecomparevalidator.cs
- DataGridSortCommandEventArgs.cs
- EntityContainer.cs
- TypeHelpers.cs
- JsonEnumDataContract.cs
- DbConnectionPoolGroup.cs
- PeerUnsafeNativeCryptMethods.cs
- AxisAngleRotation3D.cs
- ConfigXmlElement.cs
- XmlSchemaDatatype.cs
- ToolStripDesignerAvailabilityAttribute.cs
- DoubleIndependentAnimationStorage.cs
- PageSetupDialog.cs
- RSAOAEPKeyExchangeDeformatter.cs
- DesignTimeValidationFeature.cs
- TdsParserHelperClasses.cs
- ItemsChangedEventArgs.cs
- InputMethodStateChangeEventArgs.cs
- XmlNamespaceMapping.cs
- Double.cs
- ProvideValueServiceProvider.cs
- SmiEventSink.cs
- CollectionBuilder.cs
- AccessorTable.cs
- ConsumerConnectionPoint.cs
- XmlChildNodes.cs
- ZipQueryOperator.cs
- MetadataPropertyAttribute.cs
- XmlUnspecifiedAttribute.cs
- TableColumnCollectionInternal.cs
- MediaTimeline.cs
- ContractNamespaceAttribute.cs
- ProcessThreadDesigner.cs
- CustomAttributeSerializer.cs
- FormViewDeleteEventArgs.cs
- ToolStripRenderer.cs
- WebEvents.cs
- EtwTrace.cs
- SearchForVirtualItemEventArgs.cs
- TypedTableGenerator.cs
- GenericEnumerator.cs
- ChangeTracker.cs
- AuthenticateEventArgs.cs
- XPathPatternParser.cs
- ResumeStoryboard.cs
- IdentityHolder.cs
- CompiledQuery.cs
- MemoryStream.cs
- DropDownButton.cs
- SchemaInfo.cs
- NonParentingControl.cs
- TextBox.cs
- WebBrowser.cs
- StrokeCollection.cs
- HttpWebRequestElement.cs
- HierarchicalDataSourceDesigner.cs
- ImageIndexConverter.cs
- InvokeGenerator.cs
- SafeFindHandle.cs
- FormsAuthenticationCredentials.cs
- IdentityManager.cs
- CqlWriter.cs
- ValuePattern.cs
- CompoundFileDeflateTransform.cs
- ConstructorNeedsTagAttribute.cs
- HashLookup.cs
- ParameterModifier.cs
- ExternalCalls.cs
- SafeUserTokenHandle.cs
- DataSourceCollectionBase.cs
- FlowDocumentFormatter.cs
- SafeFindHandle.cs
- PrePostDescendentsWalker.cs
- MultipartIdentifier.cs
- ToolStripItemRenderEventArgs.cs
- DataSourceSelectArguments.cs
- CodeAssignStatement.cs
- RequiredAttributeAttribute.cs