Guide: How to Install and Run Windows 8 and Visual Studio 2012 with Phone Emulator in Virtual Machine

21 בפברואר 2013

Many developers that want to develop apps for Windows Phone 8 are required to install Windows 8 on their PCs, because Visual Studio 2012 that allows developing projects for Windows Phone 8 require this. Also, phone emulator in VS12 requires Hyper-V option that isn’t included in Windows 7. In this post I’ll explain how to avoid installing Windows 8 in order to run VS12 with phone emulator. 1. Get Windows Setup: If you don’t have your own installation of Windows 8 you can download it for free from Microsoft’s website: http://msdn.microsoft.com/en-us/evalcenter/jj554510.aspx ...

Useful Tip: Solution for known issue with Merged Dictionaries in App.xaml (VS 2010 RTM)

23 באפריל 2010

At last days many .Net developers upgraded their Visual Studio to RTM 2010. There are some “Known Issues” in this release.After painful upgrade we discovered problem in our WPF project: Some Dynamic Resources from Merged Dictionaries that referenced in App.xaml stopped working (although this code worked without any problems in Beta-2).We found some workaround: Add some style without specific key for unused element in Resource Dictionary and this will trigger WPF to load resources from Merged Dictionaries. Example: <Application x:Class="SomeNamespace.App"              xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">       <Application.Resources>             <ResourceDictionary>                   <ResourceDictionary.MergedDictionaries>                         <ResourceDictionary Source="/SomeNamespace;Component/Styles.xaml"/>                         <ResourceDictionary Source="/SomeNamespace;Component/Brushes.xaml"/>                   </ResourceDictionary.MergedDictionaries>                                 <Style TargetType="{x:Type Line}"/>...

Single Instance Application Manager

13 בפברואר 2010

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 version of “Single Instance Manager”… This post will provide short description about this small project and links to download the...

Daily Tip: How to Activate Minimized Window (Form)

24 בדצמבר 2009

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...

פוסט 17: מסמך סטנדרטים לעיצוב ופיתוח של ממשק משתמש

28 בנובמבר 2009

זהו פוסט המשך לפוסט הקודם, אשר שייך לסדרת הפוסטים בנושא UI . בפוסט זה אפרט שלבים וטיפים שיעזרו בבניה של מסמך סטנדרטים של ממשק משתמש. GUI Standards Document בפרויקטים גדולים של מערכות תוכנה עם ממשקי משתמש רבים קיים צורך בכתיבת מסמך סטנדרטים בתחילת הפרויקט. מסמך זה משמש את כל הגורמים המעורבים בעיצוב-פיתוח GUI: מנתחי מערכות (System Analysts), מעצבי מודולים (SW Designers) ומתכנתים (האנשים שבפועל בונים GUI ומקודדים לוגיקת קליינט). מסמך סטנדרטים הנו מרכיב הכרחי בכל שלבי הפרויקט. לרוב עיצוב ראשוני (ובחלק מהמקרים סופי) של מסכי המערכת נעשה ע"י מנתחים. מכוון שהם נמצאים בחזית, ז"א מול לקוח. חלק מתהליך הניתוח והאפיון...

“Class2Table” Exporter

30 בספטמבר 2009

“Class to Table” = “Entity to SQL” 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. I’m pretty sure that there are some free tools that can do this job, but as many code freaks I prefer to develop my own tools (mostly without looking for existing solutions). I want to share my community contribution at http://class2table.codeplex.com/ with small application that allows generation/creation of DB tables...