Skip to content

Commit

Permalink
Merge pull request #8 from asv-soft/fix/remove-actions-from-popup
Browse files Browse the repository at this point in the history
fix(map-anchor-view): remove drone actions from popup
  • Loading branch information
asv-soft-u01 authored May 28, 2024
2 parents 00464a3 + a06a6f7 commit aff3699
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/Asv.Avalonia.Map/MapAnchorView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,21 +85,7 @@
IsOpen="{TemplateBinding IsSelected}"
PlacementTarget="PART_ContentPresenter">
<Border IsVisible="{TemplateBinding IsPopupNotEmpty}" Background="{DynamicResource SolidBackgroundFillColorBase}" Padding="10" CornerRadius="{DynamicResource ControlCornerRadius}" >
<StackPanel>
<TextBlock Text="{TemplateBinding Description}"/>
<ItemsControl ItemsSource="{TemplateBinding Actions}">
<ItemsControl.ItemTemplate>
<DataTemplate DataType="controls:MapAnchorActionViewModel">
<Button HorizontalContentAlignment="Left" HorizontalAlignment="Stretch" Margin="3" Command="{CompiledBinding Command}" CommandParameter="{CompiledBinding CommandParameter}" Classes="Outline Light" >
<StackPanel Orientation="Horizontal">
<avalonia:MaterialIcon Margin="0,0,10,0" Kind="{CompiledBinding Icon}" Width="24" Height="24"/>
<TextBlock VerticalAlignment="Center" Text="{CompiledBinding Title}"/>
</StackPanel>
</Button>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</StackPanel>
</Border>


Expand Down

0 comments on commit aff3699

Please sign in to comment.