GoXam for WPF v3
BooleanStringConverter Class
Members 
Northwoods.GoXam Namespace : BooleanStringConverter Class
Convert a boolean to one of two strings.
Syntax
[ValueConversion(System.Boolean, System.String)]
public class BooleanStringConverter : Converter 
Remarks

Typically you will create an instance of this as a resource. For example, one possible use of this converter: <go:BooleanStringConverter x:Key="theBooleanLayerConverter" TrueString="Foreground" FalseString="" /> <DataTemplate> <Border . . . go:Part.LayerName="{Binding Path=Part.IsSelected, Converter={StaticResource theBooleanLayerConverter}}"> . . . </Border> </DataTemplate> When the node is selected, the node is moved to the NodeLayer named "Foreground". When the node is no longer selected, the node is moved to the default layer, named with the empty string.

Inheritance Hierarchy

System.Object
   Northwoods.GoXam.Converter
      Northwoods.GoXam.BooleanStringConverter

See Also

Reference

BooleanStringConverter Members
Northwoods.GoXam Namespace