Show/Hide the content when we clicked elements.

I’m just exploring Fuse and i’m loving it. I want my application to show content when the state is true and hide when state is false … So how can we implement this? For example, there is checkbox, when i checked on it it should display the content and when i unchecked it that particular content must be hidden. How states are handle in Fuse?


Good to hear that you like fuse!

What you are asking is very easy to do :slight_smile: Please consider this example:

	<Switch ux:Name="_switch" Value="false" />
	<Panel Margin="20" Background="#0fc" Width="100" Height="100" ux:Name="_panel">
		<WhileTrue Source="_switch">
			<Change _panel.Visibility="Hidden" />