Skip to content

Ronmenator/fayde-multibinding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

fayde-multibinding

Multi-binding for Fayde framework.

Multivalue Converter

Create a new IMultiValueConverter. This feature takes in a collection of Bindings

https://msdn.microsoft.com/en-us/library/system.windows.data.imultivalueconverter(v=vs.110).aspx

Name Description
Convert(Object[], Type, Object, CultureInfo) Converts source values to a value for the binding target. The data binding engine calls this method when it propagates the values from source bindings to the binding target.
ConvertBack(Object, Type[], Object, CultureInfo) Converts a binding target value to the source binding values.

###example

<TextBox.Text>                                              
 <MultiBinding Converter="{StaticResource myConverter}">
   <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="SelectedValue"/>
   <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="NullText"/>
 </MultiBinding>                                              
</TextBox.Text>

MultiBinding Class

https://msdn.microsoft.com/en-us/library/system.windows.data.multibinding(v=vs.110).aspx

public class MultiBinding : BindingBase

###example

<TextBlock>
    <TextBlock.Text>    
        <MultiBinding StringFormat="{}{0} + {1}">
            <Binding Path="Name" />
            <Binding Path="ID" />
        </MultiBinding>
    </TextBlock.Text>
</TextBlock>

About

Multi-binding for Fayde framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published