| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- <Window
- CanResize="False"
- ExtendClientAreaChromeHints="SystemChrome"
- ExtendClientAreaTitleBarHeightHint="-1"
- Height="385"
- Title="ExifWindow"
- Width="900"
- mc:Ignorable="d"
- x:Class="PicView.Avalonia.MacOS.Views.ExifWindow"
- x:DataType="viewModels:MainViewModel"
- xmlns="https://github.com/avaloniaui"
- xmlns:buttons="clr-namespace:PicView.Avalonia.Views.UC.Buttons;assembly=PicView.Avalonia"
- xmlns:customControls="clr-namespace:PicView.Avalonia.CustomControls;assembly=PicView.Avalonia"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:viewModels="clr-namespace:PicView.Avalonia.ViewModels;assembly=PicView.Avalonia"
- xmlns:views="clr-namespace:PicView.Avalonia.Views;assembly=PicView.Avalonia"
- xmlns:vm="using:PicView.Avalonia.ViewModels"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <Design.DataContext>
- <vm:MainViewModel />
- </Design.DataContext>
- <DockPanel PointerPressed="MoveWindow">
- <DockPanel
- Background="{DynamicResource SecondaryBackgroundColor}"
- DockPanel.Dock="Top"
- Height="28"
- LastChildFill="True"
- x:Name="WindowBorder">
- <Rectangle DockPanel.Dock="Left" Width="70" />
- <customControls:IconButton
- BorderBrush="{DynamicResource MainBorderColor}"
- BorderThickness="0,0,1,0"
- Classes="errorHover"
- ClickMode="Release"
- Command="{CompiledBinding Tools.RecycleFileCommand}"
- CommandParameter="{CompiledBinding PicViewer.FileInfo.Value.FullName,
- FallbackValue=''}"
- Data="{StaticResource RecycleGeometry}"
- DockPanel.Dock="Right"
- Foreground="{StaticResource SecondaryTextColor}"
- Height="28"
- IconHeight="17"
- IconWidth="17"
- ToolTip.Tip="{CompiledBinding Translation.DeleteFile.Value,
- Mode=OneWay}"
- Width="45"
- x:Name="RecycleButton" />
- <customControls:IconButton
- BorderBrush="{DynamicResource MainBorderColor}"
- BorderThickness="0,0,1,0"
- Classes="noBorderHover"
- Command="{Binding Tools.OptimizeImageCommand}"
- CommandParameter="{CompiledBinding PicViewer.FileInfo.Value.FullName,
- FallbackValue=''}"
- DockPanel.Dock="Right"
- Foreground="{StaticResource SecondaryTextColor}"
- Height="28"
- Icon="{StaticResource PortalImage}"
- IconHeight="17"
- IconWidth="17"
- IsEnabled="{CompiledBinding PicViewer.ShouldOptimizeImageBeEnabled.Value,
- Mode=OneWay}"
- ToolTip.Tip="{CompiledBinding Translation.OptimizeImage.Value,
- Mode=OneWay}"
- Width="45"
- x:Name="OptimizeButton" />
- <customControls:IconButton
- BorderBrush="{DynamicResource MainBorderColor}"
- BorderThickness="0,0,1,0"
- Classes="noBorderHover"
- Command="{CompiledBinding Tools.OpenWithCommand}"
- CommandParameter="{CompiledBinding PicViewer.FileInfo.Value.FullName,
- FallbackValue=''}"
- Data="{StaticResource OpenWithGeometry}"
- DockPanel.Dock="Right"
- Foreground="{StaticResource SecondaryTextColor}"
- Height="28"
- IconHeight="17"
- IconWidth="17"
- ToolTip.Tip="{CompiledBinding Translation.OpenWith.Value,
- Mode=OneWay}"
- Width="45"
- x:Name="OpenWithButton" />
- <customControls:IconButton
- BorderBrush="{DynamicResource MainBorderColor}"
- BorderThickness="0,0,1,0"
- Classes="noBorderHover"
- Command="{CompiledBinding Tools.PrintCommand}"
- CommandParameter="{CompiledBinding PicViewer.FileInfo.Value.FullName,
- FallbackValue=''}"
- Data="{StaticResource PrintGeometry}"
- DockPanel.Dock="Right"
- Foreground="{StaticResource SecondaryTextColor}"
- Height="28"
- IconHeight="17"
- IconWidth="17"
- ToolTip.Tip="{CompiledBinding Translation.Print.Value,
- Mode=OneWay}"
- Width="45"
- x:Name="PrintButton" />
- <customControls:IconButton
- BorderBrush="{DynamicResource MainBorderColor}"
- BorderThickness="0,0,1,0"
- Classes="noBorderHover"
- Command="{CompiledBinding Tools.CopyImageCommand}"
- CommandParameter="{CompiledBinding PicViewer.FileInfo.Value.FullName,
- FallbackValue=''}"
- DockPanel.Dock="Right"
- Foreground="{StaticResource SecondaryTextColor}"
- Icon="{StaticResource CopyImages}"
- IconHeight="17"
- IconWidth="17"
- ToolTip.Tip="{CompiledBinding Translation.CopyImage.Value,
- Mode=OneWay}"
- Width="45"
- x:Name="CopyButton" />
- <customControls:IconButton
- BorderBrush="{DynamicResource MainBorderColor}"
- BorderThickness="0,0,1,0"
- Classes="noBorderHover"
- Command="{CompiledBinding Tools.CopyFileCommand}"
- CommandParameter="{CompiledBinding PicViewer.FileInfo.Value.FullName,
- FallbackValue=''}"
- Data="{StaticResource CopyGeometry}"
- DockPanel.Dock="Right"
- Foreground="{StaticResource SecondaryTextColor}"
- Height="28"
- IconHeight="17"
- IconWidth="17"
- ToolTip.Tip="{CompiledBinding Translation.CopyFile.Value,
- Mode=OneWay}"
- Width="45"
- x:Name="CopyFileButton" />
- <customControls:IconButton
- BorderBrush="{DynamicResource MainBorderColor}"
- BorderThickness="0,0,1,0"
- Classes="noBorderHover"
- Command="{CompiledBinding Tools.DuplicateFileCommand}"
- CommandParameter="{CompiledBinding PicViewer.FileInfo.Value.FullName,
- FallbackValue=''}"
- Data="{StaticResource DuplicateGeometry}"
- DockPanel.Dock="Right"
- Foreground="{StaticResource SecondaryTextColor}"
- Height="28"
- IconHeight="17"
- IconWidth="17"
- ToolTip.Tip="{CompiledBinding Translation.DuplicateFile.Value,
- Mode=OneWay}"
- Width="45"
- x:Name="DuplicateButton" />
- <customControls:IconButton
- BorderBrush="{DynamicResource MainBorderColor}"
- BorderThickness="1,0,1,0"
- Classes="noBorderHover"
- Command="{CompiledBinding Tools.LocateOnDiskCommand}"
- CommandParameter="{CompiledBinding PicViewer.FileInfo.Value.FullName,
- FallbackValue=''}"
- Data="{StaticResource ShowInFolderGeometry}"
- DockPanel.Dock="Right"
- Foreground="{StaticResource SecondaryTextColor}"
- Height="28"
- IconHeight="17"
- IconWidth="17"
- ToolTip.Tip="{CompiledBinding Translation.ShowInFolder.Value,
- Mode=OneWay}"
- Width="45"
- x:Name="LocateOnDiskButton" />
- <buttons:StarOutlineButtons DockPanel.Dock="Right" x:Name="StarOutlineButtons" />
- <customControls:IconButton
- BorderBrush="{DynamicResource MainBorderColor}"
- BorderThickness="0,0,1,0"
- Classes="noBorderHover"
- Command="{CompiledBinding Exif.SetExifRating0Command}"
- CommandParameter="{CompiledBinding PicViewer.FileInfo.Value.FullName,
- FallbackValue=''}"
- DockPanel.Dock="Right"
- Foreground="{StaticResource SecondaryTextColor}"
- Icon="{StaticResource StarOffImage}"
- IconHeight="17"
- IconWidth="17"
- ToolTip.Tip="{CompiledBinding Translation.RemoveStarRating.Value,
- Mode=OneWay}"
- Width="35"
- x:Name="RemoveRatingButton" />
- <TextBlock
- Classes="txt"
- DockPanel.Dock="Left"
- Foreground="{StaticResource SecondaryTextColor}"
- Text="{CompiledBinding Translation.ImageInfo.Value,
- Mode=OneWay}"
- TextAlignment="Center" />
- </DockPanel>
- <views:ImageInfoView
- Background="{DynamicResource WindowBackgroundColor}"
- DockPanel.Dock="Bottom"
- PointerPressed="MoveWindow"
- x:Name="XExifView" />
- </DockPanel>
- </Window>
|