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
- SplayTreeNode.cs
- ParallelSeparator.xaml.cs
- NativeRightsManagementAPIsStructures.cs
- SqlDataSourceFilteringEventArgs.cs
- AutomationFocusChangedEventArgs.cs
- Column.cs
- BoundConstants.cs
- ImmutableClientRuntime.cs
- TransformValueSerializer.cs
- RepeatButton.cs
- StrokeIntersection.cs
- CodeDelegateInvokeExpression.cs
- RectValueSerializer.cs
- ChangeBlockUndoRecord.cs
- WindowsListView.cs
- InlineCollection.cs
- OperandQuery.cs
- Process.cs
- Application.cs
- XmlSchemaSequence.cs
- SessionPageStatePersister.cs
- WinCategoryAttribute.cs
- UndoManager.cs
- SyndicationSerializer.cs
- MD5.cs
- TraceHandler.cs
- ParseNumbers.cs
- ImageBrush.cs
- TreeNodeMouseHoverEvent.cs
- Point3DCollection.cs
- DockPattern.cs
- ProcessModuleCollection.cs
- ColorConvertedBitmapExtension.cs
- Variant.cs
- GreaterThanOrEqual.cs
- ValueHandle.cs
- FrameworkEventSource.cs
- precedingquery.cs
- xml.cs
- Logging.cs
- Rectangle.cs
- ConditionCollection.cs
- Asn1Utilities.cs
- InvalidComObjectException.cs
- StylusDownEventArgs.cs
- WebPartsPersonalizationAuthorization.cs
- EncryptedData.cs
- CodeIdentifier.cs
- ScrollableControlDesigner.cs
- LayoutTableCell.cs
- DragSelectionMessageFilter.cs
- DateTimeUtil.cs
- ProviderIncompatibleException.cs
- DesignerHelpers.cs
- WorkflowInstanceSuspendedRecord.cs
- Rect3D.cs
- NameValueFileSectionHandler.cs
- CodeTypeReference.cs
- LifetimeServices.cs
- DataGridColumnHeadersPresenter.cs
- WindowsScroll.cs
- UInt64Storage.cs
- _SSPISessionCache.cs
- QueryCacheKey.cs
- AnonymousIdentificationModule.cs
- SafeFindHandle.cs
- XmlProcessingInstruction.cs
- ToolStripManager.cs
- BufferedReadStream.cs
- StringUtil.cs
- ApplyImportsAction.cs
- CmsInterop.cs
- UxThemeWrapper.cs
- ViewValidator.cs
- ReadOnlyObservableCollection.cs
- InvokePattern.cs
- FileDialog_Vista_Interop.cs
- CollectionViewGroup.cs
- XmlBinaryWriter.cs
- TaskScheduler.cs
- ScopedKnownTypes.cs
- ThreadExceptionDialog.cs
- SafeFileMappingHandle.cs
- FontFamilyValueSerializer.cs
- ComboBoxRenderer.cs
- HostedTcpTransportManager.cs
- XmlSchemaSubstitutionGroup.cs
- SoapIgnoreAttribute.cs
- ProgressBarHighlightConverter.cs
- ReadOnlyDictionary.cs
- FrameworkElementFactory.cs
- CompareValidator.cs
- ToolBarTray.cs
- BadImageFormatException.cs
- SerializerDescriptor.cs
- DynamicRendererThreadManager.cs
- APCustomTypeDescriptor.cs
- TrackBar.cs
- DeferredBinaryDeserializerExtension.cs
- VisualTreeHelper.cs