private ICommand _RectangleMouseEnterCommand;
public ICommand RectangleMouseEnterCommand
if (_RectangleMouseEnterCommand == null)
_RectangleMouseEnterCommand = new RelayCommand(rectangleMouseEnter);
// This does get called
The rectangleMouseEnter method does get called. This means my list is wired wrong.
If I change "ListBoxItem.MouseDoubleClick" to "MouseEnter", then it fires. Anyone see what I'm doing wrong?
Didn't we answer this same exact question a few weeks ago? You can't handle nested events like that. You can only trap ListBox events there. If you want to trap ListBoxItem events, you need to add that to a ListBoxItem style.
LOL, you were the one who asked the question . Anyways, you need to attach the interaction triggers to a Visual, so you need to include the control template unfortunately. The interaction triggers are buried a few lines down . This does seem a little messy. Your other option is to have a reusable control that forwards the ListBoxItem event to the parent ListBox. That's what I do in my framework, but its a bit more work. One other simpler option might be to just trap the ListBox double click and chase up the visual tree to make sure you clicked on a ListBoxItem.
recently i moved my application from Winform to WPF, with winform when i choose files info my listbox the oped window to choose files different compare to the window now with WPF, can i change it to the one in Winform ?
here you can see the differents (WPF is the upper one)
I am currently developing uen WPF application I want to work with EFW, and I want to use the MVC architecture, I start with a small test, but it did not work .. I added a library or j 'I've added a WindowsForms want and when I add the time that reference to my project and I tried to post the form when click on the button help me please
You can use whatever you want, I was just pointing out that WPF is specifically designed with MVVM in mind. That doesn't mean you have to use MVVM in WPF. That means that WPF + MVVM is going to provide you with the cleanest code.
i have one user control in which i have placed 15 label controls,now i want to bind their content with an observableCollection, in which i am filling string values.
let me clear once again, i am filling list which is observableCollection and want to show each item in list as label values in usercontrol.
sorry for bad English.
Last Visit: 31-Dec-99 19:00 Last Update: 4-Dec-16 10:20