Click here to Skip to main content

Articles by Ivan Krivyakov (Articles: 17, Technical Blogs: 50, Tip/Trick: 1)

Articles: 17, Technical Blogs: 50, Tip/Trick: 1

RSS Feed

Average article rating: 4.66

Applications & Tools
General
Posted: 21 Oct 2006   Updated: 11 Feb 2007   Views: 57,569   Rating: 4.00/5    Votes: 10   Popularity: 4.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 40   Downloaded: 389
How to write unit tests in C++ and run them in nUnit
Web Services
General
Posted: 19 Feb 2007   Updated: 19 Feb 2007   Views: 21,434   Rating: 2.57/5    Votes: 3   Popularity: 1.23
Licence: The Code Project Open License (CPOL)      Bookmarked: 10   Downloaded: 0
Using WSE to talk to a UNIX-based Kerberos-enabled web server.
Posted: 16 Apr 2011   Updated: 8 Jun 2011   Views: 24,266   Rating: 4.40/5    Votes: 4   Popularity: 2.56
Licence: The Apache License, Version 2.0      Bookmarked: 12   Downloaded: 1,285
A program that checks whether SOAP message conforms to WSDL
C#
How To
Posted: 16 Aug 2014   Updated: 16 Aug 2014   Views: 3,694   Rating: 4.89/5    Votes: 7   Popularity: 4.12
Licence: The Code Project Open License (CPOL)      Bookmarked: 12   Downloaded: 0
How to control XML serialization in code, without custom attributes
Samples
Posted: 4 Sep 2008   Updated: 4 Sep 2008   Views: 20,972   Rating: 5.00/5    Votes: 15   Popularity: 5.88
Licence: The Code Project Open License (CPOL)      Bookmarked: 25   Downloaded: 205
C# arithmetic expressions compiled into 8086 machine code (yes, you can run it on Vista :-))
Posted: 11 Jul 2012   Updated: 14 Aug 2012   Views: 50,395   Rating: 4.89/5    Votes: 41   Popularity: 7.87
Licence: The Code Project Open License (CPOL)      Bookmarked: 150   Downloaded: 3,441
Self-installing windows service that monitors computer's WAN address and sends e-mail when it changes
.NET Framework
General
Posted: 30 Jul 2010   Updated: 30 Jul 2010   Views: 15,556   Rating: 4.43/5    Votes: 7   Popularity: 3.80
Licence: The Apache License, Version 2.0      Bookmarked: 25   Downloaded: 220
What serializer is the best for saving application state?
Posted: 11 Aug 2013   Updated: 11 Aug 2013   Views: 5,806   Rating: 4.88/5    Votes: 6   Popularity: 3.79
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
AppDomains are often recommended for loading plugins, but they do not allow to handle plugin failures in a safe manner
Windows Presentation Foundation
Controls
Posted: 20 Jun 2012   Updated: 21 Jun 2012   Views: 10,109   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: The Code Project Open License (CPOL)      Bookmarked: 7   Downloaded: 224
How to deal with a stubborn combo box that won't let you cancel invalid user selection
Posted: 19 May 2010   Updated: 19 Sep 2012   Views: 28,727   Rating: 5.00/5    Votes: 13   Popularity: 5.57
Licence: The Apache License, Version 2.0      Bookmarked: 23   Downloaded: 725
Many WPF controls can display arbitrary XAML inside them. How can I do that with my own controls?
Posted: 18 Oct 2012   Updated: 18 Oct 2012   Views: 6,832   Rating: 4.85/5    Votes: 6   Popularity: 3.76
Licence: The Code Project Open License (CPOL)      Bookmarked: 10   Downloaded: 269
How to host a WinForm control from another appdomain in a WPF application
Posted: 17 Sep 2012   Updated: 2 Dec 2012   Views: 29,223   Rating: 4.94/5    Votes: 26   Popularity: 7.03
Licence: The Code Project Open License (CPOL)      Bookmarked: 28   Downloaded: 1,119
This is an alternative for "Persist the Visual Tree when switching tabs in the WPF TabControl (optimized)".
Posted: 27 Dec 2012   Updated: 11 Mar 2014   Views: 34,955   Rating: 4.98/5    Votes: 23   Popularity: 6.78
Licence: The Code Project Open License (CPOL)      Bookmarked: 53   Downloaded: 0
Baktun Shell is a demo app that hosts its child windows in separate processes.
Data Binding
Posted: 27 Feb 2011   Updated: 27 Feb 2011   Views: 24,750   Rating: 4.78/5    Votes: 8   Popularity: 4.29
Licence: The Apache License, Version 2.0      Bookmarked: 9   Downloaded: 630
ContextMenu's data context is not updated when its parent's data context changes
Posted: 10 Aug 2011   Updated: 27 Aug 2011   Views: 17,469   Rating: 4.85/5    Votes: 9   Popularity: 4.62
Licence: The Apache License, Version 2.0      Bookmarked: 28   Downloaded: 1,109
Value converter for WPF/Silverlight that supports arithmetic experssions.
Templates
Posted: 21 Aug 2012   Updated: 29 May 2014   Views: 32,161   Rating: 4.95/5    Votes: 18   Popularity: 6.21
Licence: The Code Project Open License (CPOL)      Bookmarked: 46   Downloaded: 744
How to properly create WPF Data Tempaltes in code
Internet / Network
Remoting
Posted: 17 Dec 2007   Updated: 17 Dec 2007   Views: 15,140   Rating: 4.89/5    Votes: 5   Popularity: 3.41
Licence: The Code Project Open License (CPOL)      Bookmarked: 16   Downloaded: 0
Rhino Mocks version 3.3 can mock any MarshalByRefObject.

