Skip to content

Commit

Permalink
refactor: move Behaviors to Eppie.App.UI
Browse files Browse the repository at this point in the history
References: Eppie-io#382
  • Loading branch information
al-kau committed Nov 1, 2024
1 parent df39b8e commit b6e9b69
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 13 deletions.
9 changes: 0 additions & 9 deletions source/Eppie.App/Eppie.App.Shared/Eppie.App.Shared.projitems
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,6 @@
<Compile Include="$(MSBuildThisFileDirectory)Authorization\AuthConfig.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Authorization\AuthConfig.UWP.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Authorization\WindowsAuthenticationBroker.UWP.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Behaviors\ClipboardBehaviorBase.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Behaviors\CopyToClipboardBehavior.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Behaviors\DialogBehavior.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Behaviors\FileBehavior.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Behaviors\ItemClickCommandBehavior.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Behaviors\ListViewItemClickBehavior.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Behaviors\ObjectToFileBehavior.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Behaviors\PasteFromClipboardBehavior.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Behaviors\TreeViewItemInvokeBehavior.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Common\UITools.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Controls\BaseUserControl.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Controls\RichTextEditor.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@
<Import_RootNamespace>Eppie.App.UI</Import_RootNamespace>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)Behaviors\ClipboardBehaviorBase.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Behaviors\CopyToClipboardBehavior.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Behaviors\DialogBehavior.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Behaviors\FileBehavior.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Behaviors\ItemClickCommandBehavior.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Behaviors\ListViewItemClickBehavior.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Behaviors\ObjectToFileBehavior.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Behaviors\PasteFromClipboardBehavior.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Behaviors\TreeViewItemInvokeBehavior.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Converters\BitmapSourceConverters.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Converters\BoolToValueConverter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Converters\ConverterChain.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,18 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" />
<PackageReference Include="Microsoft.UI.Xaml" />
<PackageReference Include="Microsoft.Xaml.Behaviors.Uwp.Managed" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\gitmodules\TuviCore\Sources\Tuvi.Core.Entities\Tuvi.Core.Entities.csproj">
<Project>{1e363987-165e-4ea6-a0e1-fad82b7c0633}</Project>
<Name>Tuvi.Core.Entities</Name>
</ProjectReference>
<ProjectReference Include="..\..\Eppie.App.ViewModels\Eppie.App.ViewModels.csproj">
<Project>{2da63e2a-a0ac-4c55-b912-04d8970bced3}</Project>
<Name>Eppie.App.ViewModels</Name>
</ProjectReference>
</ItemGroup>
<Import Project="..\Eppie.App.UI.Shared\Eppie.App.UI.Shared.projitems" Label="Shared" />
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,15 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\gitmodules\TuviCore\Sources\Tuvi.Core.Entities\Tuvi.Core.Entities.csproj" />
<ProjectReference Include="..\..\Eppie.App.ViewModels\Eppie.App.ViewModels.csproj" />
</ItemGroup>

<!-- https://github.com/unoplatform/Uno.XamlBehaviors?tab=readme-ov-file#uno-platform-port-of-xaml-behaviors -->
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0-windows10.0.19041'">
<PackageReference Include="Microsoft.Xaml.Behaviors.WinUI.Managed" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' != 'net8.0-windows10.0.19041'">
<PackageReference Include="Uno.Microsoft.Xaml.Behaviors.WinUI.Managed" />
</ItemGroup>

</Project>
8 changes: 4 additions & 4 deletions source/Eppie.App/Eppie.App.sln
Original file line number Diff line number Diff line change
Expand Up @@ -791,8 +791,8 @@ Global
{E66E9BBD-2F75-453F-83B9-709F67517261}.Release|x64.Build.0 = Release|Any CPU
{E66E9BBD-2F75-453F-83B9-709F67517261}.Release|x86.ActiveCfg = Release|Any CPU
{E66E9BBD-2F75-453F-83B9-709F67517261}.Release|x86.Build.0 = Release|Any CPU
{A6C30ED1-6213-427E-B255-E5E8C69E6D0E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A6C30ED1-6213-427E-B255-E5E8C69E6D0E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A6C30ED1-6213-427E-B255-E5E8C69E6D0E}.Debug|Any CPU.ActiveCfg = Debug|x64
{A6C30ED1-6213-427E-B255-E5E8C69E6D0E}.Debug|Any CPU.Build.0 = Debug|x64
{A6C30ED1-6213-427E-B255-E5E8C69E6D0E}.Debug|ARM.ActiveCfg = Debug|ARM
{A6C30ED1-6213-427E-B255-E5E8C69E6D0E}.Debug|ARM.Build.0 = Debug|ARM
{A6C30ED1-6213-427E-B255-E5E8C69E6D0E}.Debug|ARM64.ActiveCfg = Debug|ARM64
Expand All @@ -801,8 +801,8 @@ Global
{A6C30ED1-6213-427E-B255-E5E8C69E6D0E}.Debug|x64.Build.0 = Debug|x64
{A6C30ED1-6213-427E-B255-E5E8C69E6D0E}.Debug|x86.ActiveCfg = Debug|x86
{A6C30ED1-6213-427E-B255-E5E8C69E6D0E}.Debug|x86.Build.0 = Debug|x86
{A6C30ED1-6213-427E-B255-E5E8C69E6D0E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A6C30ED1-6213-427E-B255-E5E8C69E6D0E}.Release|Any CPU.Build.0 = Release|Any CPU
{A6C30ED1-6213-427E-B255-E5E8C69E6D0E}.Release|Any CPU.ActiveCfg = Release|x64
{A6C30ED1-6213-427E-B255-E5E8C69E6D0E}.Release|Any CPU.Build.0 = Release|x64
{A6C30ED1-6213-427E-B255-E5E8C69E6D0E}.Release|ARM.ActiveCfg = Release|ARM
{A6C30ED1-6213-427E-B255-E5E8C69E6D0E}.Release|ARM.Build.0 = Release|ARM
{A6C30ED1-6213-427E-B255-E5E8C69E6D0E}.Release|ARM64.ActiveCfg = Release|ARM64
Expand Down

0 comments on commit b6e9b69

Please sign in to comment.