MainPage elrendezés beállítva I.

This commit is contained in:
2025-03-03 10:43:25 +01:00
parent c7784e7fef
commit dca4f3ba73
2 changed files with 47 additions and 47 deletions
+38 -38
View File
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="WorkFlowCheck.MAUI.MainPage"> x:Class="WorkFlowCheck.MAUI.MainPage"
Title="Főmenü">
<ScrollView> <ScrollView>
<VerticalStackLayout <VerticalStackLayout
@@ -13,54 +14,53 @@
Aspect="AspectFit" Aspect="AspectFit"
SemanticProperties.Description="dot net bot in a race car number eight" />--> SemanticProperties.Description="dot net bot in a race car number eight" />-->
<Label <!--<Label
Text="Hello, World!" Text="Hello, World!"
x:Name="WelcomeLabel" x:Name="WelcomeLabel"
Style="{StaticResource Headline}" Style="{StaticResource Headline}"
SemanticProperties.HeadingLevel="Level1" /> SemanticProperties.HeadingLevel="Level1" />-->
<Label <!--<Label
Text="Welcome to &#10;.NET Multi-platform App UI" Text="Welcome to &#10;.NET Multi-platform App UI"
Style="{StaticResource SubHeadline}" Style="{StaticResource SubHeadline}"
SemanticProperties.HeadingLevel="Level2" SemanticProperties.HeadingLevel="Level2"
SemanticProperties.Description="Welcome to dot net Multi platform App U I" /> SemanticProperties.Description="Welcome to dot net Multi platform App U I" />-->
<!--<Button
<Button
x:Name="ButtonGetUser"
Text="Get user info"
SemanticProperties.Hint="Get user info"
Clicked="OnButtonGetUser"
HorizontalOptions="Fill" />
<Button
x:Name="ButtonSync"
Text="Sync data"
SemanticProperties.Hint="Sync data"
Clicked="OnButtonSync"
HorizontalOptions="Fill" />
<Button
x:Name="ButtonBase"
Text="Base"
SemanticProperties.Hint="Base"
Clicked="OnButtonBaseStock"
HorizontalOptions="Fill" />
<Button
x:Name="CounterBtn" x:Name="CounterBtn"
Text="Hahó II." Text="Hahó II."
SemanticProperties.Hint="Counts the number of times you click" SemanticProperties.Hint="Counts the number of times you click"
Clicked="OnCounterClicked" Clicked="OnCounterClicked"
HorizontalOptions="Fill" /> HorizontalOptions="Fill" />-->
<Button <Frame BorderColor="Gray" Padding="5" Margin="1" HasShadow="True">
x:Name="NFCTestBtn" <VerticalStackLayout>
Text="NFC Test" <Button
SemanticProperties.Hint="Test NFC capability" x:Name="ButtonSync" Margin="5"
Clicked="OnButtonNFCTest" Text="Adatok szinkronizálása"
HorizontalOptions="Fill" /> SemanticProperties.Hint="Adatok szinkronizálása"
<Button Clicked="OnButtonSync"
x:Name="LogoutBtn" HorizontalOptions="Fill" />
Text="Logout" <Button
SemanticProperties.Hint="Logout from the application" x:Name="ButtonBase" Margin="5"
Clicked="OnButtonLogout" Text="Törzsadatok"
HorizontalOptions="Fill" /> SemanticProperties.Hint="Törzsadatok"
Clicked="OnButtonBaseStock"
HorizontalOptions="Fill" />
<Button
x:Name="NFCTestBtn" Margin="5"
Text="NFC olvasó teszt"
SemanticProperties.Hint="NFC olvasó teszt"
Clicked="OnButtonNFCTest"
HorizontalOptions="Fill" />
</VerticalStackLayout>
</Frame>
<Frame BorderColor="Gray" Padding="5" Margin="1" HasShadow="True">
<Button
x:Name="LogoutBtn" Margin="5"
Text="Kijelentkezés"
SemanticProperties.Hint="Kijelentkezés"
Clicked="OnButtonLogout"
HorizontalOptions="Fill" />
</Frame>
</VerticalStackLayout> </VerticalStackLayout>
</ScrollView> </ScrollView>
+9 -9
View File
@@ -17,17 +17,17 @@ namespace WorkFlowCheck.MAUI
//{ //{
// _userService = userService; // _userService = userService;
//} //}
private void OnCounterClicked(object sender, EventArgs e) //private void OnCounterClicked(object sender, EventArgs e)
{ //{
count++; // count++;
if (count == 1) // if (count == 1)
CounterBtn.Text = $"Clicked {count} time"; // CounterBtn.Text = $"Clicked {count} time";
else // else
CounterBtn.Text = $"Clicked {count} times"; // CounterBtn.Text = $"Clicked {count} times";
SemanticScreenReader.Announce(CounterBtn.Text); // SemanticScreenReader.Announce(CounterBtn.Text);
} //}
private async void OnButtonGetUser(object sender, EventArgs e) private async void OnButtonGetUser(object sender, EventArgs e)
{ {
//var response = await _userService.GetUserAsync(); //var response = await _userService.GetUserAsync();