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
- DbReferenceCollection.cs
- relpropertyhelper.cs
- EllipseGeometry.cs
- ProfileGroupSettingsCollection.cs
- HelloMessageApril2005.cs
- BooleanFunctions.cs
- ListMarkerSourceInfo.cs
- ControlDesigner.cs
- XmlWriterSettings.cs
- CollectionViewGroupInternal.cs
- DataGridRelationshipRow.cs
- XmlAttributeProperties.cs
- SoapIncludeAttribute.cs
- UpdatePanel.cs
- EdmValidator.cs
- Rotation3DKeyFrameCollection.cs
- ComponentSerializationService.cs
- RawStylusInputCustomDataList.cs
- HostProtectionPermission.cs
- WebPartConnection.cs
- XmlElement.cs
- EntitySqlQueryState.cs
- EndpointDesigner.cs
- MsmqTransportSecurity.cs
- Fonts.cs
- WebProxyScriptElement.cs
- ToolStripControlHost.cs
- WebPartConnectionsCloseVerb.cs
- SQLSingle.cs
- WebPartZoneBase.cs
- hresults.cs
- XmlComment.cs
- LinearQuaternionKeyFrame.cs
- WebPart.cs
- DurationConverter.cs
- EntityDataSourceSelectingEventArgs.cs
- Light.cs
- ArrayWithOffset.cs
- CqlWriter.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- BitmapImage.cs
- TypeDelegator.cs
- IconConverter.cs
- WpfXamlLoader.cs
- ComplusTypeValidator.cs
- EncodingNLS.cs
- ComNativeDescriptor.cs
- BehaviorEditorPart.cs
- ProcessHostMapPath.cs
- MachineKeySection.cs
- ScriptComponentDescriptor.cs
- AsyncStreamReader.cs
- TextWriter.cs
- SByte.cs
- PackagePartCollection.cs
- hwndwrapper.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- DataSourceCache.cs
- MemoryMappedViewStream.cs
- itemelement.cs
- TypeReference.cs
- AssemblyCache.cs
- StringArrayConverter.cs
- Int16AnimationUsingKeyFrames.cs
- EventListenerClientSide.cs
- CodeDomConfigurationHandler.cs
- TagPrefixInfo.cs
- ISO2022Encoding.cs
- Operator.cs
- CodeAccessPermission.cs
- QuotedPairReader.cs
- ControlPropertyNameConverter.cs
- DispatcherFrame.cs
- Compiler.cs
- RectValueSerializer.cs
- JoinSymbol.cs
- ErrorsHelper.cs
- SslStreamSecurityElement.cs
- DataGrid.cs
- MulticastOption.cs
- TableParagraph.cs
- CompilerLocalReference.cs
- RequestCachePolicy.cs
- EntityDesignerDataSourceView.cs
- KeyFrames.cs
- RepeaterItemEventArgs.cs
- _NativeSSPI.cs
- RegexParser.cs
- TextTreePropertyUndoUnit.cs
- BufferedGenericXmlSecurityToken.cs
- KeyConstraint.cs
- Model3D.cs
- CmsInterop.cs
- RowUpdatedEventArgs.cs
- GACMembershipCondition.cs
- MimeBasePart.cs
- SafeArrayRankMismatchException.cs
- SafeLocalAllocation.cs
- PasswordRecovery.cs
- WebPartManager.cs