When I set the UserControl IsEnabled to false the combo box is still enabled.
Here's my XAML:
<cc:DesignTimeSafeControl x:Class="CustomControls.VendorCombo"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
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:cc="clr-namespace:CustomControls"
IsEnabled="False"
mc:Ignorable="d" Loaded="UserControl_Loaded">
<telerik:RadComboBox x:Name="VendorsBox" DisplayMemberPath="Name" SelectionChanged="VendorsBox_SelectionChanged" />
</cc:DesignTimeSafeControl>
DesignTimeSafeControl is derived from UserControl and simply adds a IsDesignTime property. It contains no other code.
If I put the IsEnabled onto the RadComboBox tag, it works fine.
I'm doing it this way because I want to set the IsEnabled on the UserControl's parent form.
Am I doing something wrong here?
Thank you
Michael Stone