Thanks, Drake. I tried using your mechanism but have an issue. Let me explain the issue. I have this Textbox in an UserControl and using it in other control by making 5 instances of this control. If I set MinWidth=50, the TextBox width occupies the maximum for all instances even though the text size is smaller than 50.
My textbox is defined like this.
<TextBox Grid.Column="0" Grid.Row="2" Style="{StaticResource RegTextStyle}" Height="15" MinWidth="50" Text="{Binding Path=RcpConditionSelection, ElementName=ucRcpCondition, Converter={StaticResource EnumToDescriptionConveter}}"
IsReadOnly="True">
</TextBox>
My user control is defined like this (width = auto, height auto)
The problem is the textbox size is too long for some controls although the size is 3 characters. How to fix this issue?