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
- RootBuilder.cs
- SubclassTypeValidatorAttribute.cs
- DbConnectionPoolIdentity.cs
- SelectionPattern.cs
- PagerSettings.cs
- MessageSmuggler.cs
- AdornerHitTestResult.cs
- ObjectDataSourceDisposingEventArgs.cs
- SharedPersonalizationStateInfo.cs
- SmiRecordBuffer.cs
- FontClient.cs
- WebPartConnectionsDisconnectVerb.cs
- FilteredAttributeCollection.cs
- CriticalHandle.cs
- NavigationFailedEventArgs.cs
- XXXOnTypeBuilderInstantiation.cs
- XmlNodeWriter.cs
- FloaterBaseParaClient.cs
- TypeConverterHelper.cs
- Calendar.cs
- WindowsFormsEditorServiceHelper.cs
- keycontainerpermission.cs
- DeviceSpecificChoiceCollection.cs
- DynamicDocumentPaginator.cs
- FrameworkTemplate.cs
- DockPanel.cs
- TextProperties.cs
- FactoryMaker.cs
- HttpListener.cs
- ReversePositionQuery.cs
- DataFormat.cs
- Function.cs
- ManifestResourceInfo.cs
- _CommandStream.cs
- DiscoveryVersionConverter.cs
- DatePickerDateValidationErrorEventArgs.cs
- LocatorGroup.cs
- GetPageCompletedEventArgs.cs
- CapiSymmetricAlgorithm.cs
- InfoCardArgumentException.cs
- CustomErrorsSection.cs
- HttpFileCollection.cs
- ResourcePermissionBaseEntry.cs
- ServicesUtilities.cs
- SQLMembershipProvider.cs
- XmlName.cs
- ResourceExpressionBuilder.cs
- ClassHandlersStore.cs
- HtmlValidationSummaryAdapter.cs
- PlainXmlWriter.cs
- ExpressionPrefixAttribute.cs
- ComponentResourceKeyConverter.cs
- AsyncCompletedEventArgs.cs
- XamlToRtfWriter.cs
- NativeObjectSecurity.cs
- BitmapSource.cs
- COM2ExtendedBrowsingHandler.cs
- ListDictionaryInternal.cs
- MetadataItem.cs
- Processor.cs
- BlurEffect.cs
- ChannelManager.cs
- PolyQuadraticBezierSegment.cs
- PeerMessageDispatcher.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- SystemResources.cs
- QueryResponse.cs
- XmlQueryCardinality.cs
- XamlSerializerUtil.cs
- UserControlBuildProvider.cs
- ServiceModelTimeSpanValidator.cs
- SelectingProviderEventArgs.cs
- VirtualizingStackPanel.cs
- WebPartActionVerb.cs
- TaskScheduler.cs
- PropertyTab.cs
- MimeMapping.cs
- DrawingVisual.cs
- BasicHttpBindingElement.cs
- SoapHeaderException.cs
- XmlSequenceWriter.cs
- AudioSignalProblemOccurredEventArgs.cs
- TemplateXamlParser.cs
- ToolTipService.cs
- HandleCollector.cs
- TypeReference.cs
- RMPermissions.cs
- SoapAttributeAttribute.cs
- AnnotationResource.cs
- ToolboxItemLoader.cs
- CompilerParameters.cs
- safesecurityhelperavalon.cs
- SafeEventLogWriteHandle.cs
- CommandBinding.cs
- InternalCache.cs
- ProfileSection.cs
- ParsedAttributeCollection.cs
- ResourceWriter.cs
- BitHelper.cs
- FactoryId.cs