First I want to say that I'm quite new to WPF and XAML programming languages.
I'm currently trying to make a calendar (Custom Control) in WPF and to be onest I'm not quite sure how to approach this task. Although I've searched all over the internet I couldn't find a pleasing answer. This is the link where I've found some ideas:
I've chosen this approach because will be very easy to create the design and the effects on MouseOver and MouseClick events, but the main problem with it is that I'm not sure on how I can create the logistics of the Calendar:
1st problem: How to bind the data between all of this Controls in order to create the logistics of a basic Calendar;
2nd problem: If the appoiment is longer than 1 day is there a chance to bind the data between this and the next Custom Control (this day and next day, because every day will be a Costum Control).
My question is if this is a good approach? And, if it isn't could you please help me out with some ideas?
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
Last Visit: 31-Dec-99 19:00 Last Update: 29-Jan-23 10:21