[ValueConversion(System.Boolean, System.String)] public class BooleanStringConverter : Converter
[ValueConversion(System.Boolean, System.String)] public class BooleanStringConverter : Converter
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.
System.Object
Northwoods.GoXam.Converter
Northwoods.GoXam.BooleanStringConverter