2017-10-30 15 views
1

これは私のリストビュークラスですリストビュー項目

public class ListViewClass : ListView 
{   
    public ListViewClass() 
    {  
     var cell = new DataTemplate(typeof(ViewCellClass));     
     ItemTemplate = cell; 
     SeparatorVisibility = SeparatorVisibility.None; 
     this.Style = (Style)Application.Current.Resources["commonBottomMarginThickness"]; 
     HasUnevenRows = true;      
    }    
} 

私はスクリーンショットを添付。上と下のリストビュー項目の間にスペースを入れる方法。

enter image description here

+0

は、私はあなたが 'ViewCellClass' –

+0

パディングが正常に動作している内部パディングとstackLayoutを挿入することができると思います。ありがとう!ディエゴラファエルスーザ – Yogeshwaran

答えて

1

あなたSeparatorColorプロパティに値Transparentを追加します。このよう

public ListViewClass() 
{  
    var cell = new DataTemplate(typeof(ViewCellClass));     
    ItemTemplate = cell; 
    SeparatorVisibility = SeparatorVisibility.None; 
    SeparatorColor = Color.Transparent; 
    this.Style = (Style)Application.Current.Resources["commonBottomMarginThickness"]; 
    HasUnevenRows = true;      
}  
関連する問題