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
- ValidationHelpers.cs
- ResourcesChangeInfo.cs
- DefaultPropertyAttribute.cs
- SchemaSetCompiler.cs
- ValueProviderWrapper.cs
- FlowchartStart.xaml.cs
- RecognizerBase.cs
- WorkflowServiceOperationListItem.cs
- SqlDataReaderSmi.cs
- Thread.cs
- CompilerParameters.cs
- DataColumnCollection.cs
- FontFamilyIdentifier.cs
- InvalidDataException.cs
- DateBoldEvent.cs
- ButtonField.cs
- FloatUtil.cs
- TypeHelper.cs
- SortDescriptionCollection.cs
- SecureEnvironment.cs
- HttpModulesSection.cs
- Viewport3DAutomationPeer.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- OwnerDrawPropertyBag.cs
- DLinqAssociationProvider.cs
- GridViewAutomationPeer.cs
- _NegotiateClient.cs
- HorizontalAlignConverter.cs
- BaseParser.cs
- ObjectStorage.cs
- IndexingContentUnit.cs
- PropertySourceInfo.cs
- MetadataFile.cs
- BamlTreeUpdater.cs
- UserControl.cs
- ToolstripProfessionalRenderer.cs
- InternalConfigConfigurationFactory.cs
- BindValidator.cs
- DecimalAverageAggregationOperator.cs
- DispatcherTimer.cs
- PipelineComponent.cs
- util.cs
- TextBlockAutomationPeer.cs
- MachineKeySection.cs
- ObjectManager.cs
- ListItemsCollectionEditor.cs
- SubstitutionList.cs
- ForceCopyBuildProvider.cs
- HintTextConverter.cs
- HttpCookieCollection.cs
- XmlHelper.cs
- SupportsEventValidationAttribute.cs
- ZipIOCentralDirectoryFileHeader.cs
- ILGenerator.cs
- CommandDevice.cs
- WinEventHandler.cs
- TreeNodeCollection.cs
- COM2PropertyDescriptor.cs
- HtmlFormParameterReader.cs
- DesignerActionItem.cs
- SqlPersonalizationProvider.cs
- DefaultProxySection.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- Propagator.JoinPropagator.cs
- ActiveXHost.cs
- SoapDocumentMethodAttribute.cs
- HttpServerChannel.cs
- TreeIterators.cs
- Delay.cs
- ShaderRenderModeValidation.cs
- RangeValuePattern.cs
- DataReaderContainer.cs
- SqlClientWrapperSmiStream.cs
- ListBase.cs
- MetadataArtifactLoaderCompositeResource.cs
- NumberSubstitution.cs
- AnnotationObservableCollection.cs
- EntityReference.cs
- XmlSchemaObject.cs
- KeyTime.cs
- EntityUtil.cs
- SQLConvert.cs
- ObjectDataSourceDisposingEventArgs.cs
- WebMessageFormatHelper.cs
- DependencyPropertyConverter.cs
- DbDataAdapter.cs
- TableCell.cs
- QueryOutputWriterV1.cs
- ContextBase.cs
- SiteMapPath.cs
- SystemInfo.cs
- TypeTypeConverter.cs
- SystemIcmpV6Statistics.cs
- RowVisual.cs
- AnnotationComponentManager.cs
- StoreItemCollection.cs
- LogicalExpr.cs
- ToolStripContentPanelRenderEventArgs.cs
- NetworkCredential.cs
- Tokenizer.cs