This is the second part of the Developing for Visio series
. Today, we’ll speak about how to analyse programmatically parent-child relationships in Visio diagrams. Often, especially in block diagrams there are boxes that contain other boxes.
However, during iterating through shapes in a Visio diagram such a relationship is not preserved.
This tutorial demonstrates how to extend the Visio functionality by writing an Visio add-in with VSTO, creating a standalone application with both Windows Forms and WPF, and finally by building a browse application with WPF (XBAP).
WPF DataGrid has a very annoying behaviour of forcing users to click twice on a checkbox in order to check or uncheck it. There are a number of solutions proposing handling mouse preview events and switching a DataGrid into the edit mode manually. The problem with such solutions is that the require writing quite a lot of extra code that seems to be an overkill for such a minor, yet irritating problem. I propose a better option, to use a DataGridTemplateColumn
instead of DataGridCheckBoxColumn
Indeed, you can easily place a CheckBox inside a DataGridTemplateColumn, bind it to a corresponding property and it will be checkable/uncheckable with a single click.
Often you need to make a full copy of a database, for example, if you you want to change something and see how it goes without ruining a production database. And if you happen to use SQL Server Express edition you are not so fortunate because famous Copy Database Wizard does not seem to be unavailable in SQL Server Express Management Studio. There is a simply solution, however. It is using the backup and restore features.
When I was writing my introductory post
about the newly released version of SQL Server or more precisely about just a CTP (Community Technology Preview) version, I complained about an apparent lack of graphical tools similar to SQL Server Management Studio or at least similar to Visual Studio Server Explorer. Such a lack made an exploration of indeed promising features of SQL Server CE 4.0 a slightly tricky task. However, as I pointed out in my previous post that shouldn’t actually prevent programmers from playing with this database, because in spite of non-existence of GUI tools there was already an API released, thus it was possible to interact with the database system by just issuing SQL statements from C# or any other .NET language. However, I was wrong in my statement about a lack of GUI tools, in fact they do exists.
- What SQL Server CE 4.0 means for ASP.NET developers
- Where to get and how to install
- How do I create my tables?!!
When I came across a story
on the newest version of SQL Server CE by Scott Guthrie, as well as a blog post
in the SQL Server CE team blog, I was amazed that it was possible to run on a web server for ASP.NET application in the Medium Trust mode without any installation. This literally means that finally one can use SQL for storing data even though their hosting plan, for example, doesn’t allow having a SQL Server database.
Facebook has recently released a new tool for accessing its vast amount of data. The name of the tool is the Graph API. The Graph API allows you to literally interact with any Facebook object, including users, their photos, posts, groups, pages, as well as connections between object, i.e. listing people’s friends, group members and page fans, etc. Moreover, this interaction isn’t only single-directional, in fact you can also modify object, add and delete them.
- You can become a successful developer without a degree
- University broads your mind
- What about a scientific career?
- Students life is just fun
It’s a popular and ranting debate whether one has to take a degree or not to become a successful programmer. One side of the debate always say that you can do without having a degree and people come up with examples of people who for some reason didn’t obtain a degree but became quite successful.
Design patterns are not a universal tool that can be applied to any project or be used with any programming language. Quality code can be produced without implementing any pattern or even without using OOP. One shouldn’t think of their colleagues as of bad developers if they don’t know the names of fancy design patterns. Moreover, not any single programming project is a business application.
Recently I have received a nice present from Microsoft (yes, I do receive some cool stuff from them, since I’m a Microsoft Student Partner) – a Microsoft webcam.
I must admit I’m not an expert in web cameras, although I’m using my laptop built-in webcam very intensively, since I’m living in the UK now away from my parents who are in Russia and whom I call each day with Skype. Anyway, the video quality of my built-in web camera is
pretty awful, but I wasn’t aware of that before, I mean there was a noise and the video at times wasn’t very smooth, but I didn’t pay much attention to that.
However, after unpacking and installing the Microsoft camera, I was simply blown away by the video quality. They claim this camera supports HD with 720p, but since I’m not in the HDTV bandwagon, I can’t tell you what it is, you’d better ask Wikipedia
about tis. Anyway, the quality is superb, moreover it supports different resolutions up to 1280x720.