-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPhotoDetailPage.xaml
More file actions
157 lines (144 loc) · 6.78 KB
/
PhotoDetailPage.xaml
File metadata and controls
157 lines (144 loc) · 6.78 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
x:Class="FieldNotesApp.PhotoDetailPage"
Title="Photo Details">
<ScrollView>
<VerticalStackLayout Padding="20"
Spacing="15">
<!-- Display the captured photo -->
<!--<Image x:Name="PhotoImage"
HeightRequest="300"
Aspect="AspectFit"
IsVisible="False" />
<toolkit:MediaElement x:Name="VideoPlayer"
HeightRequest="300"
ShouldShowPlaybackControls="true"
IsVisible="False" />-->
<!-- Media Carousel -->
<Border Stroke="LightGray"
StrokeThickness="2"
StrokeShape="RoundRectangle 20"
HeightRequest="350"
BackgroundColor="Black">
<Grid>
<CarouselView x:Name="MediaCarousel"
ItemsSource="{Binding MediaItems}"
HeightRequest="350"
IndicatorView="indicatorView"
Loop="False">
<CarouselView.ItemTemplate>
<DataTemplate>
<Grid>
<!-- Image -->
<Image Source="{Binding FilePath}"
Aspect="AspectFit"
IsVisible="{Binding IsImage}"
VerticalOptions="Center"
HorizontalOptions="Center" />
<!-- Video -->
<toolkit:MediaElement Source="{Binding FilePath}"
ShouldShowPlaybackControls="True"
ShouldAutoPlay="False"
IsVisible="{Binding IsVideo}"
VerticalOptions="Center"
HorizontalOptions="Center" />
</Grid>
</DataTemplate>
</CarouselView.ItemTemplate>
</CarouselView>
<!-- Carousel Indicators -->
<IndicatorView x:Name="indicatorView"
IndicatorColor="LightGray"
SelectedIndicatorColor="White"
HorizontalOptions="Center"
VerticalOptions="End"
Margin="0,0,0,20" />
<!-- Media counter -->
<Border BackgroundColor="#99000000"
StrokeThickness="0"
Padding="10,5"
HorizontalOptions="End"
VerticalOptions="Start"
Margin="10"
StrokeShape="RoundRectangle 10">
<Label x:Name="MediaCountLabel"
Text="1 / 1"
TextColor="White"
FontSize="14"
FontAttributes="Bold" />
</Border>
</Grid>
</Border>
<Border Stroke="Gray"
BackgroundColor="Gray"
StrokeShape="RoundRectangle 20,20,20,20"
Padding="10">
<VerticalStackLayout Spacing="10">
<Label Text="Entry Name"
FontSize="18"
FontAttributes="Bold" />
<Editor x:Name="EntryNameField"
TextColor="White" />
</VerticalStackLayout>
</Border>
<!-- Geotag section -->
<Border Stroke="Gray"
Padding="10"
StrokeShape="RoundRectangle 20,20,20,20"
BackgroundColor="Gray">
<VerticalStackLayout Spacing="10">
<Label Text="Location"
FontSize="18"
FontAttributes="Bold" />
<Button x:Name="GeotagButton"
Text="Add Geotag"
Clicked="OnGeotagClicked" />
<Label x:Name="LocationLabel"
Text="No location added"
FontSize="14" />
</VerticalStackLayout>
</Border>
<!-- Voice recording section -->
<Border Stroke="Gray"
BackgroundColor="Gray"
StrokeShape="RoundRectangle 20,20,20,20"
Padding="10">
<VerticalStackLayout Spacing="10">
<Label Text="Voice Recording"
FontSize="18"
FontAttributes="Bold" />
<Button x:Name="RecordButton"
Text="Record Audio"
Clicked="OnRecordClicked" />
<Label x:Name="RecordingLabel"
Text="No recording added"
FontSize="14" />
</VerticalStackLayout>
</Border>
<!-- Text notes section -->
<Border Stroke="Gray"
BackgroundColor="Gray"
StrokeShape="RoundRectangle 20,20,20,20"
Padding="10">
<VerticalStackLayout Spacing="10">
<Label Text="Notes"
FontSize="18"
FontAttributes="Bold" />
<Editor x:Name="NotesEditor"
Placeholder="Add notes here..."
PlaceholderColor="White"
TextColor="White"
HeightRequest="150" />
</VerticalStackLayout>
</Border>
<!-- Save button -->
<Button Text="Save Entry"
BackgroundColor="Green"
TextColor="White"
Clicked="OnSaveClicked"
Margin="0,20,0,0" />
</VerticalStackLayout>
</ScrollView>
</ContentPage>