MainPage elrendezés beállítva I.
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
<?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="WorkFlowCheck.MAUI.MainPage">
|
||||
x:Class="WorkFlowCheck.MAUI.MainPage"
|
||||
Title="Főmenü">
|
||||
|
||||
<ScrollView>
|
||||
<VerticalStackLayout
|
||||
@@ -13,54 +14,53 @@
|
||||
Aspect="AspectFit"
|
||||
SemanticProperties.Description="dot net bot in a race car number eight" />-->
|
||||
|
||||
<Label
|
||||
<!--<Label
|
||||
Text="Hello, World!"
|
||||
x:Name="WelcomeLabel"
|
||||
Style="{StaticResource Headline}"
|
||||
SemanticProperties.HeadingLevel="Level1" />
|
||||
SemanticProperties.HeadingLevel="Level1" />-->
|
||||
|
||||
<Label
|
||||
<!--<Label
|
||||
Text="Welcome to .NET Multi-platform App UI"
|
||||
Style="{StaticResource SubHeadline}"
|
||||
SemanticProperties.HeadingLevel="Level2"
|
||||
SemanticProperties.Description="Welcome to dot net Multi platform App U I" />
|
||||
|
||||
<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
|
||||
SemanticProperties.Description="Welcome to dot net Multi platform App U I" />-->
|
||||
<!--<Button
|
||||
x:Name="CounterBtn"
|
||||
Text="Hahó II."
|
||||
SemanticProperties.Hint="Counts the number of times you click"
|
||||
Clicked="OnCounterClicked"
|
||||
HorizontalOptions="Fill" />-->
|
||||
<Frame BorderColor="Gray" Padding="5" Margin="1" HasShadow="True">
|
||||
<VerticalStackLayout>
|
||||
<Button
|
||||
x:Name="ButtonSync" Margin="5"
|
||||
Text="Adatok szinkronizálása"
|
||||
SemanticProperties.Hint="Adatok szinkronizálása"
|
||||
Clicked="OnButtonSync"
|
||||
HorizontalOptions="Fill" />
|
||||
<Button
|
||||
x:Name="NFCTestBtn"
|
||||
Text="NFC Test"
|
||||
SemanticProperties.Hint="Test NFC capability"
|
||||
x:Name="ButtonBase" Margin="5"
|
||||
Text="Törzsadatok"
|
||||
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"
|
||||
Text="Logout"
|
||||
SemanticProperties.Hint="Logout from the application"
|
||||
x:Name="LogoutBtn" Margin="5"
|
||||
Text="Kijelentkezés"
|
||||
SemanticProperties.Hint="Kijelentkezés"
|
||||
Clicked="OnButtonLogout"
|
||||
HorizontalOptions="Fill" />
|
||||
</Frame>
|
||||
</VerticalStackLayout>
|
||||
</ScrollView>
|
||||
|
||||
|
||||
@@ -17,17 +17,17 @@ namespace WorkFlowCheck.MAUI
|
||||
//{
|
||||
// _userService = userService;
|
||||
//}
|
||||
private void OnCounterClicked(object sender, EventArgs e)
|
||||
{
|
||||
count++;
|
||||
//private void OnCounterClicked(object sender, EventArgs e)
|
||||
//{
|
||||
// count++;
|
||||
|
||||
if (count == 1)
|
||||
CounterBtn.Text = $"Clicked {count} time";
|
||||
else
|
||||
CounterBtn.Text = $"Clicked {count} times";
|
||||
// if (count == 1)
|
||||
// CounterBtn.Text = $"Clicked {count} time";
|
||||
// else
|
||||
// CounterBtn.Text = $"Clicked {count} times";
|
||||
|
||||
SemanticScreenReader.Announce(CounterBtn.Text);
|
||||
}
|
||||
// SemanticScreenReader.Announce(CounterBtn.Text);
|
||||
//}
|
||||
private async void OnButtonGetUser(object sender, EventArgs e)
|
||||
{
|
||||
//var response = await _userService.GetUserAsync();
|
||||
|
||||
Reference in New Issue
Block a user