Skip to content

Commit

Permalink
💾 Feat: 插件卡片控件
Browse files Browse the repository at this point in the history
  • Loading branch information
Dynesshely committed Jun 16, 2022
1 parent 185f120 commit 35da62f
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
13 changes: 13 additions & 0 deletions KitX Dashboard/ViewModels/Pages/Controls/PluginCardViewModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KitX_Dashboard.ViewModels.Pages.Controls
{
internal class PluginCardViewModel
{

}
}
8 changes: 8 additions & 0 deletions KitX Dashboard/Views/Pages/Controls/PluginCard.axaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<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="KitX_Dashboard.Views.Pages.Controls.PluginCard">
Welcome to Avalonia!
</UserControl>
23 changes: 23 additions & 0 deletions KitX Dashboard/Views/Pages/Controls/PluginCard.axaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
using KitX_Dashboard.ViewModels.Pages.Controls;

namespace KitX_Dashboard.Views.Pages.Controls
{
public partial class PluginCard : UserControl
{
private readonly PluginCardViewModel viewModel = new();

public PluginCard()
{
InitializeComponent();

DataContext = viewModel;
}

private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
}

0 comments on commit 35da62f

Please sign in to comment.