萌新求助
wpf吧
全部回复
仅看楼主
level 1
大佬们,想用控件来表示100个座位,其中每个座位用红绿色来表示男女并在上面显示ID,应该用什么控件,难道要用100个button?
2019年05月23日 09点05分 1
level 1
可以用for循环来生成button吧
2019年06月03日 13点06分 2
level 1
列表
2019年06月04日 13点06分 3
level 2
label
2019年06月13日 13点06分 4
level 2
ItemControl绑定 样式
2019年08月23日 07点08分 5
level 2
自定义个控件,然后用listbox的source绑定到你自定义的控件集合。这个自定义控件就是你要展现的座位样式
2019年09月26日 15点09分 6
level 2
ListBox 在定义item就可以实现
2019年10月10日 14点10分 7
level 2
<ItemsControl Height="Auto" Width="Auto" Grid.Row="2" HorizontalAlignment="Center" Background="Transparent" ItemsSource="{Binding PlatformInfos,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" ItemTemplate="{StaticResource MenuChildDataTemplate}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel Orientation="Horizontal"></WrapPanel>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
</ItemsControl>
<DataTemplate x:Key="MenuChildDataTemplate" DataType="{x:Type 你的Model}">
<Button Content="{Binding Id}"></Button>
</DataTemplate>
2019年10月18日 06点10分 8
level 6
unifrom加border
2020年05月11日 08点05分 9
1