摘要: 一、具体需求描述 在WPF下实现,当鼠标悬停在ListView中的某一元素的时候能弹出一个ToolTip以显示需要的信息。 二、代码实现 在.XMAL文件中 <Window.Resources> <DataTemplate x:Key="dataTemplateCheckBox"> <StackPanel Orientation="Horizontal"> <CheckBox Name="listchk" /> </StackPanel> </DataTemplate& 阅读全文
posted @ 2012-05-19 23:52 王春明 阅读(2773) 评论(0) 推荐(0) 编辑
摘要: private void cboWebsites_SelectionChanged(object sender, SelectionChangedEventArgs e) {... object url = CollectTools.ToListUrl(cboNavigation.SelectedValue.ToString(), page); Thread getMovie = new Thread(GetMovies); getMovie.Start(url); } //多线程获取数据 delegate void DELBindListView(List<Movie> movi 阅读全文
posted @ 2012-05-19 21:19 王春明 阅读(715) 评论(0) 推荐(0) 编辑
摘要: As a work around for this issue I moved all styles defined in App.xaml to another Resource dictionary file (say GenericThemes.xaml ) , and included that resource dictionary in app.xaml as below <Application.Resources> <ResourceDictionary Source="GenericThemes.xaml" /> </Appl 阅读全文
posted @ 2012-05-19 02:10 王春明 阅读(376) 评论(0) 推荐(0) 编辑