Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Themes / Shared / Microsoft / Windows / Themes / PlatformCulture.cs / 1305600 / 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
- ClientSponsor.cs
- OleDbConnectionFactory.cs
- GenericXmlSecurityTokenAuthenticator.cs
- AnnotationDocumentPaginator.cs
- BrushConverter.cs
- VisualBrush.cs
- ApplicationServiceHelper.cs
- DbExpressionBuilder.cs
- ConfigXmlElement.cs
- XmlDownloadManager.cs
- SemaphoreFullException.cs
- MarkupProperty.cs
- Delegate.cs
- ServerProtocol.cs
- KeyedCollection.cs
- HelloMessageApril2005.cs
- HttpProcessUtility.cs
- WebEvents.cs
- RtfControls.cs
- SendMessageChannelCache.cs
- SqlTriggerContext.cs
- XmlSchemaIdentityConstraint.cs
- PackageFilter.cs
- SystemIPv6InterfaceProperties.cs
- TranslateTransform.cs
- RequestBringIntoViewEventArgs.cs
- ProjectionNode.cs
- SQLMoney.cs
- XmlSerializer.cs
- MsmqInputSessionChannel.cs
- EventLogInformation.cs
- BrowserCapabilitiesFactory.cs
- SmtpDigestAuthenticationModule.cs
- BufferModesCollection.cs
- PiiTraceSource.cs
- TemplateColumn.cs
- Debug.cs
- MetabaseServerConfig.cs
- TextDecoration.cs
- OperationContractGenerationContext.cs
- SqlRowUpdatedEvent.cs
- MarshalByRefObject.cs
- ConstraintStruct.cs
- QilName.cs
- ExtensionElement.cs
- Evidence.cs
- XmlBinaryReader.cs
- AttributeProviderAttribute.cs
- DocumentGridContextMenu.cs
- RuleDefinitions.cs
- Control.cs
- XmlTypeMapping.cs
- EventPrivateKey.cs
- MemberDescriptor.cs
- HttpStreams.cs
- SqlBuffer.cs
- BatchStream.cs
- XmlTextWriter.cs
- XmlSchemaDocumentation.cs
- EntityCollection.cs
- FixedHighlight.cs
- TypeValidationEventArgs.cs
- ModifierKeysConverter.cs
- MultitargetUtil.cs
- ProcessStartInfo.cs
- ControlPropertyNameConverter.cs
- Transform3DCollection.cs
- ImageCodecInfoPrivate.cs
- RightsManagementEncryptedStream.cs
- InfoCardAsymmetricCrypto.cs
- ColumnMapTranslator.cs
- RegistrationServices.cs
- CharUnicodeInfo.cs
- DoubleAnimation.cs
- MonthCalendar.cs
- OverloadGroupAttribute.cs
- DataContractJsonSerializerOperationBehavior.cs
- StrokeNodeOperations2.cs
- PrivateFontCollection.cs
- DefaultBinder.cs
- Pkcs7Recipient.cs
- WsatTransactionInfo.cs
- AspNetRouteServiceHttpHandler.cs
- ObjRef.cs
- UTF32Encoding.cs
- DataGridCommandEventArgs.cs
- PackageDigitalSignatureManager.cs
- SqlRewriteScalarSubqueries.cs
- TransformDescriptor.cs
- Attributes.cs
- FormsAuthenticationUserCollection.cs
- SQLMoneyStorage.cs
- XPathNode.cs
- Translator.cs
- SiteMapSection.cs
- RequestResizeEvent.cs
- OleDbRowUpdatingEvent.cs
- AvTrace.cs
- StyleCollectionEditor.cs
- CodeGeneratorOptions.cs