Open Varmod opened 1 year ago
Describe the bug I want to bind to a indexer with 2 parameters from xaml. I was following this wpf question but it doesn't work for me in Avalonia.
<TextBlock Classes="Subtitle" Margin="5"> <TextBlock.Text> <Binding Path="Translations[TYPE_ACTUATOR_PHYSICAL,PRESSURE]"/> </TextBlock.Text> </TextBlock>
The xaml builds properly, but what happens is that that indexer for 1 parameter is triggered and the PRESSURE parameter is ignored.
PRESSURE
public string this[string identifier] { get { return GetString(identifier); } } public string this[string identifier, string parameter] { get { return GetStringSubstituteIdentifier(identifier, substituionsIdentifier: parameter); } }
Desktop (please complete the following information):
looks like the very first this is called and the rest is irgnored. If I have only one of the indexer, it works
this
Describe the bug I want to bind to a indexer with 2 parameters from xaml. I was following this wpf question but it doesn't work for me in Avalonia.
The xaml builds properly, but what happens is that that indexer for 1 parameter is triggered and the
PRESSURE
parameter is ignored.Desktop (please complete the following information):