티스토리 뷰
Silverlight 5 Beta가 출시되었습니다. 시간이 정말 빨리 지나간다는 것을 피부로 느낍니다.
관련 사이트는 아래를 참조하십시오. http://www.silverlight.net/getstarted/silverlight-5-beta/
위 사이트에 아래의 새로운 기능에 대한 비디오와 블로그가 올라와있으니 참고하시면 됩니다.
l XAML Debugging with breakpoints for binding debugging
l Implicit data templates for easy UI reuse
l Double (and multi) click support
l GPU-accelerated XNA-compatible 3D and immediate-mode 2D API
l Low-latency sound effects and WAV support
l Real operating system windows and multi-display support
l Significant performance improvements, fixes and much more
저는 XAML Binding 디버깅에 대한 내용이 있어 글을 진행해볼까 합니다.
Silverlight 5 Beta Tools을 설치하기 위해서는 VS 2010 SP1이 먼저 설치되어 있어야 합니다.
아래 사이트에서 Microsoft Silverlight 5 Beta Tools for Visual Studio 2010 Service Pack 1 를 다운로드 하여 설치할 수 있습니다.
설치가 완료되고 VS 2010에서 Silverlight 프로젝트를 생성하면 아래 그림처럼 Silverlight 5를 볼 수 있습니다.
XAML Binding에 대한 테스트를 처리하기 위해 간단한 List Box에 대한 데이터 바인딩을 아래와 같이 처리합니다.
<UserControl.Resources>
<DataTemplate x:Key="employeeTemplate">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding EmployeeiD}"></TextBlock>
<TextBlock Text="{Binding Name}"></TextBlock>
</StackPanel>
</DataTemplate>
</UserControl.Resources>
<Grid x:Name="LayoutRoot" Background="White">
<ListBox Height="152" HorizontalAlignment="Left" Margin="59,41,0,0" Name="listBox1"
ItemTemplate="{StaticResource employeeTemplate}" VerticalAlignment="Top" Width="279" />
</Grid>
실제 C#의 클래스에 대한 내용은 EmployeeID로 되어 있으며 오류가 발생하게 됩니다.
public MainPage()
{
InitializeComponent();
List<Employee> employees = new List<Employee>()
{
new Employee { EmployeeID=1, Name="홍주" }
,new Employee { EmployeeID=2, Name="오태겸" }
,new Employee { EmployeeID=3, Name="오진석" }
,new Employee { EmployeeID=4, Name="주우락" }
};
listBox1.ItemsSource = employees;
}
}
public class Employee
{
public int EmployeeID { get; set; }
public string Name { get; set; }
}
XAML 편집기에 중단점을 설정할 수 있으며 디버깅을 시작해서 에러 등의 정보를 디버깅할 수 있습니다.
수정하고 다시 디버깅해보면 해당 Binding 값을 확인이 가능합니다.
'New Feature' 카테고리의 다른 글
Visual Studio 11 Developer Preview (0) | 2011.09.18 |
---|---|
Windows Developer Preview downloads (0) | 2011.09.14 |
SQL Server Code Name “Denail” CTP 3 설치 (0) | 2011.07.20 |
SQL Server 2008 R2 Service Pack 1 (0) | 2011.07.13 |
Office 365 베타 (0) | 2011.05.19 |
- Total
- Today
- Yesterday
- Windows Azure Mobile Services
- Power BI Update
- SharePoint 2013
- Power BI Desktop Update
- SharePoint 2010
- copilot
- Windows Azure
- Microsoft Fabric
- 페이지를 매긴 보고서
- SharePoint Object Model
- Paginated Report
- Power BI Copilot
- sharepoint
- Windows Azure 업데이트
- 목표
- sql server 2012
- redJu
- Power BI
- hongju
- Power BI Desktop 업데이트
- Power BI Desktop
- Cloud
- Windows Phone 7
- 정홍주
- 클라우드
- Visual Studio 2010
- SQL Azure
- 업데이트
- Power BI 업데이트
- SharePoint Online
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |