[Home] [Recent] [Site Map] [SharePoint] [XBOX]
On Ian Griffiths blog (a must for any WPF developer), he shows a way to bind to the Length of the column in the template of the ListView"s Grid to make the columns look right. Check it out here:
http://www.interact-sw.co.uk/iangblog/2007/05/30/fill-wpf-listview-columns
Add Comment | digg this
I had a lot of fun in DC. I headed out to do an INETA talk for the Capitol Area .NET Users" Group. Trish and I had time to visit some sights but were ready to come home. Click on the picture to see our pictures on Flickr.

Add Comment | digg this
Add Comment | digg this
I found this interesting article on Engadget and I soooo want one. I hate that my breathing isn"t reclaiming some energy...I have to get the plans and make one!

Add Comment | digg this
You might want to mute the sound, but the visuals are impressive and inventive...
Add Comment | digg this
I was doing a Silverlight video player for some videos I am doing and I was playing with different ways to show the timeline of a playing video. There are a couple of ways to do this, but in Silverlight 1.0 the typical way was with an animation on a hidden Canvas that you restart over and over to mimic the behavior of a Timer:
<!-- The XAML -->
<Canvas ... >
<Canvas.Resources>
<Storyboard x:Name="theTimer">
<DoubleAnimation Storyboard.TargetName="timerCanvas"
Storyboard.TargetProperty="(Canvas.Left)"
From="0" To="1"
Duration="0:0:0.1"
Completed="theTimer_Completed" />
</Storyboard>
</Canvas.Resources>
<Canvas x:Name="timerCanvas" Opacity="0" />
</Canvas
This is hacky to me but it works great in Silverlight 1.0. I wanted a better Silverlight 1.1 solution so I though, "Hey, its .NET...I"ll use a timer":
Timer timer = new Timer(new TimerCallback(timerFired),
null,
500,
500);
And the Handler:
void timerFired(object o)
{
// Does not work because I can"t update the UI thread from a non UI thread
progressBar.Width = ((double)videoPlayer.Position.Seconds /
(double)videoPlayer.NaturalDuration.TimeSpan.Seconds)
* progressBack.Width;
}
In Silverlight 1.1 the XAML stack does not support a Dispatcher as such. In fact there is no cross thread messaging at all. Incidently, this has been reported on the Silverlight.net Forums and they"ve said that they are going to add a high-performance timer in the Beta timeframe of Silverlight.
But I wanted an answer now and the only one I could find (without resorting to the fake Animation) was the HtmlTimer class. NOTE: The Silverlight team warn against using the HtmlTimer as it is it not high performance enough, but for prototyping Silverlight 1.1, I think its fine. Here"s the HtmlTimer implementation:
// Use a Timer HtmlTimer timer = new HtmlTimer(); timer.Interval = 100; timer.Tick += new EventHandler(timer_Tick); timer.Start();
And the Handler:
void timer_Tick(object sender, EventArgs e)
{
// Works because the HtmlTimer does not use a separate thread
// But may be a bit choppy as the timer not very high resolution
progressBar.Width = ((double)videoPlayer.Position.Seconds /
(double)videoPlayer.NaturalDuration.TimeSpan.Seconds)
* progressBack.Width;
}
Not perfect, but good enough for now...
Add Comment | digg this
1 Comment(s) | digg this
On TheServerSide.NET, my new article introducing the concepts of the Entity Data Model (i.e. Entity Framework, ADO.NET v.Next, etc.). Let me know what you think!
Add Comment | digg this
In partnership with Dunn Training and Consulting, I will be giving a three-day Silverlight workshop in Atlanta on June 11th.-13th. Over the three days you will learn how to create Silverlight assets for your own websites. This inlcudes the Silverlight 1.0, Silverlight 1.1 as well as fundamentals of the Expression toolset"s support for Silverlight.
Please visit the workshop page on Dunn Consulting"s website to register:
http://www.dunntraining.com/SilverlightTraining.htm
Add Comment | digg this
Add Comment | digg this
Site List:
>>Xbox Live_s Major Nelson
>>Xbox 360 & SharePoint 2007 Weblog
>>Carsten Keutmann_s Blog
>>Mohamed Zaki_s Blog [Sharepoint MVP]
>>The Mit_s Blog
>>Mart Muller_s Sharepoint Weblog
>>Microsoft SharePoint Products and Technologies Team Blog
>>SharePoint Solutions Blog
>>4GuysFromRolla.com Headlines
>>ASP.NET Blogs
>>SharePoint Blogs
>>SharePoint Blogs
>>Joel on Software
>>ADO Guy_s Rants and Raves
>>Microsoft Live Labs
>>GadgetNews
>>Windows Vista Team Blog
>>VoIP & Gadgets Blog
>>schrankmonster blog
>>Via Virtual Earth Blog
>>Feed
>>MSDN Blogs
>>Mashable!
Links:
Jack's Readings
Month Archives:
Oct 2007
Sep 2007
Top Tags:
social software social networking .NET mashable Sharepoint ASP.NET Web 2.0 Web2.0 Startups Community News Search Marketplace General Software Development AJAX Windows Vista Visual Studio Microsoft myspace Silverlight People Powered! YouTube Vista MOSS Featured News C# Events MOSS 2007 Google WPF Office 2007 Web Community Security General Personal Xbox 360 facebook Tools development SharePoint 2007 Fun Atlas Architecture ASP.NET AJAX myspace codes TheLongTail IIS SQL Server Developers Revenue Sharing Video Pictures WCF Mobile 2.0 Announcements Orcas MIX07 Arcade Team System JavaScript News
@2007 All rights Reserved |