0

Refer the below code snippets,

I am having Frame observable collection in View Model and it is binding to the UI.

In UI, I have CarouselView and assigning the DataTemplate values with ViewModel Property.

   **ViewModel Property:**

  public ObservableCollection<Frame> CarouselViewItemSource
    {
        get => carouselViewItemSource;
        set
        {
            SetProperty(ref carouselViewItemSource, value);

        }
    }

enter image description here

enter image description here

enter image description here

Mariselvam
  • 51
  • 4
  • Please do not post code as images – Jason Oct 07 '22 at 11:23
  • I suggest look at stacktrace when that exception is thrown. I think it shows some traces related to your code. My guess is the first line in the try-catch, but see it yourself first. – Koji Oct 08 '22 at 07:52

0 Answers0