一个新手问题,但我似乎无法绕过这个问题。
我的结构如下
useredata->pluck('profile_pic')
class Connection
{
private static ObservableCollection<Connection> conlist = getConnections();
private string _channel;
//other fields
public string Channel
{
get
{ return this._channel; }
}
public static ObservableCollection<Connection> Ports
{
get
{ return conlist; }
}
private ObservableCollection<Connection> getConnections(string path)
{
//Gets list of connections from a file
}
现在,我要有两个组合框,一个选择显示说明的选项卡,我希望另一个显示在Connection.Ports中的所有端口,但最初具有选定值作为Tab.Connection < / p>
class Tab
{
private Connection _channel;
private string _title;
public string Title
{
get
{ return this._title; }
}
public string Connection
{
get { return this._channel; }
}
}
提前谢谢