This repository was archived by the owner on May 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathGalleryPage.sidebar.ux
66 lines (66 loc) · 2.45 KB
/
GalleryPage.sidebar.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<Panel ux:Name="sidebar" Edge="Left" Alignment="Left" Background="#212831b0">
<Translation X="-1" RelativeTo="Size" />
<ScrollView AllowedScrollDirections="Vertical">
<StackPanel Alignment="Center">
<StackPanel Padding="20,0,20,40">
<Panel ux:Name="profileImage" HitTestMode="LocalBounds">
<Circle ux:Class="ProfileCircle" Width="70" Height="70" Color="LoColor" />
<WhileCount Items="{user}" EqualTo="0">
<ProfileCircle>
<ImageFill File="Assets/Images/UserPic.png" />
</ProfileCircle>
</WhileCount>
<WhileCount Items="{user}" GreaterThan="0">
<ProfileCircle>
<ImageFill Url="{user.userpic_https_url}" />
</ProfileCircle>
</WhileCount>
<ux:Include File="DropShadow.inc.ux" />
</Panel>
<Panel Margin="0,10,0,0">
<Text ux:Name="loginText" Value="LOGIN" Alignment="Center" FontSize="14" Font="Regular" TextColor="HiColor" />
</Panel>
<WhilePressed>
<Change profileImage.Opacity="0.6" Duration="0.1" />
<Change loginText.Opacity="0.6" Duration="0.1" />
</WhilePressed>
<WhileCount Items="{user}" EqualTo="0">
<Clicked>
<Callback Handler="{Login}" />
</Clicked>
</WhileCount>
<WhileCount Items="{user}" GreaterThan="0">
<Change Target="loginText.Value" Value="{user.screenname}" />
<Clicked>
<Callback Handler="{Logout}" />
</Clicked>
</WhileCount>
</StackPanel>
<Each Items="{features}">
<Panel Padding="30,10,30,10" HitTestMode="LocalBounds">
<Text ux:Name="featureText" Value="{title}" Alignment="Center" FontSize="18" Font="Regular" TextColor="#bbb" HitTestMode="LocalBounds">
<ux:Include File="DropShadow.inc.ux" />
</Text>
<Clicked>
<Callback Handler="{select}" />
<NavigateToggle />
</Clicked>
<WhileTrue Value="{isSelected}">
<Change featureText.TextColor="#fff" />
</WhileTrue>
</Panel>
</Each>
</StackPanel>
</ScrollView>
<ActivatingAnimation>
<Set isSearching.Value="false" />
<Change IsCoverPanelVisible.Value="true" Duration="0" Delay="0" DurationBack="0" DelayBack="0" />
<Change coverPanel.IsEnabled="true" Duration="0" Delay="0" DurationBack="0" DelayBack="0" />
<Move Target="sidebar" X="1" RelativeTo="Size" RelativeNode="sidebar" />
<Change topMenuTranslation.X="-17" />
<Change middleMenuTranslation.X="-17" />
<Change bottomMenuTranslation.X="-17" />
</ActivatingAnimation>
<DeactivatingAnimation>
</DeactivatingAnimation>
</Panel>