Comments (4)
设置ListBox的模板就可以 😸
<ListBox.ItemTemplate>
<DataTemplate>
<Grid>
<CheckBox Content="{Binding Title}"
IsChecked="{Binding IsSelected,
RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListBoxItem}}}"/>
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
from handycontrol.
修改默认模板做了个简单的例子
模板修改1
模板修改2
添加分组描述
from handycontrol.
最好是CheckBox的多选项。哈哈
from handycontrol.
谢谢
from handycontrol.
Related Issues (20)
- 3.5 版本 hc:PasswordBox 为啥没有 ShowClearButton IsError 之类的属性了
- Button 中无法写 controls:BorderElement.CornerRadius 属性
- Button 中无法写 controls:BorderElement.CornerRadius 属性
- 截图没有考虑屏幕缩放比例(DPI) HOT 1
- PasswordBox 密码框显示密码MaxLength失效。
- FloatingBlock invalid
- 有黑色的主题吗
- Window最大化后,窗口底部会侵占部分通知栏 HOT 1
- Version 3.5.2 cannot be found on NuGet HOT 1
- 选择 VS x86环境,运行代码报错 对 PInvoke 函数“HandyControl!HandyControl.Tools.Interop.InteropMethods::GetWindowPlacement”的调用导致堆栈不对称。 HOT 3
- System.ArgumentOutOfRangeException HOT 3
- Flipclock properties
- `hc:ListBoxAttach.SelectedItems` binding got `null` HOT 1
- hc: Carousel Specified argument was out of the range of valid values. Arg_ParamName_Name”
- 全屏窗口加上 ITaskbarList2.MarkFullscreenWindow 方法
- DateTimePicker控件的值更新不及时
- SideMenu 支不支持把某个SideMenuItem放到底下?
- MenuItemBaseStyle 样式绑定错误
- 默认字体大小与控件高度可自定义
- hc:Window 窗体在构造函数或 Loaded 函数中调用 this.Close(); 会导致报错
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from handycontrol.