Northwoods.GoWPF 2.2.4 Assembly
BooleanStringConverter Class
Members 

Convert a boolean to one of two strings.
Syntax
<ValueConversionAttribute(SourceType=System.Boolean, 
   TargetType=System.String, 
   ParameterType=)>
Public Class BooleanStringConverter 
   Inherits Converter
   Implements System.Windows.Data.IValueConverter 
[ValueConversionAttribute(SourceType=System.Boolean, 
   TargetType=System.String, 
   ParameterType=)]
public class BooleanStringConverter : Converter, System.Windows.Data.IValueConverter  
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

Requirements
See Also

Reference

BooleanStringConverter Members
Northwoods.GoXam Namespace

 

 


© Northwoods Software 2017. All Rights Reserved.

Send Feedback