public ScrollViewImagePage(string title, ListViewPageConfiguration configuration) { MutableImageList = new MutableImageList(); Configuration = configuration; InitializeComponent(); Title = title; Appearing += OnAppearing; Disappearing += OnDisappearing; __MyButton.Clicked += MyButtonOnClicked; MutableElementManager.Instance.GetMutablePage(this).PageUnmuting += OnPageUnmuting; }
private void Load() { __MyStack.Children.Clear(); for (var i = 0; i < Configuration.Repetitions; i++) { var image = new MutableImage { WidthRequest = Configuration.RowHeight, HeightRequest = Configuration.RowHeight, Source = Configuration.NewImageSource() }; MutableImageList.Add(image); //image.PropertyChanged += ImageOnPropertyChanged; __MyStack.Children.Add(image); } }
private void MyButtonOnClicked(object sender, EventArgs eventArgs) { MutableImageList.Mute(); }