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
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- EventSourceCreationData.cs
- DateTimeValueSerializer.cs
- ParallelDesigner.cs
- SafeEventLogReadHandle.cs
- VirtualPathProvider.cs
- VideoDrawing.cs
- ExecutionContext.cs
- ActivityWithResult.cs
- PageBuildProvider.cs
- GlyphRunDrawing.cs
- DataAccessor.cs
- BuilderPropertyEntry.cs
- UIElement3D.cs
- AlternateView.cs
- Statements.cs
- TripleDES.cs
- Row.cs
- HTMLTagNameToTypeMapper.cs
- RadioButtonList.cs
- WebPartZone.cs
- ListParaClient.cs
- FileRecordSequence.cs
- TreeNodeStyleCollection.cs
- HttpCachePolicy.cs
- KeyPressEvent.cs
- PreservationFileWriter.cs
- ClientSettingsProvider.cs
- ArrangedElement.cs
- CacheChildrenQuery.cs
- DateTimeStorage.cs
- EntityViewContainer.cs
- BitmapEffectCollection.cs
- DataGridViewRowConverter.cs
- TextRangeSerialization.cs
- TableLayoutPanelCodeDomSerializer.cs
- UnlockInstanceAsyncResult.cs
- ManifestSignedXml.cs
- SQLMoney.cs
- DesignerLoader.cs
- DataBoundControlHelper.cs
- FixedTextSelectionProcessor.cs
- DPAPIProtectedConfigurationProvider.cs
- SqlCommandBuilder.cs
- ResourceDefaultValueAttribute.cs
- UserPersonalizationStateInfo.cs
- SmtpTransport.cs
- MetadataItem_Static.cs
- WithStatement.cs
- SqlDataSourceStatusEventArgs.cs
- ScrollProperties.cs
- OracleBinary.cs
- SiteMapSection.cs
- WindowInteractionStateTracker.cs
- FormViewModeEventArgs.cs
- TreeView.cs
- MobileTemplatedControlDesigner.cs
- SpellerError.cs
- SynchronizationContext.cs
- DeflateStream.cs
- Stopwatch.cs
- RelatedImageListAttribute.cs
- OleDbException.cs
- Tokenizer.cs
- VectorKeyFrameCollection.cs
- SecurityContextSecurityTokenParameters.cs
- HtmlShim.cs
- Switch.cs
- ProtocolsSection.cs
- _AcceptOverlappedAsyncResult.cs
- loginstatus.cs
- TextUtf8RawTextWriter.cs
- BuildProviderCollection.cs
- LassoSelectionBehavior.cs
- HttpHandlerAction.cs
- StructuredTypeInfo.cs
- DeviceSpecific.cs
- ProfilePropertySettings.cs
- SymmetricSecurityBindingElement.cs
- invalidudtexception.cs
- OverflowException.cs
- FullTextState.cs
- LiteralTextParser.cs
- Journal.cs
- DataServiceRequestOfT.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ThrowHelper.cs
- updatecommandorderer.cs
- Emitter.cs
- StorageRoot.cs
- XmlDocumentFragment.cs
- ProcessThreadCollection.cs
- RootBuilder.cs
- WsdlBuildProvider.cs
- SystemDiagnosticsSection.cs
- WSDualHttpBindingElement.cs
- SimpleType.cs
- FrameworkElementFactory.cs
- IgnoreSectionHandler.cs
- WebPermission.cs