adding settings and credits to maui
continuous-integration/drone/push Build is passing Details

test_old_branch
rportet 11 months ago
parent 86f31a0843
commit a6dfba659b

@ -31,9 +31,11 @@
<controls:ButtonShadow Text="Rules"
InfoClicked="OnRulesClicked"/>
<controls:ButtonShadow Text="Settings"/>
<controls:ButtonShadow Text="Settings"
InfoClicked="OnSettingsClicked"/>
<controls:ButtonShadow Text="Credits"/>
<controls:ButtonShadow Text="Credits"
InfoClicked="OnCreditsClicked"/>
</VerticalStackLayout>

@ -28,6 +28,16 @@ namespace Qwirkle
Navigation.PushAsync(new Rules());
}
public void OnSettingsClicked(object sender, EventArgs e)
{
Navigation.PushAsync(new Settings());
}
public void OnCreditsClicked(object sender, EventArgs e)
{
Navigation.PushAsync(new Credits());
}
}
}

@ -7,9 +7,6 @@
<ScrollView>
<VerticalStackLayout>
<Grid Style="{StaticResource GridMain}">
<controls:GoBack
InfoClicked="OnGoBackClicked"
/>
<controls:GoBack></controls:GoBack>
<Label Text="Credits"
Style="{StaticResource Title}"/>

@ -6,8 +6,4 @@ public partial class Credits : ContentPage
{
InitializeComponent();
}
public void OnGoBackClicked(object sender, EventArgs e)
{
Navigation.PopAsync();
}
}

@ -8,9 +8,7 @@
<VerticalStackLayout Spacing="25" Padding="5">
<Grid Style="{StaticResource GridMain}">
<controls:GoBack
InfoClicked="OnGoBackClicked"
/>
<controls:GoBack></controls:GoBack>
<Label Text="Settings"
Style="{StaticResource Title}"/>
</Grid>

Loading…
Cancel
Save