Skip to content

Instantly share code, notes, and snippets.

@mattkruskamp
Created August 24, 2015 21:18
Show Gist options
  • Save mattkruskamp/130e01b852fd1a2ce9c9 to your computer and use it in GitHub Desktop.
Save mattkruskamp/130e01b852fd1a2ce9c9 to your computer and use it in GitHub Desktop.
Publishing Silverlight 2 Beta
<object data=“data:application/x-silverlight,”
type=“application/x-silverlight-2-b1”
width=“100%" height="100%”>
<param name=“source" value="ClientBin/SilverlightDeploy.zip”/>
<param name=“onerror" value="onSilverlightError" />
<param name="background" value="white" />
<a href="http://go.microsoft.com/fwlink/?LinkID=108182”
style=“text-decoration: none;”>
<img src=“http://go.microsoft.com/fwlink/?LinkId=108181”
alt=“Get Microsoft Silverlight”
style=“border-style: none”/>
</a>
</object>
<UserControl x:Class=“SilverlightDeploy.Page”
xmlns=“http://schemas.microsoft.com/client/2007”
xmlns:x=“http://schemas.microsoft.com/winfx/2006/xaml”
Width=“400" Height="300”>
<Grid x:Name=“LayoutRoot" Background="White”>
<Button x:Name=“BtnHelloWorld" Content="Hello World”
Width=“100" Height="50" Click="BtnHelloWorld_Click” />
</Grid>
</UserControl>
public partial class Page : UserControl
{
public Page()
{
InitializeComponent();
}
private void BtnHelloWorld_Click(object sender,
RoutedEventArgs e)
{
this.BtnHelloWorld.Content = "You Clicked Me!“;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment