forked from fuse-open/fuse-samples
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMainView.ux
29 lines (29 loc) · 1.25 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
<App Background="#EEE">
<JavaScript File="main.js"/>
<Panel ux:Class="FatButton" Background="#FFFFFF" Margin="0,5,0,5" Text="">
<string ux:Property="Text" />
<Button Text="{ReadProperty this.Text}" Padding="5,5,5,5" />
</Panel>
<ClientPanel>
<WhileEmpty Items="{imagePath}">
<Image File="assets/cam_icon.png" StretchMode="PixelPrecise"/>
</WhileEmpty>
<WhileNotEmpty Items="{imagePath}">
<DockPanel Dock="Fill">
<Text Value="{imageName}" Dock="Top" Alignment="Center"/>
<Image File="{imagePath}" StretchMode="Uniform" />
<Text Value="{imageSize}" Dock="Bottom" Alignment="Center"/>
</DockPanel>
</WhileNotEmpty>
<StackPanel Dock="Bottom">
<Text FontSize="12" Margin="5,5,5,5">Click buttons to perform tests</Text>
<FatButton Text="Push 320x320 square picture to cameraroll" Clicked="{takePicture}"/>
<FatButton Text="Take aspect corrected 100x100 picture via buffer" Clicked="{takeSmallPicture}"/>
<FatButton Text="Take cropped 320x320 picture" Clicked="{takeCroppedPicture}"/>
<FatButton Text="Get picture from cameraroll" Clicked="{selectImage}"/>
<WhileNotEmpty Items="{imagePath}">
<FatButton Text="Reload last picture via base64" Clicked="{b64Test}"/>
</WhileNotEmpty>
</StackPanel>
</ClientPanel>
</App>