Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / Tools / System.Activities.Presentation / System / Activities / Presentation / ExpandCollapseIsCheckedConverter.cs / 1305376 / ExpandCollapseIsCheckedConverter.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.Activities.Presentation { using System.Windows.Data; using System.Windows; class ExpandCollapseIsCheckedConverter : IMultiValueConverter { public object Convert(object[] values, Type targetType, object parameter, global::System.Globalization.CultureInfo culture) { bool expandState = (bool)values[0]; bool pinState = (bool)values[1]; bool showExpanded = false; if (values[2] != DependencyProperty.UnsetValue) { showExpanded = (bool)values[2]; } return showExpanded; } public object[] ConvertBack(object value, Type[] targetTypes, object parameter, global::System.Globalization.CultureInfo culture) { //Return ExpandState and PinState. return new object[] { value, true }; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.Activities.Presentation { using System.Windows.Data; using System.Windows; class ExpandCollapseIsCheckedConverter : IMultiValueConverter { public object Convert(object[] values, Type targetType, object parameter, global::System.Globalization.CultureInfo culture) { bool expandState = (bool)values[0]; bool pinState = (bool)values[1]; bool showExpanded = false; if (values[2] != DependencyProperty.UnsetValue) { showExpanded = (bool)values[2]; } return showExpanded; } public object[] ConvertBack(object value, Type[] targetTypes, object parameter, global::System.Globalization.CultureInfo culture) { //Return ExpandState and PinState. return new object[] { value, true }; } } } // 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
- RectAnimation.cs
- MobileControlBuilder.cs
- TreeNodeEventArgs.cs
- OdbcStatementHandle.cs
- X509RawDataKeyIdentifierClause.cs
- EmptyCollection.cs
- LocalizableAttribute.cs
- Normalization.cs
- NativeWindow.cs
- ExpressionEditorAttribute.cs
- basevalidator.cs
- Automation.cs
- PrintEvent.cs
- StateManagedCollection.cs
- SettingsBase.cs
- TraceListener.cs
- basemetadatamappingvisitor.cs
- HttpHandlerActionCollection.cs
- Effect.cs
- PolyLineSegmentFigureLogic.cs
- BasicBrowserDialog.designer.cs
- AppModelKnownContentFactory.cs
- CachedPathData.cs
- RenameRuleObjectDialog.Designer.cs
- SendSecurityHeaderElementContainer.cs
- IconConverter.cs
- ListParagraph.cs
- DependencyProperty.cs
- ValidationEventArgs.cs
- FontFamilyValueSerializer.cs
- UnwrappedTypesXmlSerializerManager.cs
- XPathPatternBuilder.cs
- IRCollection.cs
- SerializationObjectManager.cs
- ZipArchive.cs
- UpdateCommandGenerator.cs
- Tile.cs
- File.cs
- SynchronousChannelMergeEnumerator.cs
- XmlSchemaSimpleTypeUnion.cs
- KeyInstance.cs
- Transform3D.cs
- HttpListenerRequest.cs
- printdlgexmarshaler.cs
- IBuiltInEvidence.cs
- TypeHelper.cs
- TextEncodedRawTextWriter.cs
- CatalogPart.cs
- EventLogPermission.cs
- DocumentSequenceHighlightLayer.cs
- ValueExpressions.cs
- OleDbFactory.cs
- TypedCompletedAsyncResult.cs
- GridViewHeaderRowPresenter.cs
- HtmlShimManager.cs
- DiscriminatorMap.cs
- PropertyTab.cs
- BaseWebProxyFinder.cs
- SymbolMethod.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- MediaTimeline.cs
- HandlerBase.cs
- SHA256.cs
- DependencyPropertyHelper.cs
- ColorAnimationUsingKeyFrames.cs
- OletxDependentTransaction.cs
- StrongNameIdentityPermission.cs
- Attributes.cs
- OdbcEnvironment.cs
- GcHandle.cs
- BitStack.cs
- ImageIndexEditor.cs
- PrivilegeNotHeldException.cs
- DecoderExceptionFallback.cs
- KnownTypes.cs
- Win32Native.cs
- TreeNodeStyleCollection.cs
- XmlComplianceUtil.cs
- XmlnsCache.cs
- Hex.cs
- RegistryKey.cs
- Confirm.cs
- DebugView.cs
- webeventbuffer.cs
- WSHttpBinding.cs
- FileSystemWatcher.cs
- ConfigurationPermission.cs
- dsa.cs
- ValueExpressions.cs
- TabletDevice.cs
- InputLanguageProfileNotifySink.cs
- XsltLoader.cs
- XmlCustomFormatter.cs
- ZeroOpNode.cs
- VScrollProperties.cs
- SignatureHelper.cs
- OpenFileDialog.cs
- ScrollBar.cs
- EntityDataSourceEntitySetNameItem.cs
- SchemaInfo.cs