我已经对此进行了调整,并且有一些信息TreeVIew Info和Code Project,它们之间非常有帮助。但我仍然只有相同类型的文件夹。
progress.show();
AsyncHttpClient asyncHttpClient = new AsyncHttpClient();
asyncHttpClient.get(String.format("url", ), new AsyncHttpResponseHandler() {
@Override
public void onFailure(Throwable arg0, String arg1) {
// TODO Auto-generated method stub
super.onFailure(arg0, arg1);
progress.dismiss();
}
@Override
public void onSuccess(int statuscode, String messsage) {
// TODO Auto-generated method stub
super.onSuccess(statuscode, messsage);
progress.dismiss();
}
});
}
这是我的WPF,我想我不知道什么或如何绑定到不同的文件类型。
谢谢你的帮助!
答案 0 :(得分:2)
我没有看到datacontext或树视图的数据源,但您可以将Image控件的Source属性绑定到模型中包含图标的属性:
<Image Name="img"
Width="20"
Height="20"
Stretch="Fill"
Source="{Binding FolderIcon}"/>