Skip to content

Fix Failing Favorites Message #4

@mrengineer7777

Description

@mrengineer7777

The "Added Favorite" message fires inconsistently on this project, especially after the 2nd item.
Fix is to update packages.

Update packages on all projects from
<PackageReference Include="Xamarin.Forms" Version="4.4.0.991265" /> <PackageReference Include="Xamarin.Essentials" Version="1.3.1" />
to
<PackageReference Include="Xamarin.Forms" Version="4.7.0.1142" /> <PackageReference Include="Xamarin.Essentials" Version="1.5.3.2" />

XAML changes: added "xmlns:viewModels" reference and BindingContext. Also set SwipeView BackgroundColor="Transparent" to fix change with Xamarin.Forms Upgrade.

XAML.cs changes: Fixed a possible null reference exception, and awaited the alert.

See attached PDFs for code changes.

FavFightersView_xaml.pdf
FavFightersView_xaml_cs.pdf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions