Land Rovers, .Net en meer!
Berichten tagged WPF
TwitCast
17 Mar
Are you using Twitter? Do you like it or absolutely loathe it? I do like it but one thing I don’t like is constantly checking twitter.com to see if someone tweeted something interesting. So a new idea was born and the wasting of time began.
The ideaActually it’s pretty simple, I wanted an application that showed a pop-up of some kind that shows me the latest tweet for a minute or so and then disappear, similar to the new e-mail popup of Outlook. Another feature I wanted to make is that when I mouse over on the Meer >
Binding a WPF DataGridColumn to a LINQ result
26 Aug
I’ve been tinkering with Visual Studio 2010 Beta1 and the .Net 4 framework. One of the things that I’ve tried is filling a DataGrid with the results of a LINQ query. Consider the following code: C#
var voyages = from voyage in entities.Voyage
select new { Number = voyage.Number, ETA = voyage.StartTime };
dataGridTest.ItemsSource = voyages;
XAML
<DataGrid Name="dataGridTest">
<DataGrid.Columns>
<DataGridTextColumn Header="Number" Binding="{Binding Path=Number}" />
<DataGridTextColumn Header="ETA" Binding="{Binding Path=ETA}" />
</DataGrid.Columns>
</DataGrid>
Seems straightforward enough, doesn’t it? Well it does but when you try to run it, it’ll crash and burn with the following exception:
InvalidOperationException: A TwoWay or OneWayToSource binding cannot Meer >