Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="true" CornerRadius="8">
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
Setter Property="BorderThickness" Value="1"
2.ListBox设置水平排列
3.ListBox鼠标滚动,实现分页
this.ListBox1.AddHandler(ListBox.MouseWheelEvent, new MouseWheelEventHandler(DataPage), true);private void DataPage(objectsender, MouseWheelEventArgs e)
{if (e.Delta<0)
{
///数据分页
InsertPageData();
}
}