Tag | WPF Posts

Ran into a problem that needed solving that was kind of fun. I’m not a XAML guru, and I’m sure there are better solutions, but I thought I’d share mine. The problem was this: Our designer had, appropriately, designed the system for a 1920 x 1080 screen resolution. This is for a full screen, touch screen device (think Kiosk), which has that resolution, but we also wanted to demo the device on a tablet (currently using the AWESOME Samsung tablet given out at Microsoft Build). When you’d run it on that ...
It’s really exciting news that new SDK V1.5 Kinect for Windows was released on May 21st 2012. There are lot of new features and enhancement made as part of this release. Let me highlight few here and I will try to come up with some demo we can explore them in more detail. 1. Seated mode skeletal tracking was included in this release, which can track upto 10 joints. 2. Improved skeletal tracking in near mode and better performance. Also joint orientation info to determine simple pose detection, which ...
HiI was doing some test with code first approach in EF. Then while populating the Gridview i was getting error like thisData binding directly to a store query (DbSet, DbQuery, DbSqlQuery) is not supported. Instead populate a DbSet with data, for example by calling Load on the DbSet, and then bind to local data. For WPF bind to DbSet.Local. For WinForms bind to DbSet.Local.ToBindingList()... solving this error we have to write the code like this private void FillGrid() { using (var Context = new ...
Hello folks, Recently I got involved in a project for building a demo application for one of our customers with Kinect for Windows. Yes, something similar what Tom Cruise did in the movie Minority Report. Waving arms, moving stuff around, swipes, speech recognition, manipulating computer screens without even touching it. Pretty cool!!! The idea in the movie showed us how technology would be after 50 years from that day. Minority Report Movie clip. Well, that 50 years of time frame got squeezed and ...
The APress $10 Deal of the day at http://www.apress.com/97814... for today is Pro WPF and Silverlight MVVM"WPF and Silverlight are unlike any other user interface (UI) technologies. They have been built to a new paradigm that—if harnessed correctly—can yield unprecedented power and performance. This book shows you how to control that power." ...
MVVM_Original_195x100

I just pushed the following to Codeplex:

Read the rest of this entry »

So, day 1 of DevWeek. Lots and lots of Windows 8 and WinRT, as you would expect. The keynote had some actual content in it, fleshed out some of the details of how your apps linked into the Metro infrastructure, and confirmed that there would indeed be an enterprise version of the app store available for Metro apps.) However, that's, not what I want to focus this post on. What I do want to focus on is this: Windows 8 does not make .NET developers obsolete. Phew! .NET in the New Ecosystem In all the ...
Introduction I’ll be presenting a session at Sweden Windows Azure Group (SWAG) on Monday, as well as presenting on the Windows Azure Service Bus at various other events. I thought it would be fun to look at implementing some of the Enterprise Integration Patterns using the brokered messaging capabilities. I’ll use this article in the next release of Windows Azure Service Bus Developer Guide, and it will probably end up as a “challenge lab” for my Service Bus course. As a long-time BizTalk developer ...
Applied WPF 4 in Context (http://www.apress.com/9781... starts with a simple introduction to WPF and then shows a complete WPF application from sketch to completed code. This APress web site states "This book can be used by a junior developer to learn WPF and understand how to architect a layered application, and it can also be used by a senior developer as a reference for developing scalable WPF applications. " - this summerises the book very effectively as it is indeed an excellent book ...
It is about time to look at the new .NET Framework 4.5 release along with the brand new Visual Studio 11 Beta 1. Besides the new features I wanted to see if the massive performance complaints have been taken and addressed. First the good things. VS11 Beta 1 does start a lot quicker as its predecessors. It is nearly as fast as VS2008 which was from the performance aspect the best release since VS6. This is great news. Below are some numbers I did compile on my Windows 7 x32 PC with a Intel Duo 6600 ...
With modern frameworks available that were built with loose coupling and separation of concerns in mind, working in WinForms may seem like a testability wasteland. But there are times when the options of WPF with MVVM or MVC on the web are not available, and you’re stuck with WinForms. But fear not, the Mode-View-Presenter pattern is here to save the day! If you are not familiar with the MVP pattern, the idea is that you have a presenter, which handles all the interactions between the user and the ...
Hello everybody, in this first post, I will introduce myself. I am Safa HAMDI, a Tunisian software engineer; I am specialized in DOTNET development. In this blog I will share with you my tips and tricks about Silverlight, wpf and wcf. Hoping that my future posts will be useful. So welcome in my blog and I will be grateful for your feedbacks ...
Translate this pageArabicBulgarianCatalanC... SimplifiedChinese TraditionalCzechDanishDutch... CreoleHebrewHindiHungarianI... TranslatorCheck out this page in {0} translated from {1}translated fromOriginal:Translated:Aut... translation powered by Microsoft® TranslatorStart translatingStop translatingCloseClose ...
Composition is an integral part of Windows 8 UI design from both aesthetic and logical perspectives. This post modified my previous post, Refactoring Windows 8 Code-Behind to MVVM. adding to the variety of compositional examples. I’ll start with an explanation of composition in Windows 8, modify the previous code to show the power of composition, and then highlight a few more existing examples of where composition naturally fits into the Windows 8 UI environment. Understanding Windows 8 Composition ...
Something I came across that I never knew was possible was that you can put c# code inline in a XAML file in a WPF app (I assume this would work in Silverlight as well). Not that you would ever want to do this, but sometimes you just need those geek points! Make a WPF application, in the XAML file put the following… <Grid> <Button x:Name="button1" Click="button1_click">te... <x:Code> void button1_click(object sender, RoutedEventArgs e) { button1.Content = "Inline Code ...
Today's $10 Deal of the day from Apress at http://www.apress.com/97814... is Applied WPF 4 in Context"Applied WPF 4 in Context shows developers that applications don't exist by themselves—they sit in the real world, with its attendant business challenges and requirements. This book shows how WPF technologies and best practices can be drawn together effectively to create powerful and elegant Windows applications." ...
While the title of this post suggests focus on LINQ to Twitter, it also indicates that I’ll be discussing how to build a Windows 8 Metro application. The application itself will display a list of tweets from Twitter’s public feed. In the sections that follow, you’ll read background information on pre-requisites to understanding the post, learn how to get LINQ to Twitter working with Visual Studio 11, and then see a step-by-step on how the application is built. Getting Started You can build Metro ...
Windows Azure Fieldnote Summary Windows Azure Drives [1] provide a means to represent a file based (disk drive) persistent storage option for the various role types within Windows Azure Compute. Each of the roles within Windows Azure can mount and utilize for persistent storage (that survives reboot, reimaging, and updated deployments, of a role instances). During the mounting of a VHD as a CloudDrive, the managed classes have no means to control the drive letter assignment this directly through ...
JetBrains have recently released ReSharper 6.1, along with compatible updates to dotCover (version 1.2) and dotTrace Performance (version 4.5.2). Here is a list of common developer tasks that ReSharper 6 helps handles better than previous versions: Improve Visual Studio responsiveness: While developing ReSharper 6.0 and 6.1, Jet Brains have fixed more than 200 performance and memory consumption issues, as well as over 2900 bugs!Use proper tooling for web development: ReSharper 6 introduces extensive ...
I was trying to port an old app from c# 2.0 to WPF in 4.0. In one place I was using a Timer to handle filtering of a list from a text box. This kept the list from constantly being updated while the user is typing because it was getting data from the database. I set a 250 millisecond interval so whenever they paused it would update the list. The Timer class apparently got completely redefined in .Net 4.0. It used to have a Tick event, but this was changed to Ellapsed. Also I found out that it didn't ...
The current version of MVVM Light had a couple of issues in the project templates. The most annoying one was causing a problem when creating new projects: The GUIDs used to uniquely identify the project were in fact not re-generated properly every time, and we ended up with the same GUID in every new project. The symptoms are the following: If you side-load an MVVM Light application, and then side-load another one, you will see that the first one is overwritten. Note however that this is only an ...
The latest release of the Community TFS Build Extensions include a brand new tool called Community TFS Build Manager and has been created for two reasons: An implementation of the Team Foundation Build API which is referenced by the Rangers Build Customization Guidance V2 (available H1 2012) Provide a solution to a real problem. The Community TFS Build Manager is intended to ease the management of builds in medium to large Team Foundation Server environments, though it does provide a few features ...
Wishing a very happy and blessed New Year to you in advance! A new release of Microsoft All-In-One Code Framework is available on December 29th. We expect that its 11 new code samples covering typical programming scenarios in Windows Phone 7, ASP.NET, WPF, Windows Shell, and WDK would ease your development in the coming New Year. You can download the code samples using Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download samples on demand, ...
Everyone has an opinion. When you embark upon your first real job as a programmer you will find this out very quickly. I have found that software developers can be some of the most opinionated and dogmatic people you will ever meet. This certainly is not a bad thing. However, young programmers will need to cultivate the ability to make their own minds up when it comes to how to write software. There are those who start out in a corporate environment where the styles and conventions used have already ...

I just pushed two big updates to MVVM Light setup components.

Read the rest of this entry »

What could you build with the XBox Kinect? Well we want to know! Connect your Kinect to your PC and build an application using your favorite .NET language. Kinect for Developers is a 2-day workshop for developers, artists and technicians interested in Kinect hacking or 3D scanning. This hands on workshop will teach you the basics of programming for Kinect and the potentials for developing on video and depth sensor cameras. Expect live demonstrations, presentations, food, and lots of hacking. You ...
Don’t miss out on these great session with Markus Egger in the Dallas office! Where: Microsoft Dallas Office – 7000 SR-161 (George Bush Turnpike), Dallas, TX 75039 When: Tuesday, December 13, 2011 – 1:30 – 4:30 PM Signup for this FREE event in Dallas Join Markus Egger, Microsoft RD and one of the longest running MVPs, for an afternoon of free information. CODE Magazine and EPS Software are in a unique position to share information based on real world experience in projects that are either our own ...
v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} Normal 0 false false false false EN-US X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; ...
Microsoft just released the version 5 of Silverlight! It’s a great news and I really want to congratulate the whole team on this impressive collective effort. The official announcement is on the Silverlight team blog! Read the rest of this entry » ...
One of the main attraction points to this offering in my review is how does it fit into the work I do and solutions I recommend. Right off, the fact it has capabilities described as Silverlight focus/MVVM , makes it something that intrigued me. I tested the different capabilities it has from using it in WinForms and WPF as well, and Silverlight. One of the main points is the C1DataSource, it shows a level of simplicity through the property dialogs that allows you to move right along with, for example, ...
While working on a WPF application, I had a need to show the wait cursor while performing a long running operation. You would expect the code to look as follows: System.Windows.Input.Cursor previousCursor = someWindow.Cursor; someWindow.Cursor = System.Windows.Input.Cursor... try { LongRunningOperation(); } finally { someWindow.Cursor = previousCursor; } However, I didn't want the long running process tying up the UI thread. I needed to run the long running operation on its own thread. I decided ...
Today is the first day of my fourth year at IdentityMine. I can hardly believe how fast it went, and how exciting the trip has been so far. Read the rest of this entry » ...
One of the sites I go to frequently is www.silverlight.net/showcase. Theres always new stuff showing up here and it gives me tons of ideas. The business section is also awesome because it has tons of samples of great applications that should really jog your brain for ideas. One of the great things about SL and WPF is how we can break the mold of application design and come up with truly great new applications for our users. That’s one are where the showcase can help to get new ideas on things you ...
I was poking around today and found this cool 3D library from the great Josh Smith. You can get the source here: http://thriple.codeplex.com/ Its got some pretty cool stuff there. Se the Panel3D_Demo project to startup and run it. Then you can play around with the sample shown below: Its pretty cool stuff ...
I was just pointed to comment on my friend Andrew Brust’s blog about Silverlight versus HTML 5. Andrews blog is here: http://geekswithblogs.net/a... You can get another idea from another friend of mine Billy Hollis here: http://geekswithblogs.net/j... The commenter is raving about HTML 5 and how that’s the ...
So I was tasked with looking at converting 10 million tracks from mp3 320k to AAC and also Converting from mp3 320k to mp3 128k After a bit of hunting around the tool you need to use is FFMPEG Download x64 WindowsAlso for the best results get the Nero AACEncoder Download Now the command line STEP 1(From Flac)ffmpeg -i input.flac -f wav - | neroAacEnc -ignorelength -q 0.5 -if - -of output.m4aor (From mp3)ffmpeg -i input.mp3 -f wav - | neroAacEnc -ignorelength -q 0.5 -if - -of output.m4aNow the output.m4a ...
While I have always been a fan of libraries that improve coding efficiency and reduce code redundancy I have mostly been using ones that were in the public domain. As part of the Geeks With Blogs Influencers program a got my hands on ComponentOne’s Studio for Entity Framework. Below are my thought after working with the product for several weeks. My coding preference has always been maintainable code that is reusable across an enterprises protfolio. Because of this my focus in reviewing this product ...
The software industry lives within an interesting paradox. IT in the enterprise moves slowly and cautiously, upgrading only when safe and necessary. IT interests intentionally live in the past. On the other hand, developers, and Independent Software Vendors (ISVs) not only want to use the latest and greatest technologies, but this constituency prides itself on gauging tech’s future, and basing its present-day strategy upon it. Normally, we as an industry manage this paradox with a shrug of the shoulder ...
Moved from Home to work and went to fire up my project and after long pause "The provider did not return a ProviderManifestToken string" or even More Abscure ProviderIncompatable Exception Now after 20 mins of chasing my tail re different ver of EntityFramework 4.1 vs 4.2...blahblahblah Look inside at the inner exception A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible DOH!!!! Or a clean translation ...
So I thought I would change the name of my machine so that the other devs can find the TFS server easily. TFS 2005 would use the cool cmd line util tfsadminutil.....alas he is now gone HERE Are the steps to complete Edit the web.config and is usually located on default install C:\Program Files\Microsoft Team Foundation Server 2010\Application Tier\Web Services\web.config <add key="applicationDatabase" value="Data Source=JUSTIN\SQLI01;Initial Catalog=Tfs_Configuration;I... Security=True;" ...
GoodToGo :) Best XML Editor is Altova XMLSpy 2011 http://www.torrenthound.com... For whatever reason Piratebay has trojans and other nasties..Search in torrent.eu for Altova XMLSpy Enterprise Edition SP1 2011 v13.0.1.0 Also if you like the product purchase it in a Commercial Enviroment Any well structured/complex XML can be parsed @ the speed of light using XPATH querys and not ...
On November 12th 2011, I gave a presentation at Chippewa Valley Code Camp titled, “Kinecting the Dots with the Kinect SDK”. As promised, here is the Slides / Code / Resources to my talk. (click image to download slides) The Kinect for Windows SDK beta is a starter kit for applications developers that includes APIs, sample code, and drivers. This SDK enables the academic research and enthusiast communities to create rich experiences by using Microsoft Xbox 360 Kinect sensor technology on computers ...
Introduction Microsoft recently released the Kinect for Windows SDK Beta 2. It contains many enhancements and fixes that can be found here. The only problem with it is that a lot of current demo applications no longer function properly. Today, I’m going to walk you through a typical scenario of upgrading a Kinect application built with Beta 1 to Beta 2. Note: This tutorial covers WPF, but you can use the same techniques for WinForms. 1) Fix the references Let’s start with a fairly popular Kinect ...
Mounting a Drive in a VMRole is a little more complicated then a web or worker. The Web and Worker roles offer OnStart and OnStop events, which you can use to mount or unmount your drives. The VMRole does not have these same events so you have to provide another way for the drives to be mounted or unmounted. The problem I have run into is what if you have multiple drives and you only want to mount certain drives. How do you let your user mount the drive. I am not going to go into details on what ...
Developer’s Guide To Collections in Microsoft® .NET, by Calvin Janes, discusses the various collections available in the built-in NET libraries, as well as the advantages and disadvantages of using each type of collection. Other areas are also covered including how collections utilize memory, how to use LINQ with collections, using threading with collections, serializing collections, and how to bind collections to controls in Windows Forms, WPF and Silverlight. For developers looking for a simple ...
The latest version of the AppFabric ServiceBus now has support for queues and topics. Today I will show you a bit about using queues and also talk about some of the best practices in using them. If you are just getting started, you can check out this site for more info on Windows Azure. One of the 1st things I thought if when Azure was announced back when was how we handle fault tolerance. Web sites hosted in Azure are no much of an issue unless they are using SQL Azure and then you must account ...
Check out the Fault Tolerance Framework: http://windowsazurecat.com/... This is really sweet. You can download the source code, then open it in VS and build it. Then plug into your app to get fault tolerance for SQL Azure, Windows Azure storage, Service Bus and Caching Service. Once you have it built and referenced in your project, it only takes a few minutes to plumb your application to use it. Next week (hopefully) I will post a new WPF app that uses ServiceBus ...
Silverlight 5 provides graphics capabilities which you can use to enrich your applications and make them more attractive. While graphics support in Silverlight is not as comprehensive as in WPF, it is still useful in many scenarios. This article describes the built-in support in Silverlight 5 for graphics. This article will not go into XNA or gaming related graphics. Graphics can generally be categorized as two-dimensional (2-D) and 3-D. Read more of this article at: http://www.c-sharpcorner.co... ...
Today's $10 APress Deal of the day at http://www.apress.com/97814... is Practical WPF Charts and Graphics. "Whether you are an engineer, a quantitative analyst, a teacher, or a student, you will end up dealing with charting applications to some degree, and Practical WPF Charts and Graphics will help you in this endeavor." ...
For those that attended my session on the complexities of asynchronous programming in WPF & Silverlight, find below the latest slide deck and code samples for download ...