PinButton.axaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <UserControl
  2. Background="Transparent"
  3. d:DesignHeight="450"
  4. d:DesignWidth="800"
  5. mc:Ignorable="d"
  6. x:Class="PicView.Avalonia.Views.UC.Buttons.PinButton"
  7. x:DataType="viewModels:MainViewModel"
  8. xmlns="https://github.com/avaloniaui"
  9. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  10. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  11. xmlns:viewModels="clr-namespace:PicView.Avalonia.ViewModels"
  12. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  13. <Panel>
  14. <Button
  15. Background="Transparent"
  16. ToolTip.Tip="{CompiledBinding Translation.Pin.Value,
  17. Mode=OneWay}"
  18. x:Name="PinBtn">
  19. <Image
  20. Height="12"
  21. Source="{StaticResource PinImage}"
  22. Width="12" />
  23. </Button>
  24. <Button
  25. Background="Transparent"
  26. ToolTip.Tip="{CompiledBinding Translation.Unpin.Value,
  27. Mode=OneWay}"
  28. x:Name="UnPinBtn">
  29. <Image
  30. Height="12"
  31. Source="{StaticResource UnPinImage}"
  32. Width="12" />
  33. </Button>
  34. </Panel>
  35. </UserControl>