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
- Marshal.cs
- RoutedEventHandlerInfo.cs
- ImageSourceConverter.cs
- sqlmetadatafactory.cs
- FormatterServices.cs
- InternalCache.cs
- DataReceivedEventArgs.cs
- Select.cs
- SqlBulkCopyColumnMapping.cs
- HyperLinkField.cs
- SimpleParser.cs
- EncryptedKeyHashIdentifierClause.cs
- CatalogPartChrome.cs
- StateRuntime.cs
- wgx_render.cs
- MatchingStyle.cs
- PersonalizationEntry.cs
- QueryResponse.cs
- CodeChecksumPragma.cs
- TextRangeAdaptor.cs
- ConfigurationHelpers.cs
- WebPartMovingEventArgs.cs
- SQLResource.cs
- HostSecurityManager.cs
- SEHException.cs
- ParameterBuilder.cs
- SmiMetaData.cs
- FormsIdentity.cs
- IpcChannel.cs
- Debugger.cs
- XmlSignatureProperties.cs
- MemberDescriptor.cs
- ISCIIEncoding.cs
- ConnectionManagementElement.cs
- ItemList.cs
- TriggerCollection.cs
- KnownTypeAttribute.cs
- TreeNodeBinding.cs
- ModuleBuilder.cs
- MinimizableAttributeTypeConverter.cs
- SignedXml.cs
- EntityContainerEmitter.cs
- TypeHelper.cs
- SoapElementAttribute.cs
- Solver.cs
- ScalarRestriction.cs
- ModifierKeysConverter.cs
- SettingsAttributeDictionary.cs
- ProcessModuleDesigner.cs
- EntityDataSourceWrapperCollection.cs
- ApplicationBuildProvider.cs
- ListViewItem.cs
- RadioButtonBaseAdapter.cs
- XslVisitor.cs
- Message.cs
- TableLayoutSettings.cs
- Quaternion.cs
- ResolveMatchesMessage11.cs
- Debug.cs
- TextDocumentView.cs
- PointAnimation.cs
- GridPatternIdentifiers.cs
- DeliveryRequirementsAttribute.cs
- MetadataSet.cs
- SQLInt16Storage.cs
- ArgumentFixer.cs
- DbProviderSpecificTypePropertyAttribute.cs
- ProtectedConfiguration.cs
- RecordsAffectedEventArgs.cs
- JsonByteArrayDataContract.cs
- XsdCachingReader.cs
- CompositeDispatchFormatter.cs
- OleDbRowUpdatingEvent.cs
- UniqueContractNameValidationBehavior.cs
- DataSourceCache.cs
- TemplateContentLoader.cs
- PropertyMapper.cs
- EmissiveMaterial.cs
- HtmlTableCellCollection.cs
- MatrixKeyFrameCollection.cs
- UriSectionData.cs
- WindowsFormsHost.cs
- DbException.cs
- ipaddressinformationcollection.cs
- DataGridViewMethods.cs
- cookiecontainer.cs
- DesigntimeLicenseContext.cs
- PageParser.cs
- DateTimeOffsetConverter.cs
- InternalConfigEventArgs.cs
- WebServiceTypeData.cs
- serverconfig.cs
- CompiledXpathExpr.cs
- GlyphCache.cs
- DiscoveryMessageSequence.cs
- MobileSysDescriptionAttribute.cs
- ObjectPersistData.cs
- ComContractElementCollection.cs
- PartialTrustValidationBehavior.cs
- MediaTimeline.cs