By the way, I did this:
On a side note you can always retemplate the TaskBoard control so that it just has an ItemsPresenter in it. Then add a single column to the TaskBoard and retemplate TaskColumn to also mainly be something like a Border with an ItemsPresenter. If you do those things, it should render more like a plain list.
But when I do that I can no longer drag TaskCards.
I get this error:
File: ActiproSoftware.Windows.Controls.Views.TaskBoard+TaskCardDragProcessor
Line #: 0
Method: Void CreateDragAdornment(System.Windows.Point)
Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
My code:
<views:TaskBoard
CanCardsDrag="True"
CanColumnsDrag="False"
CardDragRotationAngle="0">
<views:TaskBoard.Template>
<ControlTemplate TargetType="views:TaskBoard">
<ItemsPresenter />
</ControlTemplate>
</views:TaskBoard.Template>
<views:TaskBoard.Items>
<!-- AKA: 1 item only (The Dasboard) -->
<views:TaskColumn
Width="{Binding Path=ActualWidth, RelativeSource={RelativeSource AncestorType=views:TaskBoard}}"
HorizontalAlignment="Stretch"
VerticalAlignment="Top"
HorizontalContentAlignment="Stretch"
ItemsSource="{Binding DashBoard.DashboardRows, RelativeSource={RelativeSource AncestorType=local:DashBoardUserControl}}">
<views:TaskColumn.Template>
<ControlTemplate>
<Grid VerticalAlignment="Top">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<!-- ROWS -->
<ScrollViewer Margin="0,1,0,0" VerticalScrollBarVisibility="Auto">
<ItemsPresenter Margin="5,5,5,0" />
</ScrollViewer>
<!-- ADD ROW BUTTON -->
<StackPanel
Grid.Row="1"
HorizontalAlignment="Center"
Orientation="Horizontal"
Visibility="{Binding IsEditting, Converter={StaticResource bool2vis}, RelativeSource={RelativeSource AncestorType=local:DashBoardUserControl}}">
<ContentControl Template="{Binding AddRowSectionTemplate, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=local:DashBoardUserControl}}" />
</StackPanel>
</Grid>
</ControlTemplate>
</views:TaskColumn.Template>
</views:TaskColumn>
</views:TaskBoard.Items>
</views:TaskBoard>
[Modified 3 years ago]