Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- SapiGrammar.cs
- KnownColorTable.cs
- DbProviderManifest.cs
- Vector3dCollection.cs
- XmlSubtreeReader.cs
- AudioLevelUpdatedEventArgs.cs
- FamilyTypeface.cs
- DependencyObjectProvider.cs
- EntityCommandDefinition.cs
- WindowsAltTab.cs
- _LazyAsyncResult.cs
- BufferedResponseStream.cs
- ListManagerBindingsCollection.cs
- CustomPopupPlacement.cs
- SymLanguageVendor.cs
- ResourceManager.cs
- TableLayoutRowStyleCollection.cs
- ChineseLunisolarCalendar.cs
- AnimationClockResource.cs
- DataBoundControlHelper.cs
- ConnectionStringsExpressionBuilder.cs
- SessionEndingCancelEventArgs.cs
- XmlnsCache.cs
- AssemblyBuilder.cs
- WebPartDescription.cs
- WebPartVerbCollection.cs
- ValidationRuleCollection.cs
- ExplicitDiscriminatorMap.cs
- SQLInt16.cs
- CultureInfoConverter.cs
- ScriptManagerProxy.cs
- ExitEventArgs.cs
- SchemaTableOptionalColumn.cs
- TransformGroup.cs
- PipelineModuleStepContainer.cs
- ValueExpressions.cs
- SqlXml.cs
- updatecommandorderer.cs
- StringAnimationUsingKeyFrames.cs
- DesignerHelpers.cs
- DefaultHttpHandler.cs
- Image.cs
- RijndaelManagedTransform.cs
- GetReadStreamResult.cs
- XamlSerializationHelper.cs
- ArglessEventHandlerProxy.cs
- PipeStream.cs
- Hash.cs
- SqlMetaData.cs
- Ipv6Element.cs
- MediaEntryAttribute.cs
- TextEndOfSegment.cs
- ClientRolePrincipal.cs
- AssemblyFilter.cs
- ArcSegment.cs
- ClearTypeHintValidation.cs
- SyntaxCheck.cs
- FileSecurity.cs
- AbstractDataSvcMapFileLoader.cs
- SourceFileBuildProvider.cs
- ToolZone.cs
- SpecularMaterial.cs
- NegationPusher.cs
- RenderingBiasValidation.cs
- SingleConverter.cs
- FontNamesConverter.cs
- TraceLevelStore.cs
- FontCacheUtil.cs
- Timeline.cs
- BordersPage.cs
- EventManager.cs
- CodeRemoveEventStatement.cs
- XamlHttpHandlerFactory.cs
- DataGridViewColumnConverter.cs
- SEHException.cs
- StylusPointPropertyId.cs
- iisPickupDirectory.cs
- SimpleRecyclingCache.cs
- WebPartRestoreVerb.cs
- GeneralTransform3DTo2DTo3D.cs
- EventDescriptor.cs
- DeploymentSectionCache.cs
- GenericQueueSurrogate.cs
- PersonalizationStateInfo.cs
- TypeValidationEventArgs.cs
- DataGridViewColumnEventArgs.cs
- EmptyEnumerable.cs
- CodeMethodMap.cs
- DrawToolTipEventArgs.cs
- PipelineDeploymentState.cs
- FillRuleValidation.cs
- _IPv6Address.cs
- Mappings.cs
- X509CertificateInitiatorClientCredential.cs
- LocationReferenceEnvironment.cs
- HtmlInputButton.cs
- StrokeRenderer.cs
- ForAllOperator.cs
- RsaEndpointIdentity.cs
- DesignTimeData.cs