Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. How to create event handler using visual studio 2008?

How to create event handler using visual studio 2008?

Scheduled Pinned Locked Moved WPF
csharpquestionasp-netvisual-studiowpf
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    katelva
    wrote on last edited by
    #1

    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

    M 1 Reply Last reply
    0
    • K 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

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      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)

      K 1 Reply Last reply
      0
      • M Michael Sync

        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)

        K Offline
        K Offline
        katelva
        wrote on last edited by
        #3

        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>

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups