Mulflar

Badges

5 Likes10 CommentsName DropperPhotogenicSecond AnniversaryFirst AnniversaryFirst Comment

About

Username
Mulflar
Location
ES
Joined
Visits
355
Last Active
Roles
University
Points
44
Twitter
@Mulflar
LinkedIn URL
https://www.linkedin.com/in/pautirado/
Github URL
https://github.com/mulflar
Website
htp://codeigor.azurewebsites.net
Bio
Xamarin Certified Developer since 07/2017
Badges
7

Mulflar ✭✭

About

Username
Mulflar
Location
ES
Joined
Visits
355
Last Active
Roles
University
Points
44
Twitter
@Mulflar
LinkedIn URL
https://www.linkedin.com/in/pautirado/
Github URL
https://github.com/mulflar
Website
htp://codeigor.azurewebsites.net
Bio
Xamarin Certified Developer since 07/2017
Badges
7
  • Re: Respect of MVVM w/o any framework

    If you subscribe to messaging each time you see the screen, you should unsuscribe each time you go out. If not you would duplicate the effect.
    Implement the subscription and test change screens (if have), and sleep, stop, resume etc to see if in some cases the messaging is called more than once each time.

  • Re: Respect of MVVM w/o any framework

    Mmm... My first Idea is ever try to move all to the viewmodel, but if you don't/can't do it the other option could be using Messaging Center.
    You subscribe the view to a message who activates the animation, and another one who desactivate the animation (remember to unsuscribe it).
    Then in the viewmodel when the prop setter is fired you send a message to the view.

    Here you can get more info:
    https://developer.xamarin.com/guides/xamarin-forms/application-fundamentals/messaging-center/

  • Re: Respect of MVVM w/o any framework

    What about:

        public bool IsInNavigationMode
        {
            get => _isInNavigationMode;
            set
            {
                if (_isInNavigationMode == value) return;
                _isInNavigationMode = value;
            if(isInNavigationMode)
               {
                    await AnimationService.SetMapComponentsWhenOnNavigationMode(new WrapperMapComponents(_bottomMapMenuComponents, _pinOptionComponents, _addActionComponents));
                }
               else
               {
                    await AnimationService.SetMapComponentsWhenOffNavigationMode(new WrapperMapComponents(_bottomMapMenuComponents, _pinOptionComponents));
                }
                OnPropertyChanged("IsInNavigationMode");
            }
        }
    

    That's only the concept, you should move the awaits to funcions and call the functions in the property

  • Re: How to open a PDF (Android) that you downloaded (SOLUTION)

    Ok, as I see in another thread from the same author using

    Android.Net.Uri pdfPath = Android.Net.Uri.FromFile(new Java.IO.File(externalPath));

    Works!