Average blogs rating: 4.33

Combo & List Boxes
ComboBox Controls
Posted: 30 Apr 2014   Updated: 30 Apr 2014   Views: 3,962   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Apache License, Version 2.0      Bookmarked: 4   Downloaded: 62
WPF: Editable ComboBox Text disappears
Extending the List Control
Posted: 12 May 2010   Updated: 12 May 2010   Views: 18,956   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: The Apache License, Version 2.0      Bookmarked: 7   Downloaded: 0
WPF: Context Menu on List Item
Grid & Data Controls
General
Posted: 16 Dec 2010   Updated: 16 Dec 2010   Views: 8,950   Rating: 4.25/5    Votes: 3   Popularity: 2.07
Licence: The Apache License, Version 2.0      Bookmarked: 3   Downloaded: 0
WPF: Passing Data to Sub-Views via DataContext Causes Trouble
Grid controls
Posted: 28 Dec 2010   Updated: 28 Dec 2010   Views: 9,132   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
You can define a tooltip on a grid (or border), but it will show up only when the mouse hovers over space “occupied” by a grid item. Empty space will not generate the tooltip. E.g. The tooltip will show only when hovering over a small [...]
Tabs & Property Pages
Tabs and Property Pages
Posted: 29 Nov 2012   Updated: 29 Nov 2012   Views: 8,964   Rating: 4.00/5    Votes: 1   Popularity: 0.00
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
Here’s the exception I received today: System.Reflection.ReflectionTypeLoadException. Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. Isn’t it lovely? Do the authors think I have a little leprechaun sitting on the user machi
Silverlight
General
Posted: 10 Aug 2012   Updated: 10 Aug 2012   Views: 3,467   Rating: 4.00/5    Votes: 1   Popularity: 0.00
Licence: The Apache License, Version 2.0      Bookmarked: 3   Downloaded: 0
Silverlight's support for clipping is definitely inferior.
Trace and Logs
Trace / Logs
Posted: 25 Oct 2010   Updated: 25 Oct 2010   Views: 6,108   Rating: 4.00/5    Votes: 1   Popularity: 0.00
Licence: The Apache License, Version 2.0      Bookmarked: 2   Downloaded: 0
I never thought about it, but it turns out that exception’s stack trace does not contain the full stack. Instead, it contains only frames between the point where the exception was thrown and the point it is caught. This is bad if exception is caught close to the point of throwing and logged: u
Mobile Development
General
Posted: 2 Feb 2013   Updated: 2 Feb 2013   Views: 4,434   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
Some useful JavaScript code.
Database
SQL Server
Posted: 9 Aug 2010   Updated: 9 Aug 2010   Views: 6,744   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 2   Downloaded: 0
After a long while I am back to dealing with databases directly from ADO.NET. Guys, this is ridiculous. Any serious library designed like that would be heckled. This is what I found (or rediscovered) in the course of one day:if your SqlConnection uses SQL Server local transaction, you must manually
Posted: 7 Sep 2013   Updated: 7 Sep 2013   Views: 2,377   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
All your databases belong to us
C#
General
Posted: 3 Sep 2012   Updated: 3 Sep 2012   Views: 3,636   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 3   Downloaded: 0
PLinq and source IEnumerable thread safety
Posted: 6 Dec 2012   Updated: 6 Dec 2012   Views: 3,642   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 2   Downloaded: 0
A couple of days ago I spent some time trying to find how to make Unity call a factory method when user requests an object. Then I forgot about it, and tried to Google it again. This stuff is surprisingly hard to find, especially given the fact that the method used in Unity 1.x (StaticFactoryExtensi
XML
Serializing
Posted: 25 Jun 2010   Updated: 28 Jun 2010   Views: 7,071   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 5   Downloaded: 0
After a little discussion at work on which XML serializer for .NET to use, I decided to do a little research. The candidates were the regular XmlSerializer, the XAML serializer (XamlWriter / XamlReader) and the DataContractSerializer from WCF. Frankly, all of them suck in different ways...
.NET Framework
General
Posted: 3 Sep 2012   Updated: 3 Sep 2012   Views: 4,488   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 2   Downloaded: 0
Just wrote a quick macro for Visual Studio that would replace with >, etc.
Posted: 8 Feb 2011   Updated: 12 Jul 2014   Views: 17,042   Rating: 4.71/5    Votes: 16   Popularity: 5.66
Licence: The Apache License, Version 2.0      Bookmarked: 12   Downloaded: 0
IEnumerable: Lazy and Dangerous
Windows API
Windows Powershell
Posted: 7 Aug 2014   Updated: 7 Aug 2014   Views: 3,455   Rating: 4.00/5    Votes: 2   Popularity: 1.20
Licence: The Apache License, Version 2.0      Bookmarked: 4   Downloaded: 0
In my current capacity I sometimes descend into the virtually forgotten depths of C++ desktop programming. One interesting problem I needed to solve is how to get notified about a process exit. My program can create potentially unlimited number of child processes, and I need to know when they die. I
Windows Powershell
General
Posted: 20 Apr 2013   Updated: 21 Apr 2013   Views: 4,785   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 3   Downloaded: 0
Scripting on Windows
Windows Presentation Foundation
Controls
Posted: 24 Dec 2010   Updated: 27 Dec 2010   Views: 8,092   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Apache License, Version 2.0      Bookmarked: 0   Downloaded: 0
Story in a nutshell – my custom control was not visible. Reason: we defined default style for the control in our own resource dictionary, which was merged into application resources. It worked fine until we wanted to redefine the style locally in one of the controls. [...]
Data Binding
Posted: 3 Sep 2012   Updated: 3 Sep 2012   Views: 3,586   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Apache License, Version 2.0      Bookmarked: 3   Downloaded: 0
This simple trick stops the binding gremlins on their tracks, as only a dependency property can be their target.
General
Posted: 10 Sep 2012   Updated: 10 Sep 2012   Views: 3,509   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 2   Downloaded: 0
Preventing zombie animations from freezing your properties.
XAML
Posted: 13 Aug 2010   Updated: 13 Aug 2010   Views: 7,325   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 5   Downloaded: 0
Attribute order should not matter in XAML, but sometimes it does...
Exception Handling
General
Posted: 24 Jun 2013   Updated: 24 Jun 2013   Views: 4,045   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 0   Downloaded: 0
How to handle exceptions in plugins hosted in an AppDomain
Game Development
General
Posted: 10 Sep 2012   Updated: 10 Sep 2012   Views: 4,207   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: The Apache License, Version 2.0      Bookmarked: 3   Downloaded: 0
At times I feel that software development is much, much harder than it should be. Ridiculous crappy annoyances await you on every corner, some of them many years old. We all, including the tool vendors, never have time to do the job right, causing people to fall into the same traps over and over aga
Localisation
General
Posted: 30 Dec 2012   Updated: 30 Dec 2012   Views: 3,829   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
Is Turkish the only locale with unusual capitalization?
Macros and Add-ins
Macros
Posted: 11 May 2010   Updated: 11 May 2010   Views: 10,731   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
I am writing a WPF app. In WPF they like very much all kinds of notifications about property changes. Thus, I’ve got a class with a bunch of properties similar to this:    class Person    {        void OnPropertyChanged(string propertyName)        {        …        }         public str
String handling
General
Posted: 13 Jan 2013   Updated: 13 Jan 2013   Views: 10,197   Rating: 4.29/5    Votes: 7   Popularity: 3.66
Licence: The Apache License, Version 2.0      Bookmarked: 6   Downloaded: 0
If there is even a remote possibility that your “constant” value might change in the next version, make it a readonly field.
Threads, Processes & IPC
Threads
Posted: 25 Oct 2010   Updated: 25 Oct 2010   Views: 14,633   Rating: 4.57/5    Votes: 6   Popularity: 3.77
Licence: The Apache License, Version 2.0      Bookmarked: 9   Downloaded: 0
MessageBoxes and worker threads
Posted: 21 Jul 2011   Updated: 27 Jul 2011   Views: 17,894   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Apache License, Version 2.0      Bookmarked: 9   Downloaded: 0
Popular belief (reinforced indirectly by MSDN) is that BackgroundWorker class will marshal the “progress” and “completed” events back to the calling thread. This turned out to be most certainly not true. A more restricted (and closer to reality) form of this belief is that if
Windows 8 Design
General
Posted: 20 Sep 2012   Updated: 20 Sep 2012   Views: 7,583   Rating: 3.73/5    Votes: 7   Popularity: 3.04
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
A couple of weeks ago I have found time to download release version of Windows 8 from MSDN that was available since August 15th. I installed in a virtual machine and played with it a couple of times. I must tell you, I am impressed, and not in a good way. I’ve been using Windows [...]
Design and Architecture
General
Posted: 10 Dec 2012   Updated: 10 Dec 2012   Views: 3,707   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 4   Downloaded: 0
A closer to real life example for object factory.
Uncategorised Technical Blogs
General
Posted: 14 May 2010   Updated: 14 May 2010   Views: 3,670   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
I had an interesting bug the other day. I wrote a foreach loop along these lines:foreach (var entry in controlsByName){    entry.Key.SomeEvent += (sender,args)=>{ProcessControlName(entry.Value);}}Looks innocent enough, right? There is a big catch here. In functional languages we are accustomed to th
Posted: 18 May 2010   Updated: 18 May 2010   Views: 6,297   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 0   Downloaded: 0
T4 – Too Troublesome to Tackle?
Posted: 25 Oct 2010   Updated: 25 Oct 2010   Views: 6,128   Rating: 4.00/5    Votes: 1   Popularity: 0.00
Licence: The Apache License, Version 2.0      Bookmarked: 0   Downloaded: 0
TFS and the KISS principle
Posted: 25 Oct 2010   Updated: 25 Oct 2010   Views: 3,933   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
CSV: Carelessly Saved Values
Posted: 25 Oct 2010   Updated: 25 Oct 2010   Views: 3,729   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 0   Downloaded: 0
One Hour Iteration, or How Much Agile is Too Much
Posted: 25 Oct 2010   Updated: 25 Oct 2010   Views: 7,865   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: The Apache License, Version 2.0      Bookmarked: 4   Downloaded: 0
Some anti-patterns I am experiencing first hand
Posted: 18 Apr 2011   Updated: 18 Apr 2011   Views: 4,406   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 0   Downloaded: 0
WPF Bindings
Posted: 11 Feb 2012   Updated: 11 Feb 2012   Views: 7,397   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
Prism 2.x Weirdness
Posted: 29 Nov 2012   Updated: 29 Nov 2012   Views: 3,499   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 2   Downloaded: 0
I am writing a plugin-hosting WPF application. For variety of reasons I have to put plugin-ins into their own app domains. To name just a few: - plugin unload is required - each plugin has its own config file - plugins may be located anywhere on the disk I am having serious troubles due to [...]
Posted: 3 May 2013   Updated: 3 May 2013   Views: 5,442   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Apache License, Version 2.0      Bookmarked: 3   Downloaded: 0
SSRS production deployment
Posted: 4 May 2013   Updated: 4 May 2013   Views: 4,999   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Apache License, Version 2.0      Bookmarked: 0   Downloaded: 0
Part 2 of SSRS production deployment
Posted: 6 May 2013   Updated: 6 May 2013   Views: 6,593   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Apache License, Version 2.0      Bookmarked: 5   Downloaded: 0
Deploying reports
Posted: 8 Jun 2013   Updated: 8 Jun 2013   Views: 3,772   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
Sending more than 4000 characters from CLR stored procedure
Posted: 8 Jun 2013   Updated: 8 Jun 2013   Views: 5,340   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 2   Downloaded: 0
How to install a NuGet package in 19 easy steps
Posted: 26 Jun 2013   Updated: 26 Jun 2013   Views: 4,769   Rating: 4.00/5    Votes: 1   Popularity: 0.00
Licence: The Apache License, Version 2.0      Bookmarked: 0   Downloaded: 0
About DLL hell in JQuery
Posted: 3 Jul 2013   Updated: 3 Jul 2013   Views: 3,211   Rating: 1.00/5    Votes: 2   Popularity: 0.30
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
I would rather have the message honestly tell me what happened, and only then elaborate on a list of typical reasons.
Posted: 7 Sep 2013   Updated: 7 Sep 2013   Views: 2,853   Rating: 2.00/5    Votes: 1   Popularity: 0.00
Licence: The Apache License, Version 2.0      Bookmarked: 0   Downloaded: 0
This post discusses why I would not recommend SSRS.
Reviews on Third Party Products and Tools
General
Posted: 14 Mar 2012   Updated: 14 Mar 2012   Views: 5,210   Rating: 4.00/5    Votes: 1   Popularity: 0.00
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
Namespaces are a great way to organize code. However, I recently found out that even putting your classes in a carefully organized namespace hierarchy will not shield you from name conflict problems as you move to newer versions of .NET framework or third party libraries. I ran into two rather unfor
Posted: 9 May 2013   Updated: 9 May 2013   Views: 3,441   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 1   Downloaded: 0
Random notes on MDX filtering
Posted: 26 Aug 2014   Updated: 26 Aug 2014   Views: 1,411   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Apache License, Version 2.0      Bookmarked: 0   Downloaded: 0
Observing Unhandled Exceptions In .NET unhandled exceptions can be observed via AppDomain.UnhandledException event: AppDomain.CurrentDomain.UnhandledException += myHandler; // C# In Win32 unhandled exceptions are observed via SetUnhandledExceptionFilter call: SetUnhandledExceptionFilter(myfilter); /

Average tips rating: 5.00

Programming Tips
General
Posted: 29 Mar 2011   Updated: 29 Mar 2011   Views: 5,133   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
How WPF binding systems sometimes fail silently.
No reference articles have been posted.

Ivan Krivyakov
Technical Lead Thomson Reuters
United States United States
Ivan is a hands-on software architect/technical lead working for Thomson Reuters in the New York City area. At present I am mostly building complex multi-threaded WPF application for the financial sector, but I am also interested in cloud computing, web development, mobile development, etc.
 
Please visit my web site: www.ikriv.com.


Advertise | Privacy | Mobile
Web01 | 2.8.140902.1 | Last Updated 3 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid