MotionList icon indicating copy to clipboard operation
MotionList copied to clipboard

Button inside Item

Open poochie89 opened this issue 7 years ago • 1 comments

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),

poochie89 avatar Jul 08 '18 08:07 poochie89

yeah, i hope this gets sorted as well. even if you have a user control inside datatemplate

did you figure away to achieve that?

AmeerMansourBeca avatar Nov 03 '22 02:11 AmeerMansourBeca