Create UVtools.AvaloniaControls

This commit is contained in:
Tiago Conceição
2021-06-15 23:29:45 +01:00
parent 5217f9ff22
commit 3888f187bb
22 changed files with 914 additions and 1072 deletions
@@ -0,0 +1,39 @@
<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="UVtools.AvaloniaControls.AdvancedImageBox">
<Grid
RowDefinitions="*,Auto"
ColumnDefinitions="*,Auto">
<ContentPresenter Grid.Row="0" Grid.Column="0"
Name="ViewPort"
Background="Transparent"/>
<ScrollBar
Name="VerticalScrollBar"
Grid.Row="0" Grid.Column="1"
Orientation="Vertical"
ViewportSize="{Binding #ViewPort.Bounds.Height}"
Minimum="0"
Maximum="0"
Visibility="Auto"/>
<ScrollBar
Name="HorizontalScrollBar"
Grid.Row="1" Grid.Column="0"
Orientation="Horizontal"
ViewportSize="{Binding #ViewPort.Bounds.Width}"
Minimum="0"
Maximum="0"
Visibility="Auto"/>
<Border
Grid.Row="1"
Grid.Column="1"
Background="WhiteSmoke"/>
</Grid>
</UserControl>
File diff suppressed because it is too large Load Diff
+5
View File
@@ -0,0 +1,5 @@
# UVtools AvaloniaUI controls
* **AdvancedImageBox**
* Port of: https://github.com/cyotek/Cyotek.Windows.Forms.ImageBox
* Demo: https://youtu.be/bIr6P4dDlHc
@@ -0,0 +1,51 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<Authors>Tiago Conceição</Authors>
<Company>PTRTECH</Company>
<Copyright>Copyright © 2020 PTRTECH</Copyright>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageIcon>UVtools.png</PackageIcon>
<PackageIconUrl />
<RepositoryUrl>https://github.com/sn4k3/UVtools/UVtools.AvaloniaControls</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageTags>Advanced image box</PackageTags>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<Description>AvaloniaUI Controls</Description>
<Version>1.0.0</Version>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<Compile Update="**\*.xaml.cs">
<DependentUpon>%(Filename)</DependentUpon>
</Compile>
<AvaloniaResource Include="**\*.xaml">
<SubType>Designer</SubType>
</AvaloniaResource>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Avalonia" Version="0.10.6" />
</ItemGroup>
<ItemGroup>
<None Include="..\LICENSE">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
<None Include="..\UVtools.CAD\UVtools.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>
</Project>