WELCOME

a:hover { cursor:url(https://files.cnblogs.com/files/laoguantongxiegogo/click_24px_1231393_easyicon.net.ico),auto; } body { cursor:url(https://files.cnblogs.com/files/laoguantongxiegogo/pointer_24px_1231389_easyicon.net.ico),auto; }

listbox中横向插入CheckBox

<ListBox x:Name="listMember" Height="30" Margin="0"  ItemsSource="{Binding }"  Grid.Row="3" Grid.Column="1"   ScrollViewer.VerticalScrollBarVisibility="Disabled">
                        <ListBox.Template>
                            <ControlTemplate TargetType="{x:Type ListBox}">
                                <WrapPanel Orientation="Horizontal" IsItemsHost="True"/>
                            </ControlTemplate>
                        </ListBox.Template>
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <CheckBox   Content="{Binding Name}" IsChecked="{Binding IsSelected}"   Height="30" Width="60"  >
                                </CheckBox>
                            </DataTemplate>
                        </ListBox.ItemTemplate>
 
                    </ListBox>

posted @ 2021-06-30 18:48  waiting233  阅读(83)  评论(0)    收藏  举报
#Snow{ position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999; background: rgba(125,137,95,0.1); pointer-events: none; }