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
- ExpressionBuilder.cs
- FixedSOMTextRun.cs
- PkcsUtils.cs
- ParameterCollectionEditorForm.cs
- PageThemeParser.cs
- PriorityBindingExpression.cs
- OdbcStatementHandle.cs
- Parameter.cs
- SmiMetaDataProperty.cs
- Span.cs
- InvalidAsynchronousStateException.cs
- ExpressionHelper.cs
- ExecutorLocksHeldException.cs
- PerspectiveCamera.cs
- ContentPropertyAttribute.cs
- DataSourceControlBuilder.cs
- BeginEvent.cs
- ChildTable.cs
- PageTheme.cs
- DataGridViewRowEventArgs.cs
- BooleanAnimationBase.cs
- Rfc2898DeriveBytes.cs
- TextParaLineResult.cs
- AssemblyInfo.cs
- WindowsContainer.cs
- ReadOnlyTernaryTree.cs
- VScrollBar.cs
- RelationHandler.cs
- X509UI.cs
- ManifestResourceInfo.cs
- SQLBytesStorage.cs
- StringResourceManager.cs
- PtsContext.cs
- ObjectConverter.cs
- XmlSchemaCompilationSettings.cs
- InlineCollection.cs
- UIElement3D.cs
- EnumerableRowCollection.cs
- ValidationHelper.cs
- NavigatorInput.cs
- RequiredFieldValidator.cs
- LocalFileSettingsProvider.cs
- Preprocessor.cs
- sqlcontext.cs
- DataRowChangeEvent.cs
- EntityDataSourceWizardForm.cs
- EventLogWatcher.cs
- SmtpFailedRecipientsException.cs
- DispatcherProcessingDisabled.cs
- _NativeSSPI.cs
- MetafileHeaderWmf.cs
- GridViewAutomationPeer.cs
- MetabaseServerConfig.cs
- SqlDataAdapter.cs
- IntranetCredentialPolicy.cs
- TransformerTypeCollection.cs
- XmlEntityReference.cs
- ScriptingScriptResourceHandlerSection.cs
- precedingquery.cs
- BoolExpression.cs
- CodeCommentStatement.cs
- EdgeProfileValidation.cs
- Array.cs
- ExtendedPropertyCollection.cs
- ProviderConnectionPoint.cs
- ModulesEntry.cs
- ConfigXmlAttribute.cs
- GridEntry.cs
- Intellisense.cs
- InstanceKey.cs
- QuotedPrintableStream.cs
- InstancePersistence.cs
- SQLSingle.cs
- LogRestartAreaEnumerator.cs
- MimeTypePropertyAttribute.cs
- metadatamappinghashervisitor.cs
- ListSortDescription.cs
- DefaultAutoFieldGenerator.cs
- SmtpTransport.cs
- ValidatedControlConverter.cs
- ModifyActivitiesPropertyDescriptor.cs
- CommunicationObjectManager.cs
- XmlSchemaInferenceException.cs
- StrokeCollection2.cs
- ProcessInfo.cs
- ScrollChangedEventArgs.cs
- SharedUtils.cs
- TextAction.cs
- Imaging.cs
- SelectionItemPattern.cs
- TextProperties.cs
- ExtensionWindowResizeGrip.cs
- IChannel.cs
- GridViewDeletedEventArgs.cs
- StreamGeometry.cs
- HostProtectionPermission.cs
- FileDataSourceCache.cs
- WindowsFormsHelpers.cs
- BitmapEffect.cs
- HelloMessageApril2005.cs