1
데이터 템플릿이있는 목록 상자가 있습니다. 문제는 소스가 문자열이 될 것으로 예상한다는 것입니다. 내가 가지고있는 문자열은 xap 파일 안에있는 이미지의 URI입니다. 그러면 uri (xxx, uri.relative)가 될 것입니다. 문자열 값만 사용할 수 있기 때문에 어떻게 이미지의 xap 파일을 볼 수 있습니까?Silverlight 이미지가 목록 상자에 있음
ListBox.ItemTemplate
DataTemplate
StackPanel Orientation=Horizontal VerticalAlignment=Center
Image Source="{Binding Path=Image}" Width="50" Height="50" Margin="0,0,10,0"
StackPanel
DataTemplate
ListBox.ItemTemplate
//it won't let me use URI for the Image return value!!!
public class MyListboxItem
{
public String Image
{
get { return thumb;
}
}
대단원! 잘 됐네요! :) –
도움이되지 않았다 .... rs 항상 null이오고있다. – 1Mayur