WPF Global Exception Handler

Tuesday, December 9, 2014

I decide to write this post because I’m facing too many applications that crash, yes just crash – no massage or recovery just crash!!! For some application it feels like 50% chance to get an exception, for me when an application crashes frequently I stop using it when I can find a proper replacement, but not always I can find suitable a replacement. In case you don’t know what I’m talking about here is a small application I’ve created to demonstrate what I’m talking about. Now, it doesn’t required a lot of work to handle those unhandled...

WPF WebBrowser – getElementsByClassName Isn’t Working

Wednesday, October 2, 2013

Working on a WPF app for a customer we’ve faced a strange problem, our WPF app display some HTML content and allow user actions on the Web Browser control – Expend and Collapsed div elements. Because the JavaScript code is simple I don’t want to add any external library to our generated HTML and JavaScript code. Here is how the Expend and Collapse code looks like: function toggleAllItems(show) { var text = '+'; var style = 'none'; if (show) { ...

WinRT Toast Notification From Desktop Application

Wednesday, January 30, 2013

The post title maintained Toast Notification but after reading this post we'll be able to perform API calls to WinRT from your Desktop application. As you know WinRT exposing API’s for three developer languages: C#, C++ and JavaScript, this means that from each language you’ll be able to perform WinRT calls. The idea is based on Windows Metadata File (winmd) that expose those APIs that can be consumed across a variety of technologies and languages. Download Demo Project So why not using those calls from a desktop application? for example one of the great...

WPF WebBrowser – How To Disable Sound

Monday, September 5, 2011

Tweet Today I’m working on a editor application for JavaScript and HTML5 using WPF WebBrowser, when working with the browser control I noticed that each time I reload the page or click some links there is an annoying sound. Because my application is reloading the page very frequently I had to disable the WebBrowser sound. In order to do that I used CoInternetSetFeatureEnabled (Enables or disables a specified feature control.), I’ve made a simple test application to demonstrate this feature. Download Demo Project Make sure your application has reference to - using System.Runtime.InteropServices; ...

Kinect Reception – Tech Stuff

Sunday, August 28, 2011

Tweet In my previous post Kinect Reception–Introduction I’ve talked about Kinect Reception and What it is, in this post I’m going to talk more about How the Reception Application works. Using Kinect events I can see when user enters the frame, using two timers I can check if the user is just passing  by or is standing in front of the camera. The below image describe the application flow, at the beginning the application will show random videos, when the Kinect Skeleton Event will raise then the Serious Timer will begin ticking, each tick based on the FPS rate will be aggregate...

Kinect Reception–Introduction

Friday, August 19, 2011

Tweet Since Microsoft has released the Kinect.NET SDK I wrote many articles on that subject: Kinect – Getting Started – Become The Incredible Hulk Kinect – Calculator – Adjust Skeleton Movements To Mouse More on Kinect I think Kinect it very cool and I’m searching for more projects and good ideas for Kinect, couple of days ago I talked with my friend Guy Burstein...
no comments

Kinect-Could not load file or assembly ‘INuiInstanceHelper.dll’

Monday, July 25, 2011

Tweet If you’re playing with Kinect you might have saw the following error messages: "Could not load file or assembly 'INuiInstanceHelper.dll' or one of its dependencies. The specified module could not be found." “The invocation of the constructor on type “Some.Window” that matches the specified binding constraints threw and exception.’ Line number ‘4’ and line position ‘9’.” I’ve tried to Uninstall Kinect SDK, perform restart and try to install it while I make sure all Visual Studio instances are closed, but I got the same result. So I’ve checked if the INuiInstanceHelper is registered in GAC using the following command: gacutil /l INuiInstanceHelper So...

Create Your Own WP7 Deployment Application

Saturday, July 23, 2011

CodeProject Couple of days ago Microsoft opened AppHub for Israel as well, I’ve started to write more game and applications for WP7 (WP7 Submit Application - The attribute is missing on the entry assembly). While working on several applications I noticed that I want to see the application properties before deploying them inside my WP7 device, when working in Visual Studio 2010 It’s easy because you can deploy your project from Visual Studio himself but I’m also working with many XAP file out side of Visual Studio and the default application deployment didn’t give me...

Kinect – Calculator – Adjust Skeleton Movements To Mouse

Sunday, July 3, 2011

CodeProjectIn my previous post Kinect – Create Buttons I’ve showed one approach how to create Kinect Buttons for Windows, over the next posts I’ll show more ways to accomplish that by moving windows Cursor based on Kinect Skeleton Right Hand Position. Why To Create Kinect Button? Why not using windows cursor and create brilliant hand or head () movement to simulate Click, so we don’t need to create designated Kinect Buttons. Answers: You had to stand at least 1 meter from the computer screen and even so I’m young I can’t see very well from that distance… Kinect precision is still not perfect...

Sela Dev Days – MTM, Automation and Load Testing Lectures

Thursday, June 30, 2011

CodeProjectYesterday I had the pleasure to give a Full day lecture about Microsoft Test Manager, Unit Tests, Web Test, Coded UI Test and Load Testing. We started with a short talk about ALM and ways to improve your development and Testing process using Agile, CMMI and Scrum, then we apply this to how should we work with Microsoft Test Manager with different methodologies (Scrum etc) to create better Test Coverage and better experience for Tester and Developer alike.  After we played with Microsoft Test Manager, we move to Test Automation with Visual Studio 2010,...