I'm trying to dynamically hide/show an entire document based on binding its visibility to a property in my ViewModel. The goal here is basically to show a sample when in a certain mode but not otherwise. Should be easy enough except that the IsVisible property reports "no accessible setter".
<xcad:LayoutDocumentPane x:Name="cksample"
IsVisible="{Binding Path=CurrentMode,
Converter={StaticResource EnumBoolToVisibilityChain},
ConverterParameter={x:Static local:OperatingMode.CHROMAKEY} }">
<xcad:LayoutAnchorable >
<Border BorderBrush="Crimson"
BorderThickness="2"
CornerRadius="3"
Padding="20">
<Image Source="{Binding CkSampleSource, UpdateSourceTrigger=PropertyChanged}"/>
</Border>
</xcad:LayoutAnchorable>
</xcad:LayoutDocumentPane>
The error here is on "IsVisible" stating "The property 'IsVisible' does not have an accessible setter" I can't imagine I'm the first person to want to bind the visibility of a document pane, so if I'm taking the wrong approach then what is the right approach?