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

27 lines
1.5 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.SensorPage"
Shell.NavBarIsVisible="False"
Title="Sensor">
<VerticalStackLayout Spacing="30" Padding="30" VerticalOptions="Center">
<Label Text="Controlo ESP32-C6" FontSize="28" FontAttributes="Bold" HorizontalOptions="Center" />
<Border Padding="20" StrokeShape="RoundRectangle 15" BackgroundColor="#F3F4F6" Stroke="Transparent">
<VerticalStackLayout Spacing="10" HorizontalOptions="Center">
<Label Text="Estado do LED" FontSize="18" HorizontalOptions="Center" TextColor="Black"/>
<Button x:Name="LedBtn" Text="LIGAR LED" Clicked="OnLedClicked" BackgroundColor="DarkSlateGray" TextColor="White"/>
</VerticalStackLayout>
</Border>
<Border Padding="20" StrokeShape="RoundRectangle 15" BackgroundColor="#D1E8FF" Stroke="Transparent">
<VerticalStackLayout Spacing="10" HorizontalOptions="Center">
<Label Text="Botão no Arduino" FontSize="18" HorizontalOptions="Center" TextColor="Black"/>
<Label x:Name="StatusLabel" Text="A aguardar sinal..." FontAttributes="Bold" FontSize="20" TextColor="Black" HorizontalOptions="Center" />
</VerticalStackLayout>
</Border>
</VerticalStackLayout>
</ContentPage>