调整wpf的界面显示样式
This commit is contained in:
1 parent
e3027e5fa8
commit
d03a1e1466
5 files changed
+191
-24
No files matched your search
@@ -1,6 +1,8 @@
|
||||
using AllBase;
|
||||
using AllBase.Extension;
|
||||
using AllBase.Model;
|
||||
using NaiBa.Util;
|
||||
using NaiBa.Util.Extension;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
@@ -24,11 +26,13 @@ namespace _29WxOrderWpf
|
||||
/// </summary>
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
public ObservableCollection<oms_wei_order_info> lstOrder = new ObservableCollection<oms_wei_order_info>();
|
||||
public ObservableCollection<oms_wei_order_info> lstOrder { get; set; } = new ObservableCollection<oms_wei_order_info>();
|
||||
public List<oms_wei_order_info> lstOrder1 { get; set; } = new List<oms_wei_order_info>();
|
||||
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
//DataContext = this;
|
||||
|
||||
this.Height = 800;
|
||||
this.Width = 1600;
|
||||
@@ -42,10 +46,14 @@ namespace _29WxOrderWpf
|
||||
//dgOrder.Items.Add(1111111);
|
||||
|
||||
dgOrder.ItemsSource = lstOrder;
|
||||
|
||||
lbxOrder.ItemsSource = lstOrder;
|
||||
for (int i = 0; i < 10000; i++)
|
||||
{
|
||||
lstOrder.Add(new oms_wei_order_info() { id = 1, is_select = false, order_id = "3737033423685556736 " + Randomx.GetId(1000, 10000), shop_name = "媛卡曦工厂优选" });
|
||||
//lstOrder.Add(new oms_wei_order_info() { id = 1, is_select = false, order_id = ("3737033423685556736".ParseToLong() + Randomx.GetId(0,100)).ParseToString(), shop_name = "媛卡曦工厂优选" });
|
||||
lstOrder.Add(new oms_wei_order_info() { id = 1, is_select = false, order_id = Randomx.GetId(1000,10000).ParseToString(), shop_name = "媛卡曦工厂优选" });
|
||||
}
|
||||
lstOrder.SortDesc(o => o.order_id.ParseToLong());
|
||||
}
|
||||
|
||||
private void btnClose_Click(object sender, RoutedEventArgs e)
|
||||
@@ -53,9 +61,10 @@ namespace _29WxOrderWpf
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
private void Path_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
|
||||
var orderId = ((sender as Border)?.Tag).ParseToString();
|
||||
Clipboard.SetText(orderId);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user