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 Please consider this example:
<StackPanel> <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" /> </WhileTrue> </Panel> </StackPanel>