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
- VariableExpressionConverter.cs
- XamlWriter.cs
- LoginCancelEventArgs.cs
- MaskDescriptor.cs
- StringArrayConverter.cs
- QueryBranchOp.cs
- ObjectAssociationEndMapping.cs
- TimeoutException.cs
- HttpStreamXmlDictionaryReader.cs
- ErrorBehavior.cs
- TypeRestriction.cs
- XmlSchemaRedefine.cs
- Emitter.cs
- CheckBox.cs
- JsonWriterDelegator.cs
- TypeListConverter.cs
- VisualProxy.cs
- FixedNode.cs
- ItemList.cs
- ProcessHostFactoryHelper.cs
- ConfigXmlDocument.cs
- CheckBoxList.cs
- OdbcConnectionStringbuilder.cs
- HttpCapabilitiesEvaluator.cs
- BufferBuilder.cs
- PeerNameRecordCollection.cs
- WeakEventManager.cs
- XmlReflectionMember.cs
- ListBase.cs
- ImageAnimator.cs
- CompositionTarget.cs
- TabItemWrapperAutomationPeer.cs
- VectorValueSerializer.cs
- StrokeNodeOperations2.cs
- MenuEventArgs.cs
- Timer.cs
- PtsHelper.cs
- SoapSchemaExporter.cs
- GenericTypeParameterBuilder.cs
- TouchesCapturedWithinProperty.cs
- SQLString.cs
- WindowInteropHelper.cs
- AccessibleObject.cs
- ToolStripSettings.cs
- ChangePassword.cs
- Avt.cs
- FamilyMap.cs
- DocumentsTrace.cs
- WorkItem.cs
- TextTreeUndoUnit.cs
- TrustManagerMoreInformation.cs
- PointF.cs
- SimpleType.cs
- ISAPIRuntime.cs
- NotifyCollectionChangedEventArgs.cs
- InvalidDataContractException.cs
- DecimalConstantAttribute.cs
- SurrogateDataContract.cs
- TextTreeFixupNode.cs
- SineEase.cs
- CompilationUtil.cs
- RoleManagerSection.cs
- RegistrationServices.cs
- XmlSchemaSubstitutionGroup.cs
- FixedSOMFixedBlock.cs
- GeneralTransform.cs
- BookmarkCallbackWrapper.cs
- JavaScriptString.cs
- ValidationSummary.cs
- BufferedGraphics.cs
- SchemaMapping.cs
- SafeNativeMethodsOther.cs
- SoapCodeExporter.cs
- WindowsUserNameCachingSecurityTokenAuthenticator.cs
- Freezable.cs
- BindingSource.cs
- PreviewPageInfo.cs
- Literal.cs
- PreservationFileReader.cs
- SystemInformation.cs
- DependencyPropertyKind.cs
- InstalledFontCollection.cs
- WmlCommandAdapter.cs
- MaterialCollection.cs
- DataAdapter.cs
- LogWriteRestartAreaState.cs
- RelationshipNavigation.cs
- DiagnosticTraceRecords.cs
- PrintController.cs
- CriticalExceptions.cs
- QilValidationVisitor.cs
- PathSegmentCollection.cs
- DTCTransactionManager.cs
- Debug.cs
- ManagementObject.cs
- ContextMenu.cs
- AttributeEmitter.cs
- RightsManagementEncryptedStream.cs
- SafeNativeMethodsMilCoreApi.cs
- XmlSchemaSimpleTypeList.cs