📎 Webclip
Dual Screen SDK for Surface Duo with Xamarin.Forms
The page presents a Xamarin.Forms layout built with TwoPaneView. One pane contains a CarouselView whose item template renders slide content, and the other pane contains a CollectionView used as indicators, with selection tied to carousel state.
Reading notes#
- The layout uses
local:TwoPaneViewas the root container. CarouselViewis namedcvand has aPositionChangedhandler calledOnCarouselViewPositionChanged.- The carousel height is bound to
FormsWindow.Pane1.Height. - Each carousel item uses a
Framesized to the first pane and shows a centered label withSlide Content {0}. - The
CollectionViewis namedindicatorsand has aSelectionChangedhandler calledOnIndicatorsSelectionChanged. - The indicators list uses single selection and binds its
ItemsSourcetocv.ItemsSource. - A style sets the border color to green when a
Frameenters the selected visual state. - The indicators use a vertical
LinearItemsLayoutwithItemSpacingset to10. - Each indicator item is a
Framewith rounded corners and a horizontalStackLayout. - The indicator template shows
Slide Content {0}andSlide {0}in separate labels.
