Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- Point3DKeyFrameCollection.cs
- ReadOnlyDataSourceView.cs
- EdmPropertyAttribute.cs
- EmptyControlCollection.cs
- NotificationContext.cs
- _RequestCacheProtocol.cs
- StyleTypedPropertyAttribute.cs
- PostBackTrigger.cs
- CompiledELinqQueryState.cs
- MethodBuilderInstantiation.cs
- _TLSstream.cs
- coordinatorscratchpad.cs
- DetailsViewRowCollection.cs
- DirectoryNotFoundException.cs
- ProbeMatchesCD1.cs
- ByteAnimationBase.cs
- FileSystemInfo.cs
- Base64Encoder.cs
- Polyline.cs
- filewebrequest.cs
- TypeForwardedToAttribute.cs
- SHA512.cs
- Point3DConverter.cs
- METAHEADER.cs
- XmlIlGenerator.cs
- JobCollate.cs
- DataGridCellsPanel.cs
- Point3DAnimationBase.cs
- RecognitionEventArgs.cs
- ListBoxItemAutomationPeer.cs
- BindingSource.cs
- ProcessThread.cs
- AudioSignalProblemOccurredEventArgs.cs
- ReaderOutput.cs
- __ConsoleStream.cs
- Error.cs
- Guid.cs
- BrowserTree.cs
- ItemsPresenter.cs
- ValidationRuleCollection.cs
- Border.cs
- XmlDocumentFieldSchema.cs
- ButtonPopupAdapter.cs
- Overlapped.cs
- CollectionViewSource.cs
- SelectorAutomationPeer.cs
- FlowDocumentReader.cs
- MemberInitExpression.cs
- BindToObject.cs
- DbProviderFactories.cs
- DataGridViewAccessibleObject.cs
- GroupItem.cs
- PageCodeDomTreeGenerator.cs
- TextBox.cs
- RuleValidation.cs
- TypeDescriptorContext.cs
- contentDescriptor.cs
- Number.cs
- PlanCompiler.cs
- figurelength.cs
- CompiledRegexRunnerFactory.cs
- CommandHelpers.cs
- IBuiltInEvidence.cs
- _CookieModule.cs
- NameValueSectionHandler.cs
- WebPartConnectionsCancelVerb.cs
- CompiledQueryCacheEntry.cs
- ServiceModelActivationSectionGroup.cs
- ResourcePool.cs
- HtmlControlPersistable.cs
- DataGridColumnCollection.cs
- ProgressChangedEventArgs.cs
- SnapLine.cs
- VirtualizedCellInfoCollection.cs
- TraceUtility.cs
- ServerValidateEventArgs.cs
- DefaultAutoFieldGenerator.cs
- DashStyles.cs
- KnownColorTable.cs
- TraceData.cs
- WebPartConnection.cs
- RequestCacheValidator.cs
- TripleDES.cs
- CollectionContainer.cs
- RefreshPropertiesAttribute.cs
- DataContractJsonSerializer.cs
- ReflectionTypeLoadException.cs
- XmlUtf8RawTextWriter.cs
- Path.cs
- ListViewItemSelectionChangedEvent.cs
- MDIControlStrip.cs
- ZoneButton.cs
- SqlAggregateChecker.cs
- TimeSpan.cs
- ListBindableAttribute.cs
- DataRow.cs
- AsymmetricKeyExchangeDeformatter.cs
- UpdateManifestForBrowserApplication.cs
- SqlConnectionStringBuilder.cs
- LinkTarget.cs