Beispiel #1
0
        public Header(IMapDelegate mapDelegate)
        {
            InitializeComponent();
            _mapDelegate = mapDelegate;

            var tapImage = new TapGestureRecognizer();

            tapImage.Tapped += TipForUser_Handler;
            imgTip.GestureRecognizers.Add(tapImage);

            tapImage         = new TapGestureRecognizer();
            tapImage.Tapped += ResetMap_Handler;
            imgRetry.GestureRecognizers.Add(tapImage);

            tapImage         = new TapGestureRecognizer();
            tapImage.Tapped += Setting_Handler;
            imgSetting.GestureRecognizers.Add(tapImage);

            settingPopup   = new SettingPopupPage();
            settingPopupVM = new SettingPopupVM();
            settingPopup.SetMapDelegate(mapDelegate);
            settingPopup.SetContext(settingPopupVM);
        }
 public void SetContext(SettingPopupVM vm)
 {
     this.BindingContext = vm;
     _vm = vm;
 }