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
- WebPartsPersonalizationAuthorization.cs
- StylusPointCollection.cs
- QueryOperator.cs
- XmlDataSource.cs
- LoginDesigner.cs
- _IPv6Address.cs
- RefExpr.cs
- ExpressionBuilderContext.cs
- EntityContainerEmitter.cs
- XmlDesignerDataSourceView.cs
- BamlBinaryWriter.cs
- DataRecordObjectView.cs
- SamlSubject.cs
- ColorInterpolationModeValidation.cs
- HttpConfigurationSystem.cs
- ConfigXmlComment.cs
- DispatcherOperation.cs
- FormsAuthenticationModule.cs
- EmptyStringExpandableObjectConverter.cs
- basevalidator.cs
- RegexEditorDialog.cs
- XmlTextReader.cs
- mediaeventargs.cs
- URLAttribute.cs
- RuleSettings.cs
- SymLanguageVendor.cs
- SelectorItemAutomationPeer.cs
- WebServiceErrorEvent.cs
- InkCanvas.cs
- TriggerAction.cs
- TextViewDesigner.cs
- HtmlButton.cs
- Canonicalizers.cs
- SeekStoryboard.cs
- XmlValidatingReaderImpl.cs
- ZoneButton.cs
- OletxEnlistment.cs
- TableRow.cs
- SqlHelper.cs
- PageThemeCodeDomTreeGenerator.cs
- TransformCollection.cs
- PropertyState.cs
- Module.cs
- DecoderFallback.cs
- PartBasedPackageProperties.cs
- CaseCqlBlock.cs
- RoutedEventHandlerInfo.cs
- NameNode.cs
- ResourceExpression.cs
- WindowsSolidBrush.cs
- FtpWebResponse.cs
- SessionStateUtil.cs
- ZipIOLocalFileDataDescriptor.cs
- ObjectCache.cs
- AbstractDataSvcMapFileLoader.cs
- RequestDescription.cs
- BaseValidator.cs
- HyperLinkColumn.cs
- PrefixHandle.cs
- SupportingTokenSpecification.cs
- Int16KeyFrameCollection.cs
- BitmapCodecInfoInternal.cs
- TextEffectCollection.cs
- OdbcConnectionOpen.cs
- TextTreeRootTextBlock.cs
- VirtualPath.cs
- EntityContainerEntitySetDefiningQuery.cs
- RectangleGeometry.cs
- HMAC.cs
- SqlCacheDependencySection.cs
- Size3D.cs
- AutomationEventArgs.cs
- UInt16.cs
- XsltArgumentList.cs
- FlowLayoutSettings.cs
- WebPartAddingEventArgs.cs
- ClientBuildManagerCallback.cs
- InputLanguageCollection.cs
- Fault.cs
- RegularExpressionValidator.cs
- DateTimeFormat.cs
- CodeDomSerializerBase.cs
- WebZoneDesigner.cs
- UrlMapping.cs
- IdnMapping.cs
- BreakRecordTable.cs
- CapabilitiesRule.cs
- WebFormsRootDesigner.cs
- IsolatedStorageFileStream.cs
- X509ChainPolicy.cs
- HashUtility.cs
- ItemCheckEvent.cs
- RuntimeConfigLKG.cs
- HttpModulesSection.cs
- ParallelEnumerableWrapper.cs
- PropVariant.cs
- HotCommands.cs
- EpmCustomContentDeSerializer.cs
- ArraySegment.cs
- DemultiplexingDispatchMessageFormatter.cs