Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Themes / Shared / Microsoft / Windows / Themes / PlatformCulture.cs / 1 / PlatformCulture.cs
//---------------------------------------------------------------------------- // File: CurrentWPFCulture.cs // // Description: // Helper class that allows access to localized values based on the current WPF culture. // // Copyright (C) 2006 by Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System.Diagnostics; using System.Globalization; using System.Windows; using System; namespace Microsoft.Windows.Themes { ////// Public class used to expose some properties of the culture /// the platform is localized to. /// public static class PlatformCulture { ////// FlowDirection of the culture the platform is localized to. /// public static FlowDirection FlowDirection { get { if (_platformCulture == null) { _platformCulture = MS.Internal.PlatformCulture.Value; } Debug.Assert(_platformCulture != null); return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight; } } private static CultureInfo _platformCulture; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // File: CurrentWPFCulture.cs // // Description: // Helper class that allows access to localized values based on the current WPF culture. // // Copyright (C) 2006 by Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System.Diagnostics; using System.Globalization; using System.Windows; using System; namespace Microsoft.Windows.Themes { ////// Public class used to expose some properties of the culture /// the platform is localized to. /// public static class PlatformCulture { ////// FlowDirection of the culture the platform is localized to. /// public static FlowDirection FlowDirection { get { if (_platformCulture == null) { _platformCulture = MS.Internal.PlatformCulture.Value; } Debug.Assert(_platformCulture != null); return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight; } } private static CultureInfo _platformCulture; } } // 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
- HandoffBehavior.cs
- ConfigurationValue.cs
- Schema.cs
- HandleCollector.cs
- XmlConverter.cs
- TypeLibConverter.cs
- SevenBitStream.cs
- X509ScopedServiceCertificateElement.cs
- XmlResolver.cs
- ImportContext.cs
- DataGridViewTextBoxColumn.cs
- RectAnimationClockResource.cs
- LineProperties.cs
- NotCondition.cs
- DefaultObjectMappingItemCollection.cs
- Win32Interop.cs
- HwndStylusInputProvider.cs
- ExpressionWriter.cs
- StructuralType.cs
- ChameleonKey.cs
- DurationConverter.cs
- CqlParser.cs
- TextViewElement.cs
- basenumberconverter.cs
- DBParameter.cs
- Function.cs
- PermissionListSet.cs
- AmbientProperties.cs
- RegistrySecurity.cs
- WsdlEndpointConversionContext.cs
- ThemeableAttribute.cs
- PageThemeBuildProvider.cs
- TripleDES.cs
- SqlMethodTransformer.cs
- ErrorWrapper.cs
- WebAdminConfigurationHelper.cs
- MinMaxParagraphWidth.cs
- TableLayoutPanelResizeGlyph.cs
- ApplicationTrust.cs
- ViewManager.cs
- OletxTransactionManager.cs
- InkCanvasAutomationPeer.cs
- dataprotectionpermissionattribute.cs
- BitmapEffectOutputConnector.cs
- ConsumerConnectionPointCollection.cs
- BindingBase.cs
- Help.cs
- ContentPlaceHolder.cs
- OdbcTransaction.cs
- AgileSafeNativeMemoryHandle.cs
- ToolBarButton.cs
- Selection.cs
- Timer.cs
- EntityViewGenerationAttribute.cs
- XmlHierarchyData.cs
- SHA1CryptoServiceProvider.cs
- StdValidatorsAndConverters.cs
- LogicalExpressionTypeConverter.cs
- PropertyEmitterBase.cs
- ComponentResourceKeyConverter.cs
- BlobPersonalizationState.cs
- BuildDependencySet.cs
- propertytag.cs
- _SslState.cs
- SoapSchemaImporter.cs
- IIS7UserPrincipal.cs
- LongCountAggregationOperator.cs
- CodeTypeMemberCollection.cs
- SimpleHandlerFactory.cs
- BigInt.cs
- BufferAllocator.cs
- EmptyStringExpandableObjectConverter.cs
- ValueType.cs
- QueueTransferProtocol.cs
- CommandHelper.cs
- RubberbandSelector.cs
- ObjectSet.cs
- HierarchicalDataBoundControlAdapter.cs
- SafeNativeMethods.cs
- SqlDataAdapter.cs
- SemaphoreSecurity.cs
- Configuration.cs
- CodePrimitiveExpression.cs
- ClientApiGenerator.cs
- AdapterUtil.cs
- DataGridViewHitTestInfo.cs
- XmlEnumAttribute.cs
- InputBuffer.cs
- ObjectManager.cs
- AppearanceEditorPart.cs
- TextModifierScope.cs
- DesignerVerbCollection.cs
- DoubleIndependentAnimationStorage.cs
- CustomCredentialPolicy.cs
- MonitorWrapper.cs
- NonParentingControl.cs
- RequestCacheEntry.cs
- DbConnectionOptions.cs
- BitConverter.cs
- ExportOptions.cs