Ejemplo n.º 1
0
        public async Task ZoomThemeOutOnClick(MouseEventArgs e)
        {
            Zoom = 1;
            var newStruct = new AppBarStruct("Astrologie", true, Zoom);
            await AppStateServiceCore.ChangeStruct(newStruct);

            StateHasChanged();
        }
Ejemplo n.º 2
0
        protected override async Task OnInitializedAsync()
        {
            NavigationManager.LocationChanged += OnLocationChanges;
            var oldStruct = AppStateServiceCore.AppBarStruct;
            var newStruct = new AppBarStruct("Astrologie", true, oldStruct.AstroZoom);
            await AppStateServiceCore.ChangeStruct(newStruct);

            AppStateServiceCore.OnChange += OnStructChange;
            model.lat = "46.20222";
            model.lng = "6.14569";
        }