Binary Bob’s Blog

25
May

Scale 9 in Silverlight and WPF

Posted By Bob Bartholomay under Blend, Silverlight, WPF.

[updated 7/12/09 to Silverlight 3 RTW] One of the very cool features of Flex that I miss in Silverlight is Scale 9. Sure Silverlight is vector based and if you resize your browser or a container inside your application, vector artwork scales perfectly. But chances are your designer will give you a comp to reproduce [...]

24
May

The new language firehose continues

Posted By Bob Bartholomay under .NET RIA Services, C#, Entity Framework, Silverlight, WPF.

So Microsoft has made Visual Studio 2010 available but I’m going to skip it for now as my “learning queue” is jammed packed already after coming off of a 2 year Flex/Actionscript jag back into the Microsoft world. I had previously gotten used to C# 2.0 features (mainly generics) and now I am processing all [...]

18
May

My MVVM in Silverlight notes

Posted By Bob Bartholomay under Silverlight, WPF.

If you are new to WPF/Silverlight or have been living on Mars, Model-View-View Model is the undisputed winner in the WPF framework wars. If you are WPF only, you are off and running but if you are Silverlight, you need to do a little homework and decide if you want to cheat a bit from [...]

17
Apr

Master/Detail with .NET RIA Services

Master/Detail is a very common scenario. This post shows how to do it using .NET RIA Services, Silverlight 3 and .NET Entity Framework as the DAL. I read the financial papers online each morning and cut/paste news snippets into a text file (soon a database) for later review (to help me lose less money). I [...]

18
Mar

Data Access choices: lots of alternatives

Posted By Bob B under Silverlight, WPF.

I thought I’d write a SIlverlight (or WPF) app to organize a text doc I have that is full of cut/paste blurbs from financial websites. I review this doc each weekend to arrive at potential trades for the coming week. I use a methodology that would suggest a basic database schema so I went ahead [...]

12
Mar

ContentTemplate, ContentPresenter and ControlTemplate interaction

Posted By Bob B under Silverlight, WPF.

If you want a custom look for a ContentControl you can apply a Style which customizes various Dependency Properties of the Control to give it an altered appearance. The next step up the customizing food chain is to edit the out-of-the-box look of a Control using a custom ControlTemplate. After that you can extend UserControl [...]

12
May

Flex & WPF (Ebedding Assets)

Posted By Bob B under Flex Study, Silverlight, WPF.

Both Flex and WPF applications (as well as Silverlight) can have assets (such as graphics or sounds) embedded into them. Both systems have the same benefits (faster access to the resources) and disadvantages (larger file size). The process of compiling these assets into your application is called embedding. Flex offers the [Embed] metadata tag but [...]

11
May

New Book: C# in Depth

Posted By Bob B under C#, WPF.

C# in Depth Around circa 2001 I was getting into Java. Back then there were no bloggers to help point you towards examples and give you direction in what to study up on. I learned by pouring over books and following the usenet newsgroups. I would read a question that someone posted and try to [...]

6
May

Flex & WPF (positioning controls in a Canvas)

Posted By Bob B under Flex Study, WPF.

Both WPF (Windows Presentation Framework) and Flex have the Canvas layout container. Each allows pinpoint positioning of children via “absolute positioning”. Where they differ is in how they accomplishing this positioning. Flex controls that inherit from UIComponent have the “x” property that specifies the component’s horizontal position, in pixels, within its parent container and the [...]

5
May

Flex & WPF (pixels and device independent units)

Posted By Bob B under Flash Study, Flex Study, Silverlight, WPF.

In Flex if you add a Box to the display list that has both its height and width properties set to 96, you will get just that: a rectangular Box 96 pixels square. In Windows Presentation Foundation (WPF) you are not drawing in pixels but rather in what is dubbed “device independent units”. They are [...]