Browse by Tags
All Tags »
Code Example (
RSS)
There are some bugs in VS2010 RTM. We discovered that some Dynamic Resources from Merged Dictionaries in App.xaml stopped working. See how to fix this...
Some .Net applications are required to run as single instance process (at startup, each process “ensures” that he’s unique). This requirement may come from licensing issues, technical and/or other reasons. Quick search in Google will provide a variety of solutions , most of them are based on WindowsFormsApplicationBase object from VB.Net, usage of Mutex object and other techniques. I don’t like mixing VB with C#, and also Win-Forms solution isn’t “pure” enough for WPF applications. So I wrote my...
This solution can be used in WPF and in WinForms (with some improvements). Many times UI programmer needs to activate window, the activation can be done by using “Activate()” function in window. The problem is that this function will not show window if it is minimized. In that case you can use this workaround: using System ; using System.Windows ; namespace Test { public partial class MyWindow { ...
Recently, I deal with UML design in EA, also I design DB Entities for DBML (Linq2Sql). In regular way, programmer creates DB table and imports it into VS solution as entity class for DBML. But, sometimes we need to create DB table from existing class...
Many 3D editors can export 3D scenes as OBJ files, these files can be easily imported into WPF project and being used to build complex 3D scenes. See how easy to import 3D scene from 3D editors....
In resumption to my previous post “ How to import 3D model to WPF from 3D Max ” I want to present the “ XAML exporter for Blender ” ( Blender is an open-source cross-platform 3D designer). if(Blender.Name == Blend.Name) { Debug.WriteLine(“Wiiiiii !!!! :)”); } This post will guide you how to use this feature thru simple example. Software requirements for this guide: Blender 2.48a or later, Microsoft Expression Blend 2.0 (Final Release). SDK and Framework requirements: Microsoft...
I’m inviting you to take a part in testing of “ Keys Notificator ”. This is small and useful program for keyboard monitoring that can be used to monitor common keys as [Shift], [Ctrl], [Alt], [Caps Lock], [Scroll Lock] and [Num Lock]. Very useful to alert users about change in keyboard layout like language ([Alt] + [Shift] ENG <=> HEB) or capital letters. The “ Keys Notificator ” is an open-source project and is a part of my community contribution under GNU General Public License . The published...
Recently I’ve required to add Mouse-Wheel support in some of our Silverlight projects. Quickly discovered that unfortunately this feature isn’t supported in Silverlight 2.0. I found some post with sample code that solves this problem and made some changes in “MouseWheelHelper” class, also added “UIElementExtender” class that extends classes that derived from "UIElement"....
I want to present very useful feature “ XAML exporter for 3D Studio Max ”. This feature contains number of MAX-Script files with code that allows exporting 3D scenes from 3D Studio Max to XAML files. “Max2Xaml” Project on Codeplex website: http://max2xaml.codeplex.com . I’ll try to present a simple guide for this feature with some useful example. Software requirements for this guide: 3D Studio Max 2007 or later (I use 3D Studio Max 2009 ), Microsoft Expression Blend 2.0 (Final Release). SDK and Framework...
This is an update for previous post . Added new function to read entire content of Excel File: ''' <summary> ''' Reads the data from excel file. ''' </summary> ''' <param name="strFilePath"> The file path. </param> ''' <returns> DataSet </returns> Public Shared Function ReadDataFromExcelFile( ByVal strFilePath As String ) As DataSet If strFilePath Is Nothing Then Throw New NullReferenceException...
Inspired by "Google Chrome" web-browser I tried to create some small application and called it "Casper Browser". I tried to check the approach of using multi-process architecture for web-browser and for .Net applications in general ......
Recently I've being asked by friend to show him a simple way to read/write data from/to MS Excel files. I found my old project with very simple method of working with excel files by using Microsoft. Jet . OLEDB .4.0 Provider (similar to MS Access ). This is one of many methods to work with excel files. Read data from Excel Sheet: ''' <summary> ''' Reads the data from excel file. ''' </summary> ''' <param name="strFilePath">...
ב- 26.05.2008 פרסמתי פוסט עם מודעת דרושים, שבה נאמר שאנו מחפשים מתכנת לעבודה בחצי משרה.
כפי שניתן לראות בתוכן המודעה, אין דרישות מיוחדות למועמד, מלבד שליטה בסביבת פיתוח דוט-נט ו- MS Visual Studio 2005, העבודה מתאימה גם לסטודנטים ללא ניסיון מעשי. מאז פרסום המודעה יצא לי לראיין מספר מועמדים לתפקיד. בחלק ראשון של הראיון היו שאלות אישיות ועל רקע טכני, בחלק שני המועמד נדרש לבצע תרגיל. את פתרון התרגיל אני מפרסם בפוסט זה....
Recently I required to create some simple control that shows 'wait process' (Vista Style). MS Blend allows you to create cool animated control in one minute or even less.
I want to show how to create very simple continuous animation and some tips in quick animation creation.
...
If .Net project contains embedded resources, we can extract them at run-time (for internal-in-program usage or to save as files). Embedded resource can be attached file of any type (popular types: texts, images, sounds). This post will show how to use assembly functions for resource extraction and how to read/write these resources into files/variables ...
...