0

So i have this:

<system:Int32 x:Key="ListViewPacketManipulationOptionsComboBoxSelectedIndex">0</system:Int32>

And when This Value is > 0 i want my TextBox IsEnables=True :

public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
    return (int)value > 0;
}

My TextBox:

<TextBox x:Name="tbHeaderOriginValue"   
         IsEnabled="{DynamicResource ListViewPacketManipulationOptionsComboBoxSelectedIndex}"/>

Currently I did not find any way to add my Converter.

Il Vic
  • 5,576
  • 4
  • 26
  • 37
user2908206
  • 265
  • 3
  • 16

0 Answers0