forked from fuse-open/fuse-samples
-
Notifications
You must be signed in to change notification settings - Fork 1
/
MainView.ux
41 lines (36 loc) · 1.9 KB
/
MainView.ux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<App>
<iOS.StatusBarConfig Style="Light" />
<Panel Color="#1C1C49">
<Rectangle ux:Class="Icon" IconColor="#fff">
<FileSource ux:Property="IconFile"/>
<float4 ux:Property="IconColor"/>
<Image File="{ReadProperty this.IconFile}" Color="{ReadProperty this.IconColor}" Width="50%"/>
</Rectangle>
<Panel Height="60" Aspect="5" BoxSizing="FillAspect">
<Grid ColumnCount="5">
<Panel ux:Name="i5" Column="4">
<Icon ux:Name="crossIcon" Color="#fff" IconFile="Assets/cross.png" IconColor="#2589D4"/>
</Panel>
<Icon ux:Name="link" Column="3" Color="#018EF9" IconFile="Assets/link.png"/>
<Icon ux:Name="note" Column="2" Color="#0075CC" IconFile="Assets/note.png"/>
<Icon ux:Name="photo" Column="1" Color="#015B9E" IconFile="Assets/photo.png"/>
<Icon ux:Name="camera" Column="0" Color="#003C70" IconFile="Assets/camera.png"/>
</Grid>
<WhileTrue ux:Name="collapsed" Value="true">
<Move Target="camera" X="1" RelativeTo="PositionOffset" RelativeNode="i5" Duration="0.35" Easing="CubicInOut"/>
<Move Target="photo" X="1" RelativeTo="PositionOffset" RelativeNode="i5" Duration="0.35" Easing="CubicInOut"/>
<Move Target="note" X="1" RelativeTo="PositionOffset" RelativeNode="i5" Duration="0.35" Easing="CubicInOut"/>
<Move Target="link" X="1" RelativeTo="PositionOffset" RelativeNode="i5" Duration="0.35" Easing="CubicInOut"/>
<Change camera.CornerRadius="30" Duration="0.35" Easing="CubicInOut"/>
<Change photo.CornerRadius="30" Duration="0.35" Easing="CubicInOut"/>
<Change note.CornerRadius="30" Duration="0.35" Easing="CubicInOut"/>
<Change link.CornerRadius="30" Duration="0.35" Easing="CubicInOut"/>
<Change crossIcon.CornerRadius="30" Duration="0.35" Easing="CubicInOut"/>
<Rotate Target="crossIcon" Degrees="45" Duration="0.35" Easing="CubicInOut"/>
</WhileTrue>
<Clicked>
<Toggle Target="collapsed" />
</Clicked>
</Panel>
</Panel>
</App>