I have a WPF ListBox, which i bind to some elements (which are not customizable by me). The binding itself is a sealed class too.
The element has a ToString which takes a CultureInfo parameter. I want to bind to that specific representation - by passing that parameter (I'll get it from the running thread). Is there anyway to specify the binding to show that specific representation?
XAML:
<ListBox Height="212" HorizontalAlignment="Left" Margin="6,6,0,0"
Name="listBoxTriggers" VerticalAlignment="Top" Width="183" />
Item Source:
listBoxTriggers.ItemsSource = _triggers
And code behind (the method i want to call)
trigger.ToString(cultureInfo);