I have a Silverlight C # application. In this application, I have defined the value converter that I use in XAML. I came across a situation where I need to programmatically use this value converter in my code. My question is: how do I do this? In XAML, I use a value converter as follows:
<TextBlock x:Name="myTextBlock" Text="{Binding Mode=OneWay, Path=FirstName, Converter={StaticResource myConverter}, ConverterParameter=NotSet}" />
How to use this converter in my code?
Thank!
source
share