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
- StandardToolWindows.cs
- Brush.cs
- ColorBlend.cs
- ManifestResourceInfo.cs
- DateTimeFormatInfoScanner.cs
- MemberRelationshipService.cs
- CaseStatement.cs
- X509SecurityTokenAuthenticator.cs
- TemplateBindingExtension.cs
- RangeValidator.cs
- URLAttribute.cs
- TypeExtensionConverter.cs
- PhysicalAddress.cs
- SchemaImporterExtensionsSection.cs
- SymbolTable.cs
- DataChangedEventManager.cs
- RelationshipEntry.cs
- ModelServiceImpl.cs
- OutputChannelBinder.cs
- X509IssuerSerialKeyIdentifierClause.cs
- ServiceContractGenerator.cs
- HasRunnableWorkflowEvent.cs
- DataGridViewHeaderCell.cs
- ConfigurationSectionHelper.cs
- CallSiteOps.cs
- IdentityHolder.cs
- ConstraintConverter.cs
- ResourceExpressionBuilder.cs
- XXXOnTypeBuilderInstantiation.cs
- HttpHandlerAction.cs
- ProcessModuleCollection.cs
- HierarchicalDataSourceDesigner.cs
- CompilerState.cs
- HostProtectionException.cs
- XPathPatternParser.cs
- PropertyDescriptorComparer.cs
- VirtualizedCellInfoCollection.cs
- DataGridViewSelectedColumnCollection.cs
- NetTcpSecurityElement.cs
- PasswordTextNavigator.cs
- PrimitiveType.cs
- StylusLogic.cs
- IOThreadScheduler.cs
- ConnectionConsumerAttribute.cs
- XmlSchemaComplexContentRestriction.cs
- AspNetHostingPermission.cs
- AsyncPostBackTrigger.cs
- wmiprovider.cs
- XPathEmptyIterator.cs
- TwoPhaseCommit.cs
- XPathMultyIterator.cs
- CounterCreationData.cs
- Expr.cs
- EastAsianLunisolarCalendar.cs
- TracingConnectionInitiator.cs
- PartEditor.cs
- WebBrowserBase.cs
- XmlToDatasetMap.cs
- Preprocessor.cs
- TableSectionStyle.cs
- DataKeyCollection.cs
- BufferedGraphics.cs
- XmlWrappingReader.cs
- StringExpressionSet.cs
- ParsedAttributeCollection.cs
- AssemblyInfo.cs
- FormViewDeletedEventArgs.cs
- SimpleLine.cs
- Msec.cs
- CompilerGlobalScopeAttribute.cs
- JsonUriDataContract.cs
- DataGridPagerStyle.cs
- wgx_render.cs
- BitmapPalette.cs
- BaseHashHelper.cs
- Section.cs
- EventMappingSettingsCollection.cs
- LexicalChunk.cs
- DataGridItem.cs
- DataGridViewAutoSizeModeEventArgs.cs
- SystemMulticastIPAddressInformation.cs
- FileInfo.cs
- MonitoringDescriptionAttribute.cs
- GeometryHitTestParameters.cs
- Knowncolors.cs
- mediaeventshelper.cs
- GeneralTransform3DCollection.cs
- ResourceReferenceKeyNotFoundException.cs
- lengthconverter.cs
- SqlComparer.cs
- TextProperties.cs
- DesignSurfaceCollection.cs
- BuildProvider.cs
- TemplateComponentConnector.cs
- TemplateBamlRecordReader.cs
- _AuthenticationState.cs
- InfoCardSchemas.cs
- ReflectionUtil.cs
- SymbolDocumentGenerator.cs
- DataGridViewRowHeaderCell.cs