using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Media;
using Hk4eGm.Services;
using MaterialDesignThemes.Wpf;
namespace Hk4eGm.UI.Pages;
/// 物品页。
public sealed class ItemPage : UserControl
{
private readonly PageContext _ctx;
private readonly TextBox _id;
private readonly TextBox _qty;
private readonly TextBox _coinQty;
private string _itemId = "";
private string _coin = "scoin";
public ItemPage(PageContext ctx)
{
_ctx = ctx;
var canvas = Ui.NewCanvas();
Content = canvas;
Ui.Card(canvas, 84, 40, 1302, 108);
Ui.Card(canvas, 84, 154, 1302, 52);
Ui.Label(canvas, "✦", 96, 58, 22, false, new SolidColorBrush(Color.FromRgb(0x80, 0xB9, 0xEE)));
Ui.Label(canvas, "物品", 99, 86, 20, true);
var type = Ui.Combo(canvas, 169, 55, 120, 32, ctx.Data.Item.Categories.Cast