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

JavaScript Function is run twice?

I'm a little bit confused. I have a checkbox that a user can click which determines whether a Private Phone number on my page should be visible to all or only the administration. When the box is clicked I wanna make sure you are allowed to first the...
more »

2017-04-20 09:04 (3) Answers

Javascript stopping an event

Is it possible at all to stop an event and force it to end? string rows // Correctly formatted csv string. csv .fromString(rows, { headers: false }) .on('data', (data) => { if (condition) { // force to end. } } .on('end', ...
more »

2017-04-10 11:04 (2) Answers

Why is the cyclomatic complexity of an event 2?

I'm scrutinizing cyclomatic complexity in an application with the purpose of testing anything that's got a cyclomatic complexity greater than 1. What I'm seeing is that a very simple event's add accessor has a cyclomatic complexity of 2. Why is this...
more »

2017-03-26 07:03 (1) Answers

Delegates & Event Listener slow/delay randomly

I have develop a WPF Kiosk application with delegates and event handler. I follow the tutorial from http://csharpindepth.com/Articles/Chapter2/Events.aspx and everything is working fine. But when i deploy it to my testing device in Win7 32 Bit plat...
more »

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