We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在用TagContainer绑定生成Tag时 这些Tag的ShowCloseButton属性默认为true,希望可以给TagContainer添加一个属性用来指示生成的Tag是否允许删除,从而匹配不同的需求
The text was updated successfully, but these errors were encountered:
绑定一下,就可以实现你要的:
<hc:TagContainer Width="420" Margin="11" Padding="5" ItemContainerStyle="{StaticResource TagCustomStyle}" ItemsSource="{Binding Students}" />
<UserControl.Resources> <Style x:Key="TagCustomStyle" BasedOn="{StaticResource TagBaseStyle}" TargetType="hc:Tag"> <Setter Property="Content" Value="{Binding Name}" /> <Setter Property="Margin" Value="5" /> <Setter Property="IsSelected" Value="{Binding IsSelected}" /> <Setter Property="ShowCloseButton" Value="{Binding ShowCloseButton}" /> </Style> </UserControl.Resources>
Sorry, something went wrong.
6245453
No branches or pull requests
在用TagContainer绑定生成Tag时 这些Tag的ShowCloseButton属性默认为true,希望可以给TagContainer添加一个属性用来指示生成的Tag是否允许删除,从而匹配不同的需求
The text was updated successfully, but these errors were encountered: