コード例 #1
0
        private void ChangeFavoriteBtnImageHandler(ChangeFavoriteBtnImageMessage obj)
        {
            var image = obj.IsRecipeFavorite
                ? UIImage.FromBundle("MiscellaneousImg/FavoriteBtnFilled")
                : UIImage.FromBundle("MiscellaneousImg/FavoriteBtn");

            FavoriteButton.SetImage(image, UIControlState.Normal);
        }
コード例 #2
0
 private void ChangeFavoriteBtnImageMessageHandler(ChangeFavoriteBtnImageMessage obj)
 {
     _isFavorite = obj.IsRecipeFavorite;
     InvalidateOptionsMenu();
 }