forked from fuse-open/fuse-samples
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMainView.ux
More file actions
23 lines (23 loc) · 929 Bytes
/
MainView.ux
File metadata and controls
23 lines (23 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<App>
<StackPanel>
<JavaScript File="MainView.js" />
<Text FontSize="42" Value="Hello!" TextAlignment="Center"/>
<Text FontSize="24" Value="{welcomeText}" TextAlignment="Center" TextWrapping="Wrap" />
<Panel>
<StackPanel ux:Name="enterTextArea" Opacity="0">
<Text FontSize="20" TextAlignment="Center" Margin="0, 20, 0, 0">Store a message?</Text>
<TextInput Value="{message}"/>
<Button Clicked="{saveMessage}" Text="Save" />
<WhileFalse Value="{hasStored}">
<Change enterTextArea.Opacity="1" Duration="0.2" />
</WhileFalse>
</StackPanel>
<StackPanel ux:Name="textSubmittedArea" Opacity="0">
<Text TextAlignment="Center" FontSize="24" Margin="0, 20, 0, 0" TextWrapping="Wrap">The string has been saved</Text>
<WhileTrue Value="{hasStored}">
<Change textSubmittedArea.Opacity="1" Duration="0.2" Delay="0.2"/>
</WhileTrue>
</StackPanel>
</Panel>
</StackPanel>
</App>