2009-02-26 73 views

回答

139

您需要將每個ListBoxItem的FocusVisualStyle設置爲null。操作步驟波紋管

1)爲ListBox

<Style x:Key="ListBoxItemStyle1" TargetType="{x:Type ListBoxItem}"> 
    <Setter Property="FocusVisualStyle" Value="{x:Null}"/> .... 

2)設置樣式創建ItemContainerStyle到列表框中

<ListBox ItemContainerStyle="{DynamicResource ListBoxItemStyle1}" 
+4

希望大家表明,主要針對一些其他的方式的事實... – 2012-04-13 11:29:50