All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
3k views

C# Event handler for WPF MVVM

So I've been learning about MVVM and I had a problem. I often had to start a thread to download or do some longer task in background and when it is done change some properties so the UI updates. The ...
Marko Borković's user avatar
4 votes
1 answer
86 views

More Efficient Way To Search On-Demand

I need better logic that would allow this search to perform quicker and more efficiently. In XAML, I have a DataGrid and a ...
Mike's user avatar
  • 51
4 votes
0 answers
473 views

Media player subtitles in WPF - Part 2 Handlers and notifications

This is a continuation of Part 1. In this question I will present you with a single class which is the most crucial component of the whole system, it's responsible for firing notifications whenever a ...
Denis's user avatar
  • 8,458
5 votes
1 answer
2k views

Complete ObservableDictionary

In conjunction with a recent question of mine, I found that an ObservableDictionary would be very handy for my situation, so I decided to implement one. I've ...
Denis's user avatar
  • 8,458
3 votes
0 answers
480 views

Media player in WPF - Event binding

I recently started making a media player, this is the first time I'm using WPF and I found that most project are utilizing the MVVM architectural pattern, I haven't used that one either but I decided ...
Denis's user avatar
  • 8,458
1 vote
1 answer
666 views

C# Events in a Tic Tac Toe game

I am new to coding and am trying to understand events what is an annoying stage but super important I guess. I just made a Tic Tac Toe game and it is working but not really "beautiful" coded. I really ...
Pr0gr4mm3r's user avatar
2 votes
2 answers
533 views

Automatic redrawing in WPF

I would like to re-render my WPF chart control when data source is changed. My minimum requirement for a data source is IEnumerable<Point> but it could be ...
Dmitry Nogin's user avatar
  • 6,131
4 votes
2 answers
580 views

Handling events in a multi threaded environment

I have a service that raises multiple events, some of them can be raised at the same time. I need to process those events and run a potentially long running method based on the event arguments. What I ...
Yoav's user avatar
  • 319
1 vote
3 answers
129 views

Update extremities losses when selected type changes

The following code works, but is it a good idea to call another method in a setter? ...
Bobby Tables's user avatar
6 votes
2 answers
444 views

Is my Delegate defined the right way and does it need to transform to a pretty Event butterfly?

I have read so many bed time stories and ins and outs of how delegates work and why events are to be replaced with delegates (surely not all the time) and just couldn't get my head around it. I am ...
Mehrad's user avatar
  • 812
4 votes
1 answer
1k views

Possible memory leak with WPF Custom Control?

I might have a potential memory leak with my custom control. Do I actually have one? ...
myermian's user avatar
  • 165
4 votes
1 answer
4k views

Preventing keydown delay

I created a class to prevent the default delay which happens when holding down the key on Windows Forms. It seems like the class is working correctly but I don't know if I'm using the best practice. ...
ctulu's user avatar
  • 325
3 votes
1 answer
661 views

Optimizing a very simple wpf app - attempt on handling 2 buttons with a common event

I am quite new to event programming in C# specially in WPF. I have made a very simple core app which I am planning on extending. It's very simple as its purpose is learning curve and doing things ...
user avatar