發表文章

目前顯示的是 11月, 2018的文章

Xamarin iOS tableview issue

圖片
1. Cell height not correct: Call ForceUpdateSize() to update it, however if ListViewCachingStrategy is RecycleElement, height will still be clipped @_@, currently use RetainElement as a work around.. ^上面果個唔WORK, FourceUpdateSize應該盡量避免 另外發現拎走ControlTemplate,改用一大塊 StackLayout裝住返果2種template, 再係個stackLayout做datatrigger 轉IsVisible做. 估計係因為ControlTemplate比較大食, 佢計高度果陣計錯左? 最後係用原生IOS + ObservableCollection 既UPDATE做到 https://github.com/xamarin/xamarin-forms-samples/issues/390#issuecomment-439651364 At the beginning I use DataTrigger to represent different state of the cell: ` Cell      <Grid>       <ContentView ControlTemplate = "NormalMessage">                  <DataTrigger Binding={Binding IsMasked}>                             <Setter Property="ControlTemplate" Value="MaskedMessage">     ...