Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- EncoderNLS.cs
- Int32CollectionValueSerializer.cs
- InfoCardTraceRecord.cs
- PathBox.cs
- RowToParametersTransformer.cs
- EmptyEnumerable.cs
- ConnectionsZone.cs
- NativeMethods.cs
- GeneralTransform3DTo2DTo3D.cs
- RoleServiceManager.cs
- FileUpload.cs
- ClientCultureInfo.cs
- AsnEncodedData.cs
- PointHitTestParameters.cs
- WindowsListViewItem.cs
- DeploymentExceptionMapper.cs
- LOSFormatter.cs
- WorkflowOwnershipException.cs
- HttpValueCollection.cs
- TraceProvider.cs
- MediaPlayer.cs
- PrintSystemException.cs
- configsystem.cs
- ContainerFilterService.cs
- PlatformCulture.cs
- SafeEventHandle.cs
- EFAssociationProvider.cs
- SynchronizationScope.cs
- BitmapEffect.cs
- ConfigXmlAttribute.cs
- SmiXetterAccessMap.cs
- BamlCollectionHolder.cs
- KeyValueInternalCollection.cs
- MouseOverProperty.cs
- ReadOnlyKeyedCollection.cs
- ListView.cs
- BuilderElements.cs
- TransactionBridgeSection.cs
- AlignmentXValidation.cs
- DataGridViewLinkColumn.cs
- HwndAppCommandInputProvider.cs
- NativeMethods.cs
- SiteMembershipCondition.cs
- DataTableExtensions.cs
- AvTraceFormat.cs
- GifBitmapEncoder.cs
- ClientSettingsStore.cs
- FileLevelControlBuilderAttribute.cs
- SimpleWorkerRequest.cs
- MessagingDescriptionAttribute.cs
- ParagraphVisual.cs
- SystemInfo.cs
- SelectingProviderEventArgs.cs
- Util.cs
- WsdlInspector.cs
- ContentOperations.cs
- BinaryNode.cs
- CqlGenerator.cs
- LayoutSettings.cs
- XmlAggregates.cs
- SHA384Managed.cs
- PaperSource.cs
- DataSysAttribute.cs
- DataGridHeaderBorder.cs
- BufferAllocator.cs
- Activity.cs
- Control.cs
- EncoderFallback.cs
- ReachSerializationCacheItems.cs
- WebEvents.cs
- ImageListImageEditor.cs
- SqlDataSourceTableQuery.cs
- ElementAction.cs
- TreeViewEvent.cs
- SafePointer.cs
- HasCopySemanticsAttribute.cs
- DeflateEmulationStream.cs
- Utils.cs
- MarshalByRefObject.cs
- Vector.cs
- BezierSegment.cs
- WebConfigurationManager.cs
- SelectQueryOperator.cs
- SqlDataSourceSummaryPanel.cs
- TypeConvertions.cs
- CodePropertyReferenceExpression.cs
- MetadataCache.cs
- XmlAttributeAttribute.cs
- File.cs
- MetaColumn.cs
- HtmlInputFile.cs
- DrawingImage.cs
- ImmutablePropertyDescriptorGridEntry.cs
- SqlParameterizer.cs
- HostedElements.cs
- DbConnectionPoolGroupProviderInfo.cs
- UriPrefixTable.cs
- StrokeNodeEnumerator.cs
- DataTableReader.cs
- RadialGradientBrush.cs