Something I came across that I never knew was possible was that you can put c# code inline in a XAML file in a WPF app (I assume this would work in Silverlight as well). Not that you would ever want to do this, but sometimes you just need those geek points!
Make a WPF application, in the XAML file put the following…
<Grid>
<Button x:Name="button1" Click="button1_click">test</Button>
<x:Code>
void button1_click(object sender, RoutedEventArgs e)
{
button1.Content = "Inline Code Works!!";
}
</x:Code>
</Grid>
There you go, plain old code inline in a XAML file, I like to call this UTCC approach, better known as ultimately tightly coupled code.