2011年10月14日

Show tooltip on disabled control

摘要: ToolTipService.ShowOnDisabled="True" 阅读全文

posted @ 2011-10-14 01:06 Cooldash 阅读(199) 评论(0) 推荐(0) 编辑

2011年9月22日

Get Key Value Pair from Enum

摘要: public static List<KeyValuePair<string, int>> GetKeyValuePairFromEnum<T>() where T : struct, IConvertible { List<KeyValuePair<string, int>> result = new List<KeyValuePair<string, int>>(); IEnumerable<T> array = Enum.GetValues(typeof(T)).Cast<T>() 阅读全文

posted @ 2011-09-22 08:24 Cooldash 阅读(327) 评论(0) 推荐(0) 编辑

2011年9月21日

Get Item Index during Binding for ListBox and ItemsControl

摘要: For ListBox:<DataTemplate x:Key="myItemTemplate"> <StackPanel> <TextBlock x:Name="m_HiddenIndex" Visibility="Collapsed" Text="{Binding Path=., Converter={StaticResource MyConverter}, RelativeSource={RelativeSource FindAncestor, AncestorType=ListBoxIt 阅读全文

posted @ 2011-09-21 05:29 Cooldash 阅读(460) 评论(0) 推荐(0) 编辑

2011年7月1日

Rough Road Ahead for Greece Despite Austerity Measures

摘要: Root problemDemocracy was born in Greece and many still consider it the cradle of Western civilization.But in 2011 the bedrock of democracy in Greece, its parliament, has been defended by armed police against battalions of citizens who say their voice has been forgotten.The root of this crisis is mo 阅读全文

posted @ 2011-07-01 01:25 Cooldash 阅读(161) 评论(1) 推荐(0) 编辑

2011年6月23日

Climate Change Threatens World Food Production

摘要: How climate change affects you depends on more than just how it affects your local weather. It also depends on how much the weather matters to your livelihood, and how well you can cope with the changes.Philip Thornton, with the International Livestock Research Institute, is one of the authors of th 阅读全文

posted @ 2011-06-23 07:26 Cooldash 阅读(186) 评论(0) 推荐(0) 编辑

Identifying Source of Deadly E. Coli Remains a Challenge

摘要: When public health officials notice an unusual number of people coming down with food poisoning, the first thing they try to do is to find out what they all ate recently. E. coli usually takes three or four days to make a person sick, but it may take a week or more. And that presents the first probl 阅读全文

posted @ 2011-06-23 07:25 Cooldash 阅读(145) 评论(0) 推荐(0) 编辑

Areas in ASP.Net MVC2,3

摘要: Areas provide a way to separate a large MVC Web application into smaller functional groupings.An area is effectively an MVC structure inside an application.An application could contain several MVC structures (areas).How to add areas?In Solution Explorer, right-click the project name, click Add, and 阅读全文

posted @ 2011-06-23 01:44 Cooldash 阅读(724) 评论(7) 推荐(0) 编辑

2011年6月15日

【美国总统电台演说】2011-06-04

摘要: Hello, everybody. I’m speaking to you today from a Chrysler plant in Toledo, Ohio, where I just met with workers, including Jill. Jill was born and raised here. Her mother and step-father retired from this plant. And she met her husband here, and now they have two children of their own. This plant h 阅读全文

posted @ 2011-06-15 12:12 Cooldash 阅读(131) 评论(0) 推荐(0) 编辑

2011年6月10日

Reflections on 30 Years of HIV/AIDS

摘要: The HIV/AIDS epidemic is 30 years old. Nearly 30 million people have died from complications of the disease and more than 33 million are currently living with it.There’s a better chance than ever of living a long, productive life despite infection. But there’s still no cure or vaccine. The top U.S. 阅读全文

posted @ 2011-06-10 05:15 Cooldash 阅读(203) 评论(1) 推荐(0) 编辑

2011年6月7日

Stevie Nicks Earning Praise for New Solo Album 'In Your Dreams'

摘要: I'm just at the other end of your nightI'm always in and out of your lightRight down the middle of all your dreamsIn your dreamsThe title track of Stevie Nicks’ new album, In Your Dreams, is one of seven songs she wrote with the Eurythmics’ Dave Stewart, who also co-produced the collection. 阅读全文

posted @ 2011-06-07 13:31 Cooldash 阅读(166) 评论(0) 推荐(0) 编辑

导航