Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / Tools / System.Activities.Presentation / System / Activities / Presentation / TextFormattingConverter.cs / 1305376 / TextFormattingConverter.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.Activities.Presentation { using System.Diagnostics; using System.Globalization; using System.Windows; using System.Windows.Data; using System.Activities.Presentation.Model; //Formats text strings internal sealed class TextFormattingConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (parameter is string) { return string.Format(culture, parameter as string, value); } else { return value.ToString(); } } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { throw FxTrace.Exception.AsError(new NotSupportedException()); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Metadata.cs
- LabelAutomationPeer.cs
- ObjectListDataBindEventArgs.cs
- AttributeAction.cs
- ComponentCollection.cs
- ToolStripDropDownClosingEventArgs.cs
- DocumentSequenceHighlightLayer.cs
- DataGridRowHeader.cs
- DynamicRendererThreadManager.cs
- OleDbParameterCollection.cs
- PackageStore.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- ListBindableAttribute.cs
- CreateUserWizard.cs
- SerialPort.cs
- webclient.cs
- ScaleTransform.cs
- WebException.cs
- ETagAttribute.cs
- _AutoWebProxyScriptEngine.cs
- MetafileHeaderWmf.cs
- XmlDocumentSerializer.cs
- ProcessModelSection.cs
- HostExecutionContextManager.cs
- CornerRadius.cs
- HelpInfo.cs
- PriorityQueue.cs
- BitmapCodecInfo.cs
- RelationshipConstraintValidator.cs
- CodeEventReferenceExpression.cs
- HttpHandlerActionCollection.cs
- WmlObjectListAdapter.cs
- GuidTagList.cs
- NavigationPropertyEmitter.cs
- XmlSchemaNotation.cs
- TreeNodeBinding.cs
- NavigationService.cs
- PageContent.cs
- Control.cs
- ImageAutomationPeer.cs
- IsolatedStorageException.cs
- HashCryptoHandle.cs
- ReadOnlyDataSourceView.cs
- NumberFunctions.cs
- DeferredBinaryDeserializerExtension.cs
- AuthenticatedStream.cs
- SchemaImporter.cs
- TokenBasedSet.cs
- HyperlinkAutomationPeer.cs
- Vector3D.cs
- ScaleTransform3D.cs
- HttpListenerContext.cs
- LineBreak.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- VScrollBar.cs
- ProfilePropertyNameValidator.cs
- NetworkAddressChange.cs
- NativeRecognizer.cs
- ComboBoxAutomationPeer.cs
- DecoderNLS.cs
- ReliabilityContractAttribute.cs
- SqlBooleanizer.cs
- ObjectViewFactory.cs
- NameObjectCollectionBase.cs
- Stopwatch.cs
- ObjectIDGenerator.cs
- KeyManager.cs
- MenuRendererStandards.cs
- WebBodyFormatMessageProperty.cs
- ResourceAttributes.cs
- BufferedGraphics.cs
- CompilerErrorCollection.cs
- WebPartAuthorizationEventArgs.cs
- ColumnWidthChangedEvent.cs
- DataTrigger.cs
- ComponentCommands.cs
- ProcessHost.cs
- BufferedMessageData.cs
- RegionInfo.cs
- ConditionalBranch.cs
- Atom10FormatterFactory.cs
- FeatureAttribute.cs
- COM2PictureConverter.cs
- XmlSchemaAppInfo.cs
- entitydatasourceentitysetnameconverter.cs
- SAPIEngineTypes.cs
- DrawingAttributesDefaultValueFactory.cs
- ModuleConfigurationInfo.cs
- ScrollBar.cs
- PrefixQName.cs
- ChangesetResponse.cs
- Canvas.cs
- NavigatingCancelEventArgs.cs
- TypeElement.cs
- ValidationSummary.cs
- TCPClient.cs
- EnvelopedPkcs7.cs
- RegistryDataKey.cs
- Crc32.cs
- XmlEncoding.cs