MainPage elrendezés beállítva I.
This commit is contained in:
@@ -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 .NET Multi-platform App UI"
|
Text="Welcome to .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" />-->
|
||||||
|
<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" />
|
HorizontalOptions="Fill" />
|
||||||
<Button
|
<Button
|
||||||
x:Name="NFCTestBtn"
|
x:Name="ButtonBase" Margin="5"
|
||||||
Text="NFC Test"
|
Text="Törzsadatok"
|
||||||
SemanticProperties.Hint="Test NFC capability"
|
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"
|
Clicked="OnButtonNFCTest"
|
||||||
HorizontalOptions="Fill" />
|
HorizontalOptions="Fill" />
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</Frame>
|
||||||
|
<Frame BorderColor="Gray" Padding="5" Margin="1" HasShadow="True">
|
||||||
<Button
|
<Button
|
||||||
x:Name="LogoutBtn"
|
x:Name="LogoutBtn" Margin="5"
|
||||||
Text="Logout"
|
Text="Kijelentkezés"
|
||||||
SemanticProperties.Hint="Logout from the application"
|
SemanticProperties.Hint="Kijelentkezés"
|
||||||
Clicked="OnButtonLogout"
|
Clicked="OnButtonLogout"
|
||||||
HorizontalOptions="Fill" />
|
HorizontalOptions="Fill" />
|
||||||
|
</Frame>
|
||||||
</VerticalStackLayout>
|
</VerticalStackLayout>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user