Skip to content

Button inside Item #4

@poochie89

Description

@poochie89

When adding a Button inside the itemtemplate, it is not clickable. The same happens to other command invoking elements.

            <dragablz:DragablzItemsControl.ItemTemplate>
                <DataTemplate DataType="system:Int32">
                    <WrapPanel Width="100" Height="50" Tag="{Binding}">
                        <TextBlock VerticalAlignment="Center" Foreground="White" Width="auto" HorizontalAlignment="Center" Text="{Binding Name}" />
                        <Button Height="20" Width="40" Command="ApplicationCommands.New">New</Button>
                    </WrapPanel>
                </DataTemplate>
            </dragablz:DragablzItemsControl.ItemTemplate>

The same button works when adding outside the draggableitemscontrol (inside the same grid),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions