Pass event through classes C#

I have a first class that raises an event when some changes occur: public class MyFirstClass { public event EventHandler ChangesHappened; public MyFirstClass() { } public void MyMethod() { //Thing happened Changes...
more »

2017-10-14 01:10 (3) Answers

SDL iOS disable event pump

I have a question about the following SDL function: void SDL_iPhoneSetEventPump(SDL_bool enabled) The documentation says: Use this function to enable or disable the SDL event pump on Apple iOS. Now in what cases is it required or recommende...
more »

2017-09-28 09:09 (0) Answers

WPF: Window.Show() - doesn't work

I have an application that on the first run will ask the user to choose configurations, and open a FirstRunWindow. After that, it launches the MainWindow. Until now I had it wired up with events, and it worked perfectly. But I came to think that ac...
more »

2017-09-03 11:09 (0) Answers

Change text value in html after append

I create a button with append var row = '<tr><td><button class="directly-follow btn" text="Follow">Follow</button></td></tr>'; $('.textWord_about> table > tbody').append(row); I want to change the button t...
more »

2017-08-23 21:08 (4) Answers

Delegate WPF Event

I have a WPF Project with following XAML Code: <GroupBox Name="GroupBox1"> <GroupBox.Header> <WrapPanel> <CheckBox Name="CheckBox1"/> <Label Name="label1" Content="Extend" MouseLeft...
more »

2017-08-10 12:08 (2) Answers

Cicular database update on CollectionChanged event

I have a real conondrum on my hands. I'm using an ObservableCollection in my Model that is bound to another collection in the ViewModel. This lets me easily propagate changes in the ViewModel to the Model and vice-versa. The objects in the Model co...
more »

2017-07-21 13:07 (1) Answers

keyup function performing weird

So I got a little codepen. Everything works so far except a little thing. I got a <h1> and an <input>. When I type something in the text input, its value should get passed to the <h1> in realtime. I tried to do that with a keyup fu...
more »

2017-06-15 15:06 (2) Answers

Is there a DataGrid "rendering complete" event?

When I load my DataGrid, I change the cursor to the wait-icon, load data into my ItemsSource from a database, and then set the cursor back to default. This works great, except for the fact that there is a delay in between when the ItemsSource is popu...
more »

2017-05-30 23:05 (1) Answers

How to detect angular material swipe event ends?

Thare are couple of md swipe events - top, down, left, right. I can pass to them some method from my controller but how to detect that this events are over, ends? I.e. i would like to show something in my view while i'm swiping my screen, when i stop...
more »

2017-05-29 17:05 (0) Answers

Cleanest way to handle all exceptions in C#

I have been investigating the best way to handle all the exceptions of an application without messing much with the code. The main objective here is to send information about the exceptions to an external platform such as Application Insights. So far...
more »

2017-05-25 11:05 (1) Answers