Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
0
 private void MyButtonOnClicked(object sender, EventArgs eventArgs)
 {
     MutableImageList.Mute();
 }