怎么让txt文件内容在旁边的textbox里面显示啊?
wpf吧
全部回复
仅看楼主
level 2
834198820ybf 楼主
使用treeview实现,有大神知道吗
2015年09月12日 10点09分 1
level 8
要看视频就认真点!
2015年09月12日 11点09分 2
视频是用winform,这是wpf,看不出来吗?
2015年09月12日 14点09分
差别还是比较大的
2015年09月12日 14点09分
回复 834198820ybf :废话 要怪就怪你wpf不熟,这种控件不都有子类么?没时间还是懒?
2015年09月12日 17点09分
还有如果我熟悉wpf就不会在这里问了好吧,如果我百度到了也不会在这里问了好吧
2015年09月13日 02点09分
level 2
834198820ybf 楼主
已解决
2015年09月14日 13点09分 4
楼主可以发一份给我学习学习吗,谢谢啦,[email protected]
2016年11月18日 09点11分
level 13
我觉得可以让左侧选中项和右侧文本都绑定为同一个,然后右侧加绑定转换器,转换器中就可以根据根据选中项属性读取文件文本或者别的方法去过的内容了
2015年10月21日 16点10分 5
level 1
亲你还有这个小程序的代码么?可以发我看下木有
2016年05月30日 03点05分 6
level 1
亲如果你还有这个小程序的话,可以麻烦你发下到我邮箱没,[email protected] ,非常感谢[哈哈]
2016年05月30日 03点05分 7
已发,好久没写程序了
2016年05月31日 15点05分
层主能不能转发下,我也想看看[花心]
2016年09月06日 03点09分
能给我一份参考下吗 [email protected] 谢谢
2016年10月12日 01点10分
层主可以转发我一份吗,[email protected]
2016年11月18日 09点11分
level 1
数据绑定
2016年06月30日 03点06分 8
level 1
亲,你这个程序是用mvvm模式吗?
2016年09月04日 07点09分 9
level 2
你们真是够了!
2016年09月20日 11点09分 10
level 1
目前正在学WPF真心想知道你这个怎么实现的,[email protected],谢谢
2016年11月01日 05点11分 11
level 1
private void MyTV_Selected(object sender, RoutedEventArgs e)
{
}
private void MyTV_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs<object> e)
{
TreeView tv = sender as TreeView;
if (tv.SelectedItem != null)
{
Node node = tv.SelectedItem as Node;
if (node != null && (node.Nodes == null || (node.Nodes != null && node.Nodes.Count == 0)))
{
MessageBox.Show(node.Name);
}
}
}
}
public class Node
{
public Node()
{
this.Nodes = new List<Node>();
this.ParentID = -1;
}
public int ID { get; set; }
public string Name { get; set; }
public int ParentID { get; set; }
public List<Node> Nodes { get; set; }
}
2016年11月13日 04点11分 12
level 5
楼主能发一下吗,我也想学这个呢[email protected][太开心][太开心]
2016年11月28日 02点11分 14
1