0

I would like to create a kanban WinApp. I would like to know which control I would best off using. The main goal is to display kanban elements that are arranged by colored box, day by day.

I had thought about using a scheduler control. Is this the right choice?

GEOCHET
  • 21,119
  • 15
  • 74
  • 98
Gianni Giordano
  • 143
  • 1
  • 2
  • 13
  • This question will get closed because it's not appropiate for Stackoverflow. – Federico Berasategui Oct 05 '13 at 15:45
  • Anyways, I strongly suggest WPF instead of winforms for this. winforms is a really old technology no one cares about anumore, and which does not support anything. You can achieve something like [this](http://www.javiergarzas.com/wp-content/uploads/2011/11/EJEMPLOKANBAN2.jpg) (if that's really what you're looking for) in WPF really easily by using some nested `ItemsControls`. Whereas it would take tons of horrible hacks in winforms (or spending lots of $$$ in buying third party components). Also, winforms is not recommended for any new projects, only to maintain legacy applications. – Federico Berasategui Oct 05 '13 at 15:49
  • 1
    Just in case you're interested, based in the above linked screenshot, I created [this sample](http://i.stack.imgur.com/WChgg.png) of such a thing using current, relevant .Net Windows UI technologies, in 50 lines of XAML and 10 lines of C# code. It took me less than 30 minutes. Full Source code [here](http://pastebin.com/q0NQUtg4) – Federico Berasategui Oct 05 '13 at 16:48
  • your answer to me was very helpful. Thanks for the code example. Then I'll develop on WPF technology ... – Gianni Giordano Nov 08 '13 at 11:00
  • please mark my answer as accepted if it was useful for you. – Federico Berasategui Nov 08 '13 at 12:23

2 Answers2

5

Converting my comment into an answer:

Based in the above linked screenshot, I created this sample of such a thing using current, relevant .Net Windows UI technologies:

enter image description here

In only 50 lines of XAML and 10 lines of C# code. It took me less than 30 minutes. Full Source code here

Federico Berasategui
  • 43,562
  • 11
  • 100
  • 154
1

I'm a bit late to the party, but since I've actually implemented a Windows Kanban app in WPF (https://www.xplan-taskmanager.com/), it might be of use to others.

The board itself is a hierarchy of DockPanel-ScrollViewer-DockPanel:

<DockPanel>
    <ScrollViewer x:Name="scrollPanel" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" DockPanel.Dock="Top">
        <DockPanel x:Name="panel" Margin="0" HorizontalAlignment="Left" VerticalAlignment="Top"/>
    </ScrollViewer>
</DockPanel>

Columns are StackPanels:

<StackPanel AllowDrop="True">
    <TextBlock Name="nameLabel"></TextBlock>
    <StackPanel Name="cardsPanel">
    </StackPanel>
</StackPanel>

Cards are also implemented as StackPanel.

Board, Columns, and Cards have all been created as UserControl.

XPlan

I'm pretty happy with the result but I see from profiling tests that performance could use some optimization. I still have to analyze alternatives but, for the moment, this works fine. Anyway, for large numbers, I've placed a "more" at the end of each column (just a button).

Vico
  • 196
  • 1
  • 7