更新客户端渲染,更新了壳
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
// This Source Code Form is subject to the terms of the MIT License.
|
||||
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
|
||||
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
|
||||
// All Rights Reserved.
|
||||
|
||||
using Wpf.Ui.Demo.Console.Models;
|
||||
using Wpf.Ui.Demo.Console.Utilities;
|
||||
|
||||
namespace Wpf.Ui.Demo.Console.Views.Pages;
|
||||
|
||||
/// <summary>
|
||||
/// Interaction logic for DataView.xaml
|
||||
/// </summary>
|
||||
public partial class DataPage
|
||||
{
|
||||
public ObservableCollection<DataColor> ColorsCollection = [];
|
||||
|
||||
public DataPage()
|
||||
{
|
||||
InitializeData();
|
||||
InitializeComponent();
|
||||
|
||||
ColorsItemsControl.ItemsSource = ColorsCollection;
|
||||
|
||||
this.ApplyTheme();
|
||||
}
|
||||
|
||||
private void InitializeData()
|
||||
{
|
||||
var random = new Random();
|
||||
|
||||
for (int i = 0; i < 8192; i++)
|
||||
{
|
||||
ColorsCollection.Add(
|
||||
new DataColor
|
||||
{
|
||||
Color = new SolidColorBrush(
|
||||
Color.FromArgb(
|
||||
(byte)200,
|
||||
(byte)random.Next(0, 250),
|
||||
(byte)random.Next(0, 250),
|
||||
(byte)random.Next(0, 250)
|
||||
)
|
||||
),
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user