반응형
으.. 젠장.. 죽일넘의 Margin 2.0에서 하기 힘들었다.. ㅠ.ㅠ
Thickness 이거 써야 하는구나.. 흑..
Thickness 이거 써야 하는구나.. 흑..
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
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;
txt2.Text = "바보1";
txt2.Margin = new Thickness(20, 20, 0, 0); //Thickness(double Left, double Top, double Right, double bottom)
LayoutRoot.Children.Add(txt2); }
}
}
using System.Collections.Generic;
using System.Linq;
using System.Net;
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 test
{
public partial class Page : UserControl
{
public Page()
{
InitializeComponent();
txt2.Text = "바보1";
txt2.Margin = new Thickness(20, 20, 0, 0); //Thickness(double Left, double Top, double Right, double bottom)
LayoutRoot.Children.Add(txt2); }
}
}
반응형
'Dev > Silveright' 카테고리의 다른 글
[실버라이트] 동영상, 오디오 지원하는 포멧 (0) | 2008.09.02 |
---|---|
[실버라이트] .xap 파일 404 오류 (0) | 2008.08.26 |
[Sliverlight] 몽달 이미지 마우스 따라 다니기 (0) | 2008.08.20 |
실버라이트 - DispatcherTimer 이용한 타이머 만들기 (0) | 2008.08.07 |
실버라이트 - Silverlight Key Enumeration (0) | 2008.08.05 |