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
- XsdBuilder.cs
- MatrixValueSerializer.cs
- COAUTHIDENTITY.cs
- NativeActivityTransactionContext.cs
- NegationPusher.cs
- SqlBuilder.cs
- HttpCacheParams.cs
- SqlNotificationRequest.cs
- LineServicesCallbacks.cs
- AudioException.cs
- GeneralTransform.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- WpfXamlLoader.cs
- PersonalizationProviderHelper.cs
- SelectionChangedEventArgs.cs
- TextBlockAutomationPeer.cs
- X509ServiceCertificateAuthentication.cs
- FigureParaClient.cs
- DataGridBoundColumn.cs
- TypeLibConverter.cs
- COM2ExtendedTypeConverter.cs
- ProtocolReflector.cs
- TextPenaltyModule.cs
- Validator.cs
- XamlSerializer.cs
- SystemParameters.cs
- UnionCodeGroup.cs
- ServiceNameElement.cs
- BufferedWebEventProvider.cs
- RTTypeWrapper.cs
- Constraint.cs
- ComEventsMethod.cs
- VirtualDirectoryMapping.cs
- XmlTextReaderImplHelpers.cs
- DbProviderManifest.cs
- DropShadowEffect.cs
- HyperLinkDataBindingHandler.cs
- CodeStatementCollection.cs
- FormViewInsertedEventArgs.cs
- GeneralTransform3D.cs
- CharacterMetrics.cs
- MultiView.cs
- WrappedIUnknown.cs
- SqlMetaData.cs
- Point3DConverter.cs
- EventProxy.cs
- EventLogPermissionEntry.cs
- StringCollectionEditor.cs
- EntityDataSourceValidationException.cs
- Point4DConverter.cs
- CustomWebEventKey.cs
- CalendarDay.cs
- Byte.cs
- _IPv6Address.cs
- AggregateNode.cs
- Polygon.cs
- AnnotationHighlightLayer.cs
- FocusChangedEventArgs.cs
- ErrorFormatter.cs
- _ProxyChain.cs
- RepeaterItem.cs
- TrackingStringDictionary.cs
- DataGridCell.cs
- SHA1CryptoServiceProvider.cs
- Bezier.cs
- AlphabeticalEnumConverter.cs
- QueryHandler.cs
- ILGenerator.cs
- GridViewRow.cs
- ArrayMergeHelper.cs
- RootDesignerSerializerAttribute.cs
- SqlClientWrapperSmiStreamChars.cs
- EventLogPermissionHolder.cs
- AutomationPatternInfo.cs
- Listen.cs
- RSAPKCS1SignatureDeformatter.cs
- ToReply.cs
- ChineseLunisolarCalendar.cs
- DecoderFallbackWithFailureFlag.cs
- KoreanCalendar.cs
- UriSection.cs
- StateBag.cs
- Drawing.cs
- DefaultExpression.cs
- TrustManager.cs
- OracleInfoMessageEventArgs.cs
- StaticResourceExtension.cs
- DataBindingExpressionBuilder.cs
- LinearGradientBrush.cs
- AsyncOperationManager.cs
- PixelFormatConverter.cs
- PropertyGridView.cs
- Context.cs
- sitestring.cs
- SafeProcessHandle.cs
- StaticFileHandler.cs
- PageVisual.cs
- DateTimeParse.cs
- IndexedEnumerable.cs
- UriSection.cs