I'm wondering how I would go about this. I can't very well check that mouse is not over item1, item2, ...., can I? there should be some better way of doing this. I just want to deselect all the items if the user clicks on non-item space.
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
You can do what you want... in your
Click
handler, add this code:The
GetParentOfType
method is an extension method that I created and is as follows:Please note that extension methods need to be placed into a
static
class... you could always refactor it into a normal method if you prefer.