开发者

C# Menu Component

开发者 https://www.devze.com 2023-04-12 03:07 出处:网络
I am looking for a pointer in the right direction, rather than a full solution to my question. Below is an example of the kind of user interface, taken from Microsoft Excel, that I\'m wanting to prod

I am looking for a pointer in the right direction, rather than a full solution to my question.

Below is an example of the kind of user interface, taken from Microsoft Excel, that I'm wanting to produce for my program.

  • A list of items
  • Styled (Different when hovering)
  • Clickable
  • Able to add an icon or image to each row

C# Menu Component

How would I go about building an interface, which unser interface component would I start with, and then populate with data.

When developing for windows phone 7, I would usually use a 'stackpanel', which isn't 开发者_开发问答available from C# in a windows form application.


This will be much easier if you use WPF than with WinForms - it is also quite similar to Silverlight used for WP7, so you could reuse your experience (it has StackPanel, among othe things :) ).

What you want would be very hard with Win Forms, but actually very simple with WPF - it is just a styled ListBox, with very simple DataTemplate - something you can do after first few chapters of any book or tutorial.

This should get you started.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号