1
를 작동하지에 목록에 난 내가 실버 라이트 데이터 바인딩의 가능한 가장 간단한 예는 생각 ...하지만 분명히 심지어 나를 위해 너무 복잡 :
무슨이 XAML :
<UserControl x:Class="SilverlightApplication1.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
<ListBox x:Name="rblSessions">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding SessionTitle}" Foreground="Black" FontSize="30" />
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
뒤에 코드 :
,397,932(I가 폰트 크기를 "30"로 설정하지만) 내가 뭘 내가 응용 프로그램을 실행하면 10
, 나는 거기에 20 개 요소 목록 상자를 얻을 수 있지만, 각 요소는 빈, 그리고 약 5 픽셀 높이 잘못된? 제발 도와주세요 감사
/조나단
오 마이! 나는 그것을 어떻게 간과 했습니까? 고마워 * 너무 * 많이 /jonathan – Jonathan