Tag | XAML 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 ...
Windows 8 is here (or at least very close) and that was the main feature of this morning’s key note. Antoine LeBlond started off by apologizing to the IT professionals since he planned on showing code. I’m not sure if IT Pros are that easily confused or why you would need such a disclaimer. Developers do real work, IT Pros just play with toys (just kidding). The highlights of the Windows 8 keynote for me started with some of the UI design elements that I had not seen when I was shown one of the Build ...
A new updated release of everybody favourite XAML to CPP conversion tool (at least because it’s the only one available!). New features: - support for resource dictionaries (app.xaml if you use Blend to generate your XAML) Bugfixes: - the parameters for the mouseleftbuttondown and up events were incorrect As usual you can download the new release here: http://cid-9b7b0aefe3514dc5... Technorati Tags: XAML,Silverlight for Windows Embedded ...
With in a span of last few weeks; more people have asked me the same question over and over again - Below is my rant on the same: what's the deal with dependency properties? I seriously think that dependency properties is one thing which didn’t get the respect and attention it deserved. I mean when i first discovered it; i was in awe!! Its such a strong concept that i was mesmerised by both its power and even based few of my “design” on its principle!! for a understanding on DPs consider my previous ...
Databinding in SL and WPF are interesting concepts and once mastered really solves many a issues with cleaner code. In XAML everything is dataaware. Elements can be bound to data from a variety of data sources in the form of common language runtime (CLR) objects and XML. In this post we will discuss about Simple CLR Object binding using code Simple CLR Binding using XAML only – Demo value converters Control Binding – Slider and textbox Implementing IValueConverter Validation Update Source Trigger ...
Dependency properties is one concept which i always marvel. As programmer / developer i always like the concept, as by just introducing DP, so many stuff now is so easy(Read Template programming in XAML). DP is called a BEAST (in Silverlight and WPF) for reasons of complexity involved in understanding them. Also, of course, because they are so powerful language paradigm. I sometimes do think DP did not actually got their due. I mean, so many efforts is gone into explaining Lambda expressions, LINQ, ...
In Visual Studio click on Debug –> Exceptions, and when the dialog box appears click “Add”. Fill it in as below: Be sure to check when “Thrown”. Now your code will break on the C# code where the error is thrown and you can find it more easily. Technorati Tags: WPF,XAML,Visual Studio ...
A lot of times, I need to show or hide a textbox based the value of a checkbox. In WinForms 2.0. This was easy: myTextBox.Visible = myCheckBox.Checked; With the new Visibility Enum in WPF, this becomes a bit trickier. To accomplish this, you need to implement a converter that will accept a boolean value and return a visibility value. The converter I used is here: using System; using System.Collections.Generic; using System.Text; using System.Windows.Data; using System.Windows; namespace ParaPlan.Converters ...