English 中文(简体)
WPF “S selected” Property of Customs Control or “logical Focus” 应当使用什么?
原标题:WPF "Selected" Property of Custom Control or "Logical Focus". What should be used?

在我的WPF项目中,我有一个由直径物体表面代表的习俗控制。 在XAML中,我根据这一习俗控制进行了一些试采。 用户应当能够选择一组这些试金星,点击,然后与这些选定的试金星做一些行动。

我应如何落实甄选的可能性:(1) 我是否应当仅仅增加另一个习俗财产,例如,在MouseClick事件处理器中“选择”并改变这种财产,或者(2)我是否使用本土的“后勤焦点”功能?

最佳回答

我认为,如果你把甄选逻辑重新建设到你的控制中,你可以重复现有的<条码>Selector分流(例如<条码>)。

为什么不要仅仅在<条码>中接收你控制的情况?

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签