customize the Border property with CornerRadius for ListBox

前端 未结 1 503
感动是毒
感动是毒 2021-01-11 16:52

I want to customize the following Listbox-display property of border with CornerRadius=5..can anyone help me to achieve it without changing the existing datatemplate code in

1条回答
  •  自闭症患者
    2021-01-11 17:12

    If you want the Border within the ListBoxItems to have another CornerRadius value, you can either re-template ListBoxItem where the Border is defined, or set it implicitly in the ItemContainerStyle Resources

    
        
            
                
            
        
        
    
    

    Edit: If you want to set CornerRadius for the ListBox, you can do the same but in Resources instead

        
            
                
            
        
    
    

    0 讨论(0)
提交回复
热议问题