I have done a sample for you to understand it.
Since it's more of a view based thing, I suggest using a converter and include the code in the view and converter itself. See the code below. I tested it and it is working fine at my end.
When you select B the textbox is enabled, when selection changes to any other, the textbox is disabled.
XAML Code :
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApplication1"
xmlns:viewModel="clr-namespace:WpfApplication1.ViewModel"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525" >
<Window.Resources>
<viewModel:TestConverter x:Key="TestConverter" />
</Window.Resources>
<Grid Margin="329,0,0,0">
<ComboBox x:Name="cmbDMS" HorizontalAlignment="Left" VerticalAlignment="top" Width="120" >
<ComboBoxItem Content="A"/>
<ComboBoxItem Content="B"/>
<ComboBoxItem Content="C"/>
<ComboBoxItem Content="D"/>
<ComboBoxItem Content="E"/>
</ComboBox>
<TextBox Grid.Row="6" Height="60" Width="250" Margin="0,2" IsEnabled="{Binding ElementName=cmbDMS, Path=Text, Converter={StaticResource TestConverter}}" />
</Grid>
</Window>
TestConverter.cs Code :
using System;
using System.Globalization;
using System.Windows.Data;
namespace WpfApplication1.ViewModel
{
public class TestConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value != null)
{
var si = value.ToString();
if (si.Equals("B"))
return true;
}
return false;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}