DCSIMG
.NET 3.5,WPF - Alex Golesh's Blog About Silverlight Development

Browse by Tags

All Tags » .NET 3.5 » WPF (RSS)

WPF Quick Tip: How to get WPF Window client area size

This time my quick tip will be not about the Silverlight, but about WPF. When you have WPF window, the runtime size of it could be discovered by ActualWidth/ActualHeight properties. In most cases this is enough. But what about the case, when you need to perform some mathematical calculations based on the real size of client area? What is this client area? Well, the second question is really easy one – the client area is the area available to user defined UI (controls, panes, etc.): At the screenshot...

Quick Tip: LINQ & Data Binding notifications

In Silverlight & WPF we could databind to the LINQ query results: private ObservableCollection < string > someData = new ObservableCollection < string >(); //Somewhere in code someData.Add( "Alex" ); someData.Add( "Alen" ); someData.Add( "Josh" ); someData.Add( "Brad" ); var res = from data in someData            where data.StartsWith( "A" )           ...

Path.Data Dependency Property Initialization From String

In Silverlight 2 Beta 1 I used to build dynamic UI with drawing portions. For example, I used to draw Path dynamically like in following example: Path myPath = new Path(); myPath.SetValue(Path.DataProperty, "M 50,50 L 50,100 L 100,100 L 100,50 L 50,50 Z" ); myPath.SetValue(Path.NameProperty, "myPath" ); myPath.Width = 100; myPath.Height = 100; myPath.Fill = new SolidColorBrush(Colors.Black); LayoutRoot.Children.Add(myPath); This gave me nice rectangle... Everything was fine, until...

Visual Studio 2008 SP1 Beta & .NET 3.5 SP1 Beta are available

The SP1 Beta for Visual Studio 2008 and .NET 3.5 has arrived. The beta of service pack holds a few improvements . There is also WPF speed improvements with this upcoming service pack. Tim Sneath has very detail information at his blog about this release here . Download links: VS 2008 SP1: http://download.microsoft.com/download/7/3/8/7382EA08-4DD6-4134-9B92-8585A5B07973/VS90sp1-KB945140-ENU.exe .NET 3.5 SP1: http://download.microsoft.com/download/8/f/c/8fc1fe13-55de-4bf5-b43e-375daf01452e/dotNetFx35setup...

Get Ready for Silverlight 2

The new version of Silverlight will be announced at MIX08 in about a week! It will be Beta 1 version, and it will bring the things, which was missed by many developers like WPF UI Framework (Binding, Styling, Out-Of-The-Box Controls:  Button, Grid, StackPanel, "Cider" in Visual Studio 2008,  etc.), Networking support (REST, SOAP, RSS, etc.), richer BCL (LINQ, Collections, I/O, Generics, Threading, Globalization, XML, Local Storage, etc.) and much more...   See more about...