I am relatively new to WPF and really like the possibility to do to GUI logic in the markup. Currently, I have a control which I only want to be visible, if another control is visible.
<AttachedControl IsVisible="{x:Reference Name=mainControl}"/>
<MasterControl Name="mainControl" IsVisible="True">
...
</MasterControl>
When I am using this, it is working in the designer, but produces the error message:
Error "" is no valid value for the property "IsVisible". ProjectX MyUserControl.xaml
It also compiles successfully and I can run the app. So can anybody tell me where is the problem or what I am doing/understanding wrong?