Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: AvalongDock - LayoutDocumentPane - IsVisible binding

$
0
0
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?

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>