Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / Tools / System.Activities.Presentation / System / Activities / Presentation / VariableExpressionConverter.cs / 1305376 / VariableExpressionConverter.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.Activities.Presentation { using System.Diagnostics; using System.Globalization; using System.Windows.Data; using System.Activities.Presentation.Model; class VariableExpressionConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { return value; } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { object convertedValue = null; if (value != null) { if (value is ModelItem) { convertedValue = ((ModelItem)value).GetCurrentValue(); } else { convertedValue = value; } } return convertedValue; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.Activities.Presentation { using System.Diagnostics; using System.Globalization; using System.Windows.Data; using System.Activities.Presentation.Model; class VariableExpressionConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { return value; } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { object convertedValue = null; if (value != null) { if (value is ModelItem) { convertedValue = ((ModelItem)value).GetCurrentValue(); } else { convertedValue = value; } } return convertedValue; } } } // 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
- FormViewInsertedEventArgs.cs
- Control.cs
- InvalidComObjectException.cs
- WebConfigurationFileMap.cs
- InternalBufferOverflowException.cs
- ImageClickEventArgs.cs
- DbConnectionPoolCounters.cs
- ProviderConnectionPointCollection.cs
- DoubleCollectionValueSerializer.cs
- MostlySingletonList.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- WorkflowApplicationIdleEventArgs.cs
- WebColorConverter.cs
- RadioButtonStandardAdapter.cs
- Binding.cs
- ScrollBarRenderer.cs
- StateInitializationDesigner.cs
- TagMapCollection.cs
- LiteralLink.cs
- MonthCalendar.cs
- SafePipeHandle.cs
- DataGridViewCell.cs
- MaskedTextBox.cs
- ModelUIElement3D.cs
- AnimationClockResource.cs
- StructuredTypeEmitter.cs
- VectorCollectionConverter.cs
- GB18030Encoding.cs
- Parameter.cs
- ConvertTextFrag.cs
- SoapExtension.cs
- LoadGrammarCompletedEventArgs.cs
- _NestedMultipleAsyncResult.cs
- NativeBuffer.cs
- CacheDependency.cs
- LocationSectionRecord.cs
- ControlBuilder.cs
- GlobalizationAssembly.cs
- ToolStripItemEventArgs.cs
- UpdateEventArgs.cs
- WebPartConnectionsEventArgs.cs
- TextAdaptor.cs
- WebServiceClientProxyGenerator.cs
- FontStretchConverter.cs
- VisualStateManager.cs
- BrowserCapabilitiesFactory.cs
- WmlTextBoxAdapter.cs
- CustomTypeDescriptor.cs
- ViewPort3D.cs
- DrawListViewItemEventArgs.cs
- HTMLTagNameToTypeMapper.cs
- XmlSchemaInclude.cs
- xamlnodes.cs
- HwndSubclass.cs
- HtmlInputSubmit.cs
- CompilationRelaxations.cs
- ScriptManager.cs
- CollectionEditor.cs
- BasicKeyConstraint.cs
- DataServiceRequestOfT.cs
- _IPv6Address.cs
- DataSvcMapFileSerializer.cs
- ConfigXmlWhitespace.cs
- InkCanvas.cs
- RoleManagerSection.cs
- EntityDataSourceChangedEventArgs.cs
- TextParagraphView.cs
- CodeNamespaceImportCollection.cs
- _UncName.cs
- ScriptingWebServicesSectionGroup.cs
- IndicCharClassifier.cs
- WhitespaceReader.cs
- UIElementParagraph.cs
- PolyBezierSegment.cs
- UrlPath.cs
- WebPartAddingEventArgs.cs
- Visual3D.cs
- ProxyManager.cs
- ColorConverter.cs
- RegistryKey.cs
- XmlBinaryReaderSession.cs
- RoleManagerEventArgs.cs
- SystemResources.cs
- DataSourceControl.cs
- SchemaExporter.cs
- TextTreeRootNode.cs
- ObjectDataSource.cs
- AssemblyCacheEntry.cs
- KeyNotFoundException.cs
- HashJoinQueryOperatorEnumerator.cs
- MemoryStream.cs
- TreeViewItem.cs
- GeometryGroup.cs
- HasCopySemanticsAttribute.cs
- WindowsStatusBar.cs
- ManagedWndProcTracker.cs
- IsolatedStorageException.cs
- HelpProvider.cs
- InternalResources.cs
- CollectionBuilder.cs