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
- DocumentScope.cs
- XPathDescendantIterator.cs
- TextEncodedRawTextWriter.cs
- CodeParameterDeclarationExpression.cs
- SmiEventSink_Default.cs
- HostingEnvironmentWrapper.cs
- DataException.cs
- PerformanceCounterNameAttribute.cs
- QilUnary.cs
- SafeNativeMethods.cs
- CacheEntry.cs
- ManagementInstaller.cs
- TypeResolvingOptionsAttribute.cs
- RelationshipConverter.cs
- UpdatableGenericsFeature.cs
- GridItem.cs
- WSHttpBindingBaseElement.cs
- HttpWriter.cs
- LinearGradientBrush.cs
- KeyPressEvent.cs
- ConstrainedGroup.cs
- LicenseProviderAttribute.cs
- DataListItem.cs
- DataGridViewColumnConverter.cs
- PageAsyncTaskManager.cs
- FontInfo.cs
- EmptyStringExpandableObjectConverter.cs
- WeakRefEnumerator.cs
- OperationCanceledException.cs
- SecurityPolicySection.cs
- DoWhileDesigner.xaml.cs
- EventProxy.cs
- FontCollection.cs
- MarshalByRefObject.cs
- InkCanvasSelectionAdorner.cs
- HttpException.cs
- HttpRequestCacheValidator.cs
- LineMetrics.cs
- DirectionalLight.cs
- SourceElementsCollection.cs
- MenuTracker.cs
- InvalidPrinterException.cs
- MultiSelectRootGridEntry.cs
- EventRoute.cs
- XmlDataProvider.cs
- MdiWindowListStrip.cs
- COM2TypeInfoProcessor.cs
- SignedXml.cs
- NavigationProgressEventArgs.cs
- BitFlagsGenerator.cs
- ColorMatrix.cs
- QilInvokeEarlyBound.cs
- Component.cs
- HtmlUtf8RawTextWriter.cs
- HwndKeyboardInputProvider.cs
- PathFigureCollection.cs
- StateRuntime.cs
- ContainerUtilities.cs
- columnmapfactory.cs
- TypeBuilderInstantiation.cs
- XmlSchemaSequence.cs
- WebBrowserContainer.cs
- EventRoute.cs
- SafeNativeMemoryHandle.cs
- BridgeDataReader.cs
- StoreItemCollection.cs
- ProfilePropertyNameValidator.cs
- COSERVERINFO.cs
- TreeViewImageIndexConverter.cs
- Buffer.cs
- x509store.cs
- BitmapDecoder.cs
- D3DImage.cs
- DataList.cs
- HashCryptoHandle.cs
- InputMethodStateChangeEventArgs.cs
- Bidi.cs
- Events.cs
- WebServiceReceive.cs
- InstanceOwnerException.cs
- FatalException.cs
- ExtendedProtectionPolicy.cs
- TaskCanceledException.cs
- ZipIOModeEnforcingStream.cs
- NotConverter.cs
- GuidTagList.cs
- RbTree.cs
- CacheChildrenQuery.cs
- XamlValidatingReader.cs
- UntrustedRecipientException.cs
- CounterCreationData.cs
- CounterNameConverter.cs
- MediaPlayerState.cs
- TextBoxView.cs
- DataGridViewCellStyleChangedEventArgs.cs
- SQLByteStorage.cs
- CanExecuteRoutedEventArgs.cs
- MetadataImporterQuotas.cs
- ThaiBuddhistCalendar.cs
- ScriptReferenceEventArgs.cs