public ImagePopupPage(ImagePopupViewModel vm) { InitializeComponent(); VM = vm; this.BindingContext = VM; this.HasSystemPadding = false; }
public ImageMediaGalleryUserControl() { InitializeComponent(); vm = new ImagePopupViewModel(); if (vm != null) { vm.ImageMediaSourceUpdated += vm_ImageMediaSourceUpdated; } DataContext = vm; }
public ImagePopup() { InitializeComponent(); //this.MouseLeftButtonDown += ImagePopup_MouseLeftButtonDown; //this.MouseLeftButtonUp += ImagePopup_MouseLeftButtonUp; //this.MouseMove += ImagePopup_MouseMove; vm = new ImagePopupViewModel(); if (vm != null) { vm.ImageMediaSourceUpdated += vm_ImageMediaSourceUpdated; } DataContext = vm; }
public ImagePopup() { InitializeComponent(); DataContext = new ImagePopupViewModel(); }