问题描述
我正在尝试将组合框(绑定到我的Model对象的列表)中的项目传递给我的按钮。我的问题是我是Caliburn.Micro + WPF的新手,并且不确定如何向按钮订阅/传递所需的值(例如,将PropetyName的字符串发送到Button(字符串propetyName))。
dictionary = {'Links':links,'Skills':skills}
df = pd.DataFrame(dictionary)
print(df)
XAML代码:
Skills Links
0 https://www.livecareer.com//resume-search/r/so... agile,AutoCAD,C++,CAD,Oral,data entry,da...
1 https://www.livecareer.com//resume-search/r/so... Senior Outreach at Senior Center Planned and o...
2 https://www.livecareer.com//resume-search/r/so... Motivated Software Engineer seeking employment...
3 https://www.livecareer.com//resume-search/r/so... Developed peer-to-peer secure file transfer sy...
4 https://www.livecareer.com//resume-search/r/so... Performance evaluation of In-Kernel System Cal...
5 https://www.livecareer.com//resume-search/r/so... Accomplished Computer Technician with a rapidl...
6 https://www.livecareer.com//resume-search/r/so... Seeking a fulltime position as a Developer / S...
7 https://www.livecareer.com//resume-search/r/so... 3 Years of experience in information Technolog...
8 https://www.livecareer.com//resume-search/r/so... .NET 3.5,.NET,ASP .NET 3.5,ASP.NET 2.0,ASP...
9 https://www.livecareer.com//resume-search/r/so... Represent Stanford Ballroom Dance team in var...
很抱歉,如果我的描述含糊/缺少更多说明,我是这里的新用户!
解决方法
FileInFolder是组合中的选定项。
OpenFile位于同一类中,因此可以引用FileInFolder。
public void OpenFile()
{
var whatever = FileInFolder.SomeProperty;
// etc
}
您可能想要在其中进行null检查。