Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- BlobPersonalizationState.cs
- Application.cs
- NextPreviousPagerField.cs
- HtmlInputReset.cs
- ListControl.cs
- ImageFormat.cs
- InternalCache.cs
- WindowsSecurityTokenAuthenticator.cs
- EnumType.cs
- ImageUrlEditor.cs
- DeclarationUpdate.cs
- DateTimeAutomationPeer.cs
- PhysicalFontFamily.cs
- ObjectAnimationBase.cs
- StreamResourceInfo.cs
- x509store.cs
- InvalidAsynchronousStateException.cs
- FixedSOMLineCollection.cs
- EdmTypeAttribute.cs
- SharedPersonalizationStateInfo.cs
- UniformGrid.cs
- PartitionedStream.cs
- CodeMemberMethod.cs
- PermissionAttributes.cs
- ProcessStartInfo.cs
- EventMappingSettings.cs
- KnownTypesProvider.cs
- AmbientLight.cs
- Brush.cs
- NamespaceList.cs
- IChannel.cs
- AnnotationHighlightLayer.cs
- FastPropertyAccessor.cs
- SafeMILHandle.cs
- BitmapEffectState.cs
- SingleKeyFrameCollection.cs
- InputProviderSite.cs
- TableCell.cs
- XsltFunctions.cs
- FileInfo.cs
- Nullable.cs
- FontEmbeddingManager.cs
- Screen.cs
- DataGridViewComboBoxColumn.cs
- X509AsymmetricSecurityKey.cs
- VisualStyleInformation.cs
- ExpressionBindings.cs
- EventOpcode.cs
- EmptyEnumerator.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- SqlFormatter.cs
- SchemaElementLookUpTableEnumerator.cs
- GreenMethods.cs
- LocalBuilder.cs
- LambdaCompiler.Generated.cs
- TimeSpanMinutesConverter.cs
- DataGridViewLinkCell.cs
- MinimizableAttributeTypeConverter.cs
- TemplateInstanceAttribute.cs
- SoapExtensionTypeElement.cs
- EventArgs.cs
- NullRuntimeConfig.cs
- InternalTypeHelper.cs
- MissingSatelliteAssemblyException.cs
- PageHandlerFactory.cs
- SqlTopReducer.cs
- XsdValidatingReader.cs
- DbModificationClause.cs
- BinaryObjectReader.cs
- WinEventWrap.cs
- Bits.cs
- AttributeProviderAttribute.cs
- ObjectKeyFrameCollection.cs
- CommonProperties.cs
- Root.cs
- QilExpression.cs
- LongValidatorAttribute.cs
- XmlDataContract.cs
- ElementProxy.cs
- HiddenField.cs
- HttpModuleActionCollection.cs
- WarningException.cs
- TextDecorationCollection.cs
- MessageBox.cs
- NonParentingControl.cs
- ProcessInfo.cs
- PagePropertiesChangingEventArgs.cs
- LocalizationComments.cs
- DesignerVerbCollection.cs
- HttpModuleActionCollection.cs
- WebMessageEncodingBindingElement.cs
- RecordsAffectedEventArgs.cs
- StorageConditionPropertyMapping.cs
- X509DefaultServiceCertificateElement.cs
- ToolStripKeyboardHandlingService.cs
- Point3DCollection.cs
- ServiceMemoryGates.cs
- IconConverter.cs
- XmlSchemaSimpleContentRestriction.cs
- MulticastNotSupportedException.cs