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
- DecoratedNameAttribute.cs
- CompositeCollectionView.cs
- ColorIndependentAnimationStorage.cs
- HtmlDocument.cs
- Options.cs
- SkinIDTypeConverter.cs
- CacheForPrimitiveTypes.cs
- TouchPoint.cs
- TemplateParser.cs
- ClientFactory.cs
- StylusPlugInCollection.cs
- XPathEmptyIterator.cs
- ApplicationSettingsBase.cs
- DataGridColumnStyleMappingNameEditor.cs
- IsolatedStorageFileStream.cs
- ApplicationBuildProvider.cs
- TableLayoutRowStyleCollection.cs
- Profiler.cs
- TextContainerChangeEventArgs.cs
- BlurEffect.cs
- PolicyManager.cs
- Ipv6Element.cs
- SecondaryIndexList.cs
- DataGridViewCellMouseEventArgs.cs
- CodeTypeDeclarationCollection.cs
- SystemPens.cs
- FileResponseElement.cs
- GlyphInfoList.cs
- CustomPopupPlacement.cs
- Helpers.cs
- ImageDrawing.cs
- FontWeights.cs
- WeakReferenceKey.cs
- AutomationElement.cs
- HtmlEmptyTagControlBuilder.cs
- IpcManager.cs
- AutomationProperties.cs
- ContentPathSegment.cs
- DesignerOptionService.cs
- UInt64Converter.cs
- EntityDesignerBuildProvider.cs
- MimeTypeAttribute.cs
- HttpCapabilitiesBase.cs
- EnumCodeDomSerializer.cs
- ProcessHostMapPath.cs
- ContractsBCL.cs
- RemoteCryptoRsaServiceProvider.cs
- FileDialog_Vista.cs
- BackoffTimeoutHelper.cs
- Underline.cs
- WaitingCursor.cs
- CatalogPart.cs
- QilVisitor.cs
- MediaScriptCommandRoutedEventArgs.cs
- XmlSchemaSimpleContentRestriction.cs
- TableLayoutPanelCellPosition.cs
- ImageDrawing.cs
- SimpleHandlerFactory.cs
- EndpointFilterProvider.cs
- PageCodeDomTreeGenerator.cs
- MetadataCache.cs
- XmlDataSource.cs
- WindowsGraphicsWrapper.cs
- EdmComplexPropertyAttribute.cs
- ProfileSettings.cs
- WebServiceHost.cs
- StateManagedCollection.cs
- UnSafeCharBuffer.cs
- TdsParameterSetter.cs
- UmAlQuraCalendar.cs
- BitmapEffectInput.cs
- Accessors.cs
- RelatedEnd.cs
- XPathNode.cs
- ChannelDispatcherCollection.cs
- XmlQualifiedName.cs
- UnaryNode.cs
- CompensatableSequenceActivity.cs
- GlyphRun.cs
- DependencyPropertyAttribute.cs
- RemotingException.cs
- SQLDecimal.cs
- Label.cs
- PrintPreviewControl.cs
- CharEnumerator.cs
- XmlIlVisitor.cs
- QilExpression.cs
- AsymmetricSignatureFormatter.cs
- SigningCredentials.cs
- OletxTransactionHeader.cs
- UnsafeNativeMethods.cs
- ConfigXmlText.cs
- PrintDialog.cs
- TreeNodeStyle.cs
- ToolStripItemCollection.cs
- SoapCodeExporter.cs
- ObjectDataSourceDisposingEventArgs.cs
- WindowsListViewItemStartMenu.cs
- SamlAuthenticationStatement.cs
- PreservationFileReader.cs