How to create event handler using visual studio 2008?
-
Hi, I am using visual studio 2008 to code behind my silverlight application(drag and drop). I have been browse ans see the sample from online and silverlight book. But i having the problem here. When I loaded the silverlight application in asp.net Page.xaml
x:Class="SilverlightApplication5.Page" xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Loaded="parentCanvas_Loaded" Width="400" Height="300" Background="Aquamarine"> x:Name="submit" Width="100" Height="200" Canvas.Top="100" Background="Azure" >
Page.xaml.cs using System; using System.Collections.Generic; using System.Linq; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; namespace SilverlightApplication5 { public partial class Page : Canvas { private void parentCanvas_Loaded(object sender, RoutedEventArgs e) { InitializeComponent(); } } } The mozilla browser do not show up any silverlight content,jz blank it where I have plug in the silverlight in asp.net. When I remove the "LOADED" element from the Page.xaml and use direct InitializeComponent() in Public Page(), it works. So, what is the problem with this?? Thanks. Regards, Katelva
-
Hi, I am using visual studio 2008 to code behind my silverlight application(drag and drop). I have been browse ans see the sample from online and silverlight book. But i having the problem here. When I loaded the silverlight application in asp.net Page.xaml
x:Class="SilverlightApplication5.Page" xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Loaded="parentCanvas_Loaded" Width="400" Height="300" Background="Aquamarine"> x:Name="submit" Width="100" Height="200" Canvas.Top="100" Background="Azure" >
Page.xaml.cs using System; using System.Collections.Generic; using System.Linq; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; namespace SilverlightApplication5 { public partial class Page : Canvas { private void parentCanvas_Loaded(object sender, RoutedEventArgs e) { InitializeComponent(); } } } The mozilla browser do not show up any silverlight content,jz blank it where I have plug in the silverlight in asp.net. When I remove the "LOADED" element from the Page.xaml and use direct InitializeComponent() in Public Page(), it works. So, what is the problem with this?? Thanks. Regards, Katelva
Please check "Ignore HTML tags in this message" when you are posting XAML, XML or HTML code. I need to look at the your Page.xaml to find out the error.. Could you please post your XAML code?
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
-
Please check "Ignore HTML tags in this message" when you are posting XAML, XML or HTML code. I need to look at the your Page.xaml to find out the error.. Could you please post your XAML code?
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
Page.xaml x:Class="SilverlightApplication5.Page" xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Loaded="parentCanvas_Loaded" Width="400" Height="300" Background="Aquamarine"> <button> x:Name="submit" Width="100" Height="200" Canvas.Top="100" Background="Azure" > </button>