Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

Hiding a custom control

$
0
0

I've created a custom control which I want to hide when the user does something. So I bound the custom control IsVisible property to a property on my viewmodel. The viewmodel property is getting changed, but the custom control remains visible. Is this not the right way to show/hide custom controls?

Implementation view markup:

<ContentView ....
             >
    <ContentView.Content>
        <StackLayout Orientation="Vertical">
            <cv:DiceRoll x:Name="diceRollControl" IsVisible="{Binding DiceRollerVisible}" />
        </StackLayout>
    </ContentView.Content>
</ContentView>

Thnx
Matt


Viewing all articles
Browse latest Browse all 89864

Trending Articles