Initial commit
This commit is contained in:
16
Oqtane.Client/App.razor
Normal file
16
Oqtane.Client/App.razor
Normal file
@ -0,0 +1,16 @@
|
||||
@using Oqtane.Shared
|
||||
@using Oqtane.Client.Shared
|
||||
|
||||
<CascadingValue Value="@PageState">
|
||||
<SiteRouter OnStateChange="@ChangeState" />
|
||||
</CascadingValue>
|
||||
|
||||
@functions {
|
||||
private PageState PageState { get; set; }
|
||||
|
||||
private void ChangeState(PageState pagestate)
|
||||
{
|
||||
PageState = pagestate;
|
||||
StateHasChanged();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user