<object /> 태그와 <embed />태그로 실버라이트 적용
.NET프로그래밍/Silverlight 3.0 2009. 11. 24. 18:46 |
[FrmSilverlight.xaml]
<Canvas xmlns="http://schemas.microsoft.com/client/2007"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<TextBlock
x:Name="lblTitle"
FontFamily="Malgun Gothic"
FontSize="20"
Text="안녕하세요. 반갑습니다."></TextBlock>
</Canvas>
-------------------------------------------------------------------------------------
[FrmSilverlight.htm]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<h3>수작업으로 XAML파일을 웹페이지에 object태그를 사용해서 인클루드</h3>
<object type="application/x-silverlight"
id="sil1" width="640" height="100">
<param name="background" value="silver" />
<param name="source" value="FrmSilverlight.xaml" />
<div style="background-color:Gray;">
이 부분에 대체 콘텐츠를 입력
</div>
</object>
</hr>
<embed type="application/x-silverlight"
id="sil2" width="640" height="100"
background="silver"
source="FrmSilverlight.xaml">
<noembed>
이 부분에 대체 콘텐츠를 입력
</noembed>
</embed>
</body>
</html>
-------------------------------------------------------------------------------------
[실행결과]
'.NET프로그래밍 > Silverlight 3.0' 카테고리의 다른 글
XAML(Extensible Application Markup Language)이란? (0) | 2009.11.24 |
---|---|
Silverlight.js로 XAML 표시 (0) | 2009.11.24 |
실버라이트 1.0 개발 (0) | 2009.11.24 |
수작업으로 실버라이트 배포 (RiaDeploy) (0) | 2009.11.24 |
Application 클래스 (0) | 2009.11.24 |