0

I'm new for XAML and MVVM. I need to add a control to freeze/greyed out to disable user to click/select buttons/combobox once the device is connected successfully. For below, i need to freeze the combo selection COMPort once connection already been made. I also bind visibiloity once RS485 port type selected. Many thanks in advance :)enter image description here

Here is my code for XAML:

<ComboBox ItemsSource="{Binding Ports}" Visibility="{Binding RS485, Converter={StaticResource BooleanToVisibilityConverter}}" Name="portIdCombo" SelectedItem="{Binding COMPort}" />
3
  • IsEnabled = False ?
    – aybe
    Commented Jul 9, 2020 at 2:22
  • 1
    Hi Aybe, thanks! Problem solved by using IsEnabled = {Binding Bool}
    – FH Liew
    Commented Jul 9, 2020 at 5:46
  • Well done :DDDD
    – aybe
    Commented Jul 9, 2020 at 5:52

0

Browse other questions tagged or ask your own question.