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
- DropTarget.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- WmlPageAdapter.cs
- SqlTypesSchemaImporter.cs
- While.cs
- ValidationHelper.cs
- Viewport2DVisual3D.cs
- AtomicFile.cs
- AddInIpcChannel.cs
- HtmlInputImage.cs
- ETagAttribute.cs
- ArrayConverter.cs
- UnsafeNativeMethods.cs
- ExtendedPropertyCollection.cs
- TriggerCollection.cs
- CodeMemberProperty.cs
- SoapCodeExporter.cs
- ImageListImage.cs
- XmlSigningNodeWriter.cs
- ComponentDispatcher.cs
- RtfToXamlLexer.cs
- EntityDataSourceColumn.cs
- Group.cs
- BitmapEffectState.cs
- SqlEnums.cs
- EmptyEnumerator.cs
- MainMenu.cs
- EtwTrace.cs
- XmlDomTextWriter.cs
- FileDetails.cs
- TagPrefixAttribute.cs
- StringResourceManager.cs
- WinInet.cs
- DataFormats.cs
- PcmConverter.cs
- AbandonedMutexException.cs
- UrlMappingsSection.cs
- ImageAutomationPeer.cs
- DBPropSet.cs
- QueryMatcher.cs
- GeneralTransform3D.cs
- TypeUtil.cs
- CurrentChangingEventManager.cs
- MethodRental.cs
- RemoteDebugger.cs
- SQLConvert.cs
- TreeNodeEventArgs.cs
- AnimationException.cs
- Monitor.cs
- WebPartTransformerAttribute.cs
- RedistVersionInfo.cs
- DataGrid.cs
- HeaderLabel.cs
- PointLight.cs
- RegexStringValidatorAttribute.cs
- MailMessage.cs
- GridErrorDlg.cs
- CqlParser.cs
- Instrumentation.cs
- MessageProtectionOrder.cs
- IgnoreSection.cs
- DataBinder.cs
- InkCanvasSelectionAdorner.cs
- IndexerReference.cs
- PlanCompiler.cs
- DateTimeConverter2.cs
- ArrayList.cs
- XmlSchemaCompilationSettings.cs
- NetStream.cs
- ExpressionEditorAttribute.cs
- RuntimeEnvironment.cs
- ProcessModelSection.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- XmlDictionaryReaderQuotasElement.cs
- DependencyPropertyDescriptor.cs
- EncoderFallback.cs
- CustomValidator.cs
- TemplateXamlParser.cs
- XmlElementCollection.cs
- MarginsConverter.cs
- ToolstripProfessionalRenderer.cs
- DataObjectAttribute.cs
- OperationParameterInfo.cs
- PointAnimationUsingKeyFrames.cs
- TabControlDesigner.cs
- XmlRawWriter.cs
- ObjectViewQueryResultData.cs
- WmlMobileTextWriter.cs
- SqlCrossApplyToCrossJoin.cs
- CompositeControl.cs
- PartitionedDataSource.cs
- PtsContext.cs
- DoubleCollection.cs
- AndCondition.cs
- CodeRegionDirective.cs
- AccessedThroughPropertyAttribute.cs
- UpdateTracker.cs
- AgileSafeNativeMemoryHandle.cs
- GeometryConverter.cs
- KeyboardEventArgs.cs