25 lines
790 B
C#
25 lines
790 B
C#
using MijnBesluit.AppUi;
|
|
|
|
namespace MijnBesluit.App;
|
|
|
|
public partial class HoofdPagina : ContentPage
|
|
{
|
|
private readonly Terugknop _terugknop;
|
|
|
|
public HoofdPagina(Terugknop terugknop)
|
|
{
|
|
InitializeComponent();
|
|
_terugknop = terugknop;
|
|
}
|
|
|
|
/// <summary>
|
|
/// De terugknop van het toestel. Android stuurt hem hierheen; geven we false terug, dan doet
|
|
/// het toestel wat het altijd deed en gaat de app dicht.
|
|
///
|
|
/// De schermen bepalen zelf wat terug betekent - een popup dicht, terug naar het overzicht -
|
|
/// via <see cref="Terugknop"/>. Hier staat alleen de doorgifte, want de webview zelf weet
|
|
/// niets van de knoppen van het toestel.
|
|
/// </summary>
|
|
protected override bool OnBackButtonPressed() => _terugknop.Ingedrukt();
|
|
}
|