c# - Horizontal ListView Xamarin.Forms -
is way create listview horizontal scroll in xamarin.forms image
this have done vertical
var mylistview = new listview { itemtemplate = new datatemplate(typeof(imagecell)) };
yes, technically can. set rotation 270 (all visualelements have rotation bindableproperty). however, looks suboptimal solution there white spaces @ top , bottom , have drag view left , right see fully.
public static readonly bindableproperty rotationproperty; public static readonly bindableproperty rotationxproperty; public static readonly bindableproperty rotationyproperty; the code above visualelement class. code below little sample of own.
∨∨∨ <listview x:name="messageslistview" rotation="270" itemssource="{binding items}" rowheight="40"> <listview.itemtemplate> <datatemplate> <viewcell> <viewcell.view> <stacklayout> <!--mylayouthere--> </stacklayout> </viewcell.view> </viewcell> </datatemplate> </listview.itemtemplate> </listview> c# listview xamarin xamarin.forms
No comments:
Post a Comment