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
- contentDescriptor.cs
- XmlObjectSerializerContext.cs
- IEnumerable.cs
- ReadOnlyDataSource.cs
- Crypto.cs
- MsmqVerifier.cs
- KeyPullup.cs
- SafeNativeMethodsOther.cs
- FormsAuthenticationEventArgs.cs
- BindingContext.cs
- ManagementException.cs
- RegexStringValidator.cs
- PointAnimationUsingPath.cs
- QualifiedCellIdBoolean.cs
- IntSecurity.cs
- DbParameterHelper.cs
- LinearGradientBrush.cs
- HTMLTextWriter.cs
- TextFormatter.cs
- TagMapInfo.cs
- HeaderedItemsControl.cs
- SqlDataSourceStatusEventArgs.cs
- NavigationFailedEventArgs.cs
- ZoneButton.cs
- SortDescription.cs
- EntityType.cs
- GrowingArray.cs
- DbgCompiler.cs
- ListenerUnsafeNativeMethods.cs
- CacheRequest.cs
- WindowsFont.cs
- CrossAppDomainChannel.cs
- AssemblyInfo.cs
- SafeNativeMethods.cs
- Activity.cs
- ThousandthOfEmRealDoubles.cs
- Bits.cs
- ViewDesigner.cs
- StyleHelper.cs
- RectangleF.cs
- DataSourceView.cs
- OrderByBuilder.cs
- HttpRequest.cs
- KnownIds.cs
- XmlSchemaSimpleTypeUnion.cs
- ResourceDisplayNameAttribute.cs
- BooleanKeyFrameCollection.cs
- SoapHelper.cs
- RuleInfoComparer.cs
- Debug.cs
- FileAccessException.cs
- EllipseGeometry.cs
- CodeSnippetCompileUnit.cs
- Rectangle.cs
- SystemThemeKey.cs
- DataTemplateSelector.cs
- DataTemplateKey.cs
- BindingMemberInfo.cs
- Geometry.cs
- Matrix3D.cs
- WebPartCatalogCloseVerb.cs
- FloatUtil.cs
- TextBlockAutomationPeer.cs
- Attributes.cs
- CollectionView.cs
- DescendentsWalkerBase.cs
- ButtonBase.cs
- DataGridViewCheckBoxColumn.cs
- EdmComplexPropertyAttribute.cs
- LinearGradientBrush.cs
- ObjectStateEntry.cs
- MemberHolder.cs
- contentDescriptor.cs
- Repeater.cs
- CodeAttributeDeclarationCollection.cs
- XmlSchemaGroup.cs
- XsdBuilder.cs
- Context.cs
- ReadContentAsBinaryHelper.cs
- Selection.cs
- SpellerStatusTable.cs
- ObjectHandle.cs
- FunctionQuery.cs
- RegistryKey.cs
- figurelength.cs
- DelegateSerializationHolder.cs
- DataBindingCollection.cs
- ActivityTypeResolver.xaml.cs
- BackgroundWorker.cs
- UserControl.cs
- InputScopeNameConverter.cs
- CapabilitiesUse.cs
- ValueTypeFixupInfo.cs
- HttpVersion.cs
- Literal.cs
- VerificationException.cs
- DataGridBoolColumn.cs
- ToolStripSettings.cs
- Dump.cs
- WsdlWriter.cs