Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Responsive Delete button #185

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions src/Papercut.UI/Views/MainView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,24 +144,25 @@
HorizontalAlignment="Stretch"
IsEnabled="{Binding Path=MessageListViewModel.HasSelectedMessage}" />

<Button Height="28" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="4,0,0,9" Width="72"
Name="ForwardSelected" IsEnabled="{Binding Path=MessageListViewModel.HasSelectedMessage}"
Grid.Row="1">
<StackPanel Grid.Row="1" Orientation="Horizontal">
<Button Height="28" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="4,0,0,9" Width="72"
Name="ForwardSelected" IsEnabled="{Binding Path=MessageListViewModel.HasSelectedMessage}">
Forward
</Button>
</Button>

<Button Height="28" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="82,0,0,9" Width="72"
<Button Height="28" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="4,0,0,9" MinWidth="72"
Name="DeleteSelected" IsEnabled="{Binding Path=MessageListViewModel.HasSelectedMessage}"
Content="{Binding Path=MessageListViewModel.DeleteText}"
cal:Bind.ModelWithoutContext="{Binding Path=MessageListViewModel}"
cal:Message.Attach="[Event Click] = [Action DeleteSelected]" Grid.Row="1" />
cal:Message.Attach="[Event Click] = [Action DeleteSelected]" />

<Button Height="28" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="160,0,0,9" Width="72"
<Button Height="28" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="4,0,0,9" Width="72"
Name="DeleteAllSelected" IsEnabled="{Binding Path=MessageListViewModel.HasSelectedMessage}"
cal:Bind.ModelWithoutContext="{Binding Path=MessageListViewModel}"
cal:Message.Attach="[Event Click] = [Action ShowConfirmDeleteAll]" Grid.Row="1">
cal:Message.Attach="[Event Click] = [Action ShowConfirmDeleteAll]">
Delete All
</Button>
</Button>
</StackPanel>

<Image Height="42" Margin="6,0,0,3" Name="image1" Stretch="Fill" VerticalAlignment="Bottom"
HorizontalAlignment="Left" Width="42" Source="/Papercut;component/App.ico" Grid.Row="1"
Expand Down