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
- TreeBuilder.cs
- JournalEntryListConverter.cs
- BoundsDrawingContextWalker.cs
- DeclarativeExpressionConditionDeclaration.cs
- IDQuery.cs
- DocumentPaginator.cs
- SystemFonts.cs
- SessionEndingEventArgs.cs
- CrossSiteScriptingValidation.cs
- DmlSqlGenerator.cs
- Flowchart.cs
- BitmapEffectGeneralTransform.cs
- sortedlist.cs
- TagMapInfo.cs
- ImageList.cs
- AudioFormatConverter.cs
- TrackBar.cs
- DetailsViewUpdatedEventArgs.cs
- XmlEntityReference.cs
- Transform.cs
- CalendarAutomationPeer.cs
- DragEvent.cs
- BuildTopDownAttribute.cs
- PropertyDescriptorCollection.cs
- HotSpotCollection.cs
- Funcletizer.cs
- XmlNodeChangedEventManager.cs
- EditingScopeUndoUnit.cs
- NativeMethods.cs
- ContourSegment.cs
- ContractCodeDomInfo.cs
- NegotiateStream.cs
- ConfigurationSectionCollection.cs
- XsltContext.cs
- BaseDataList.cs
- TraceHandler.cs
- XmlSchemaSubstitutionGroup.cs
- InterleavedZipPartStream.cs
- Control.cs
- DataGridLinkButton.cs
- Expressions.cs
- SqlDataSourceQuery.cs
- XmlSchemaResource.cs
- UnauthorizedAccessException.cs
- SHA384Managed.cs
- NavigationHelper.cs
- WebPartDisplayModeCollection.cs
- ACL.cs
- Util.cs
- SymmetricCryptoHandle.cs
- SlipBehavior.cs
- KeyedPriorityQueue.cs
- DocumentPageHost.cs
- MenuItem.cs
- ReceiveActivityDesigner.cs
- WebPartsPersonalizationAuthorization.cs
- ComplusTypeValidator.cs
- Margins.cs
- SoapRpcServiceAttribute.cs
- EntityKey.cs
- ProfilePropertySettings.cs
- XmlNodeReader.cs
- ObjectIDGenerator.cs
- Image.cs
- PatternMatchRules.cs
- EdmComplexTypeAttribute.cs
- ModelServiceImpl.cs
- SqlXml.cs
- DummyDataSource.cs
- XPathCompileException.cs
- ConstraintCollection.cs
- TreeNodeCollection.cs
- AffineTransform3D.cs
- MexNamedPipeBindingElement.cs
- Message.cs
- CodeObject.cs
- ObjectTag.cs
- ExpressionConverter.cs
- OleDbStruct.cs
- NullableFloatAverageAggregationOperator.cs
- GeometryDrawing.cs
- ZipFileInfo.cs
- CorrelationManager.cs
- WebServiceData.cs
- KnownBoxes.cs
- ExpressionNode.cs
- ProtocolsConfiguration.cs
- ConnectionsZone.cs
- IConvertible.cs
- ToolStripContainerActionList.cs
- webeventbuffer.cs
- RadialGradientBrush.cs
- X509CertificateClaimSet.cs
- Quad.cs
- UnsupportedPolicyOptionsException.cs
- TableCell.cs
- UIPermission.cs
- ErrorBehavior.cs
- XmlTextEncoder.cs
- HtmlWindowCollection.cs