Silverlight/XAML – Learning by Coding

[ sl2_htmldom_h2s.xaml --> Grafik anzeigen ]

 1: <?xml version="1.0" encoding="UTF-8"?>
 2: <!-- coded by Thomas Meinike 08/08 -->
 3: <UserControl x:Class="sl2_htmldom_h2s.Page"
 4:   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
 5:   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
 6:   Width="800" Height="600">
 7: 
 8:   <Canvas>
 9: 
10:     <TextBlock Canvas.Left="30" Canvas.Top="20" x:Name="ausgabe"
11:       Foreground="#F00" FontSize="18" FontFamily="Arial" Text="..."/>
12: 
13:     <!--
14:       Zugriff aus dem HTML-Dokument über einen Buttononclick="
15:       document.getElementById('SilverlightPlugIn').content.root.findName('ausgabe').text=
16:       'Neuer Silverlight-Text wurde aus dem HTML-Kontext heraus erzeugt.'"
17:     -->
18: 
19:   </Canvas>
20: 
21: </UserControl>

[zum Anfang]