markus / FinalService / KCOM_FinalService / MarkupToPDF / backgroudTest.cs @ 862ebf33
이력 | 보기 | 이력해설 | 다운로드 (964 Bytes)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.Linq; |
4 |
using System.Text; |
5 |
using System.Threading.Tasks; |
6 |
|
7 |
namespace MarkupToPDF |
8 |
{ |
9 |
|
10 |
public class backgroudTest |
11 |
{ |
12 |
public backgroudTest() |
13 |
{ |
14 |
|
15 |
} |
16 |
|
17 |
public void start() |
18 |
{ |
19 |
for (int i = 0; i < 10; i++) |
20 |
{ |
21 |
System.Threading.Thread thread = new System.Threading.Thread(new System.Threading.ThreadStart(Work)); |
22 |
thread.Start(); |
23 |
} |
24 |
} |
25 |
|
26 |
public void Work() |
27 |
{ |
28 |
while(true) |
29 |
{ |
30 |
System.Windows.UIElement uIElement = new System.Windows.UIElement(); |
31 |
uIElement.Arrange(new System.Windows.Rect(10, 10,100,100)); |
32 |
uIElement.Measure(new System.Windows.Size(100 * 0.1, 100 * 0.1)); |
33 |
Console.WriteLine(uIElement.RenderSize); |
34 |
|
35 |
System.Threading.Thread.SpinWait(3); |
36 |
} |
37 |
} |
38 |
} |
39 |
} |