Files
ExemploAppMAUI/GuilhermesApp/Pages/NewFormPage.xaml
Guilherme Gaspar 44f456eb29 Guilhermes
2026-03-23 17:42:36 +00:00

51 lines
2.3 KiB
XML

<?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"
x:Class="GuilhermesApp.Pages.NewFormPage"
Shell.NavBarIsVisible="False"
Title="Novo Formulário">
<ScrollView>
<VerticalStackLayout Spacing="20" Padding="30">
<Label Text="Bem-estar Diário" FontSize="24" FontAttributes="Bold" HorizontalOptions="Center" />
<Label Text="1. Como te sentes hoje?" FontAttributes="Bold" />
<Picker x:Name="HumorPicker" Title="Seleciona uma opção">
<Picker.ItemsSource>
<x:Array Type="{x:Type x:String}">
<x:String>Muito Bem</x:String>
<x:String>Bem</x:String>
<x:String>Neutro</x:String>
<x:String>Mal</x:String>
<x:String>Muito Mal</x:String>
</x:Array>
</Picker.ItemsSource>
</Picker>
<Label Text="2. Nível de stress (1 a 10)?" FontAttributes="Bold" />
<Slider x:Name="StressSlider" Minimum="1" Maximum="10" Value="5" />
<Label x:DataType="Slider" Text="{Binding Source={x:Reference StressSlider}, Path=Value, StringFormat='{0:F0}'}" HorizontalOptions="Center" />
<Label Text="3. Dormiste bem?" FontAttributes="Bold" />
<Picker x:Name="SonoPicker" Title="Seleciona uma opção">
<Picker.ItemsSource>
<x:Array Type="{x:Type x:String}">
<x:String>Sim, perfeitamente</x:String>
<x:String>Mais ou menos</x:String>
<x:String>Não, dormi mal</x:String>
</x:Array>
</Picker.ItemsSource>
</Picker>
<Label Text="4. Fizeste exercício hoje?" FontAttributes="Bold" />
<Switch x:Name="ExercicioSwitch" HorizontalOptions="Start" />
<Label Text="5. Notas adicionais:" FontAttributes="Bold" />
<Entry x:Name="NotasEntry" Placeholder="Escreve aqui..." />
<Button Text="Submeter" Clicked="OnSubmitClicked" Margin="0,20,0,0" />
</VerticalStackLayout>
</ScrollView>
</ContentPage>