Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / Tools / System.Activities.Presentation / System / Activities / Presentation / View / CanExpandCollapseAllConverter.cs / 1305376 / CanExpandCollapseAllConverter.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.Activities.Presentation.View { using System.Globalization; using System.Windows.Data; using System.Windows; sealed class CanExpandCollapseAllConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value == null || value == DependencyProperty.UnsetValue) { return false; } ActivityDesignerOptionsAttribute attr = WorkflowViewService.GetAttribute(value.GetType()); return attr == null || !attr.AlwaysCollapseChildren; } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { throw FxTrace.Exception.AsError(new NotSupportedException()); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.Activities.Presentation.View { using System.Globalization; using System.Windows.Data; using System.Windows; sealed class CanExpandCollapseAllConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value == null || value == DependencyProperty.UnsetValue) { return false; } ActivityDesignerOptionsAttribute attr = WorkflowViewService.GetAttribute (value.GetType()); return attr == null || !attr.AlwaysCollapseChildren; } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { throw FxTrace.Exception.AsError(new NotSupportedException()); } } } // 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
- BlockExpression.cs
- ScriptControlManager.cs
- PackageFilter.cs
- MatrixCamera.cs
- RawContentTypeMapper.cs
- PageThemeBuildProvider.cs
- XmlQueryTypeFactory.cs
- Matrix3D.cs
- Journal.cs
- ParserStack.cs
- ImageKeyConverter.cs
- ScrollPattern.cs
- Processor.cs
- SevenBitStream.cs
- MSAAEventDispatcher.cs
- ColorBlend.cs
- TheQuery.cs
- XmlDocumentSchema.cs
- CheckBoxDesigner.cs
- BindingNavigator.cs
- GroupStyle.cs
- InputMethodStateChangeEventArgs.cs
- NodeInfo.cs
- Executor.cs
- SchemaNotation.cs
- WebPartConnection.cs
- BufferBuilder.cs
- CorrelationTokenTypeConvertor.cs
- SimpleMailWebEventProvider.cs
- DrawingGroup.cs
- ContractComponent.cs
- PagesChangedEventArgs.cs
- ControlOperationBehavior.cs
- Vector3DConverter.cs
- AdornerLayer.cs
- MessageDirection.cs
- PropertyPanel.cs
- WeakEventTable.cs
- SafeIUnknown.cs
- CatalogZone.cs
- PropertyToken.cs
- ClockController.cs
- KerberosTicketHashIdentifierClause.cs
- FileLevelControlBuilderAttribute.cs
- FixedSOMPage.cs
- ObjectNavigationPropertyMapping.cs
- MethodRental.cs
- GeneralTransform2DTo3D.cs
- XmlSortKey.cs
- DummyDataSource.cs
- SecondaryIndexDefinition.cs
- LogicalTreeHelper.cs
- CodeMethodReturnStatement.cs
- AdPostCacheSubstitution.cs
- TemplateBindingExpression.cs
- CompositionAdorner.cs
- CalendarTable.cs
- SmiEventSink_DeferedProcessing.cs
- TablePatternIdentifiers.cs
- EasingKeyFrames.cs
- StandardBindingReliableSessionElement.cs
- CompiledQueryCacheEntry.cs
- mactripleDES.cs
- SizeChangedEventArgs.cs
- CodeComment.cs
- WebBrowserNavigatedEventHandler.cs
- SingleAnimationUsingKeyFrames.cs
- DataFormats.cs
- DelegateSerializationHolder.cs
- Matrix3DStack.cs
- AssemblyFilter.cs
- RegexGroup.cs
- MessageQueueInstaller.cs
- OracleFactory.cs
- DbInsertCommandTree.cs
- ConfigurationHelpers.cs
- SinglePageViewer.cs
- CancelEventArgs.cs
- SecurityDocument.cs
- Transform.cs
- PropertyGrid.cs
- BatchServiceHost.cs
- SecureStringHasher.cs
- XmlNamedNodeMap.cs
- EventPrivateKey.cs
- Variant.cs
- SystemIcons.cs
- EntityDataReader.cs
- Misc.cs
- SHA256.cs
- ParseChildrenAsPropertiesAttribute.cs
- ExpressionPrefixAttribute.cs
- WorkflowApplicationIdleEventArgs.cs
- TextTreeUndo.cs
- ToolStripDropTargetManager.cs
- CodeRegionDirective.cs
- NetworkInterface.cs
- BitmapPalettes.cs
- AccessText.cs
- PermissionAttributes.cs