WPF 通过拖拽改变Item的顺序 ItemsControl

WPF 实现鼠标拖动来控制 控件排序(ListView 做示例) 本文使用到了 gong-wpf-dragdrop扩展包 阅读详情

拖拽每个元素 移动位置 和点击前后移动位置  要求低一点就点击前后移动位置就够了

 

 

之前发过一篇 WPF,strackpanel 拖拽控件 改名,实际上是差不多的,随着对此深入理解可以更加的封装

https://blog.csdn.net/sinat_30224769/article/details/111668459?spm=1001.2014.3001.5501

git链接

https://github.com/442040292/ItemsControlDragSortDemo

 

基础代码重要

扩展方法

    internal static partial class ItemsControlDropSortExtendMethod
    {
        //根据子元素查找父元素
        public static T FindVisualParent<T>(DependencyObject obj) where T : class
        {
            while (obj != null)
            {
                if (obj is T)
                    return obj as T;

                obj = VisualTreeHelper.GetParent(obj);
            }
            return null;
        }

        public static bool GetDragItem(this MouseEventArgs e, object sender, out object data)
        {
            data = null;
            var pos = e.GetPosition((IInputElement)sender);
            HitTestResult result = VisualTreeHelper.HitTest((Visual)sender, pos);
            if (result == null)
            {
                return false;
            }
            var listBoxItem = ItemsControlDropSortExtendMethod.FindVisualParent<FrameworkElement>(result.VisualHit);
            if (listBoxItem == null)
            {
                return false;
            }
            if (listBoxItem.DataContext == null)
            {
                return false;
            }
            data = listBoxItem.DataContext;
            return true;
        }

        public static bool GetDropItem(this DragEventArgs e, object sender, out object from, out object to)
        {
            from = null;
            to = null;
            var pos = e.GetPosition((IInputElement)sender);
            var result = VisualTreeHelper.HitTest((Visual)sender, pos);
            if (result == null)
            {
                return false;
            }
            //查找元数据
            var sourcePerson = e.Data.GetData(e.Data.GetFormats()[0]);
            if (sourcePerson == null)
            {
                return false;
            }
            //查找目标数据
            var listBoxItem = ItemsControlDropSortExtendMethod.FindVisualParent<FrameworkElement>(result.VisualHit);
            if (listBoxItem == null)
            {
                return false;
            }
            from = sourcePerson;
            to = listBoxItem.DataContext;
            return true;
        }

        /// <summary>
        /// 移动列表元素 
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="itemSource"></param>
        /// <param name="fromObj"></param>
        /// <param name="toObj"></param>
        /// <param name="pre"></param>
        public static void ChangeIetmIndex<T>(this Collection<T> itemSource, object fromObj, object toObj, int pre)
        {
            if (fromObj == null || toObj == null)
            {
                return;
            }

            if (!(fromObj is T) || !(toObj is T))
            {
                return;
            }

            if (fromObj.Equals(toObj))
            {
                return;
            }

            var fromItem = (T)fromObj;
            var toItem = (T)toObj;
            itemSource.Remove(fromItem);
            int indexTo = itemSource.IndexOf(toItem);
            if (indexTo == 0 && pre == 0)
            {
                itemSource.Insert(0, fromItem);
            }
            else if (indexTo == itemSource.Count - 1 && pre == 1)
            {
                itemSource.Add(fromItem);
            }
            else
            {
                itemSource.Insert(indexTo + pre, fromItem);
            }
        }

        /// <summary>
        /// 移动列表元素
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="itemSource"></param>
        /// <param name="itemObj"></param>
        /// <param name="pre"></param>
        public static void ChangeIetmIndex<T>(this Collection<T> itemSource, object itemObj, int pre)
        {
            if (itemObj == null)
            {
                return;
            }

            if (!(itemObj is T))
            {
                return;
            }

            var item = (T)itemObj;
            int indexItem = itemSource.IndexOf(item);
            if (indexItem == 0 && pre == -1)
            {
                //保持
            }
            else if (indexItem == itemSource.Count - 1 && pre == 1)
            {
                //保持
            }
            else
            {
                itemSource.Remove(item);
                itemSource.Insert(indexItem + pre, item);
            }
        }

    }

 如何使用

界面部分

<Window x:Class="ItemsControlDragSortDemo.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        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"
        xmlns:local="clr-namespace:ItemsControlDragSortDemo"
        xmlns:vm="clr-namespace:ItemsControlDragSortDemo"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Window.DataContext>
        <vm:MainWindowViewModel  x:Name="MainWindowViewModel"/>
    </Window.DataContext>
    <Window.Resources>
        <Style x:Key="GridMouseOverHighLightStyle" TargetType="{x:Type local:DragGrid}">
            <Setter Property="Background" Value="#01FFFFFF" />
            <Style.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="Background" Value="#441AAA5E" />
                </Trigger>
                <Trigger Property="IsDragMouseOver" Value="True">
                    <Setter Property="Background" Value="#441AAA5E" />
                </Trigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="GridMouseOverHighLightStyle2" TargetType="{x:Type local:DragGrid}">
            <Setter Property="Background" Value="#01FFFFFF" />
            <Style.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="Background" Value="#440000FF" />
                </Trigger>
                <Trigger Property="IsDragMouseOver" Value="True">
                    <Setter Property="Background" Value="#440000FF" />
                </Trigger>
            </Style.Triggers>
        </Style>
    </Window.Resources>
    <Grid>
        <ItemsControl x:Name="LBoxSort"
                      ItemsSource="{Binding YouItemSource}"
                      AllowDrop="True"
                      PreviewMouseMove="LBoxSort_OnPreviewMouseMove" 
                      >
            <!--Drop="LBoxSort_OnDrop"-->
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                    <Grid Background="Red" Width="60" Height="30" Margin="10" >
                        <TextBlock Text="{Binding Name}"/>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition/>
                                <ColumnDefinition/>
                            </Grid.ColumnDefinitions>
                            <local:DragGrid Style="{StaticResource GridMouseOverHighLightStyle}"  Drop="LBoxSort_Drop_Prev" MouseLeftButtonDown="LBoxSort_Move_Prev" />
                            <local:DragGrid Style="{StaticResource GridMouseOverHighLightStyle2}" Drop="LBoxSort_Drop_Next" MouseLeftButtonDown="LBoxSort_Move_Next" Grid.Column="1"/>
                        </Grid>
                    </Grid>
                </DataTemplate>
            </ItemsControl.ItemTemplate>
            <ItemsControl.ItemsPanel>
                <ItemsPanelTemplate>
                    <WrapPanel />
                </ItemsPanelTemplate>
            </ItemsControl.ItemsPanel>
        </ItemsControl>
    </Grid>
</Window>

界面cs 辅助

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace ItemsControlDragSortDemo
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {

        public MainWindow()
        {
            InitializeComponent();
        }

        public MainWindowViewModel ViewModel { get => this.DataContext as MainWindowViewModel; }


        private void LBoxSort_OnPreviewMouseMove(object sender, MouseEventArgs e)
        {
            if (e.LeftButton == MouseButtonState.Pressed)
            {
                e.GetDragItem(sender, out object from);
                DragDrop.DoDragDrop(LBoxSort, from, DragDropEffects.Move);
            }
        }

        private void LBoxSort_Drop_Prev(object sender, DragEventArgs e)
        {
            var success = e.GetDropItem(sender, out object from, out object to);
            if (success)
            {
                ViewModel.ChangeIetmIndex(from, to, 0);
            }
        }

        private void LBoxSort_Drop_Next(object sender, DragEventArgs e)
        {
            var success = e.GetDropItem(sender, out object from, out object to);
            if (success)
            {
                ViewModel.ChangeIetmIndex(from, to, 1);
            }
        }

        private void LBoxSort_Move_Prev(object sender, MouseButtonEventArgs e)
        {
            var control = sender as FrameworkElement;
            var dc = control.DataContext;
            ViewModel.ChangeIetmIndex(dc, -1);
        }

        private void LBoxSort_Move_Next(object sender, MouseButtonEventArgs e)
        {
            var control = sender as FrameworkElement;
            var dc = control.DataContext;
            ViewModel.ChangeIetmIndex(dc, 1);
        }
    }
}

 

viewmodel 调用

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ItemsControlDragSortDemo
{
    public class MainWindowViewModel : ViewModelBase
    {

        public MainWindowViewModel()
        {

            List<YouItemViewModel> list = new List<YouItemViewModel>();
            for (int i = 0; i < 10; i++)
            {
                list.Add(new YouItemViewModel { Name = "" + i });
            }

            YouItemSource = new ObservableCollection<YouItemViewModel>(list);
        }

        private ObservableCollection<YouItemViewModel> _YouItemSource;

        public ObservableCollection<YouItemViewModel> YouItemSource { get => _YouItemSource; set => Set(ref _YouItemSource, value); }


        public class YouItemViewModel
        {
            public string Name { get; set; }
        }

        #region 拖拽移动顺序

        public void ChangeIetmIndex(object from, object to, int pre)
        {
            YouItemSource.ChangeIetmIndex(from, to, pre);
        }

        public void ChangeIetmIndex(object item, int pre)
        {
            YouItemSource.ChangeIetmIndex(item, pre);
        }

        #endregion
    }
}

viewmodel 基础类

 

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;

namespace ItemsControlDragSortDemo
{
    public class ViewModelBase : NotifyPropertyBase
    {

    }

    public class NotifyPropertyBase : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        protected virtual bool Set<T>(ref T storage, T value, [CallerMemberName] string propertyName = null)
        {
            if (object.Equals(storage, value)) return false;

            storage = value;
            this.OnPropertyChanged(propertyName);

            return true;
        }

        protected void OnPropertyChanged(string propertyName)
        {
            this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}

另外拖拽的时候是没有mouseover效果的 所以 对Grid 做了一点调整 可以把这一段代码直接写在cs 也可以 重新搞个控件 我这里是重新搞控件继承了一下

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace ItemsControlDragSortDemo
{
    public class DragGrid : Grid
    {

        public bool IsDragMouseOver
        {
            get { return (bool)GetValue(IsDragMouseOverProperty); }
            set { SetValue(IsDragMouseOverProperty, value); }
        }

        // Using a DependencyProperty as the backing store for IsDragMouseOver.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty IsDragMouseOverProperty =
            DependencyProperty.Register("IsDragMouseOver", typeof(bool), typeof(DragGrid), new PropertyMetadata(false));


        protected override void OnDragEnter(DragEventArgs e)
        {
            base.OnDragEnter(e);
            IsDragMouseOver = true;
        }

        protected override void OnDragLeave(DragEventArgs e)
        {
            base.OnDragLeave(e);
            IsDragMouseOver = false;
        }

        protected override void OnDragOver(DragEventArgs e)
        {
            base.OnDragOver(e);
            IsDragMouseOver = true;
        }

        protected override void OnDrop(DragEventArgs e)
        {
            base.OnDrop(e);
            IsDragMouseOver = false;
        }
    }
}

这样的话就能满足 拖拽每个元素 移动位置 和点击前后移动位置  要求低一点就点击前后移动位置就够了

 

WPF ListBox MVVM 增加列表项后,让列表自动滚动到最下面一行 阅读详情

相关推荐

WPF 实现可拖拽调整顺序的ListView自定义控件

用WPF 实现可拖拽调整顺序的ListView

qq_42399932的博客 2382

WPF 控件专题 WrapPanel 控件详解

WPF 控件专题 WrapPanel 控件详解

^@^lemon tea^@^ 6117

WPF自定义控件:实现ListView项可拖拽排序功能

本文还有配套的精品资源,点击获取 简介:本文详细介绍了如何在WPF平台上创建一个支持通过拖拽方式重新排序ListView项的自定义控件。该控件利用.NET框架提供的事件处理、数据绑定机制,以及MVVM设计模式,实现了从基础的拖放操作到数据源更新的整个流程。文章还将探讨如何通过添加动画效果、异步处理等手段优化用户体验和性能。 1. WPF自定义ListView控件概...

weixin_35307279的博客 2025

WPF TreeView拖动排序拖拽排列

最近工作中要用Treeview进行拖动排序,但是呢,网上几乎没有相关的Demo示例等,只能自己手撸,在这过程中,也学到了一些知识,我在此记录下,防止下次用到,或者需要的小伙伴用到。 本文代码实现简单,扩展性强,Demo示例总共也就267行,代码还包含了数据初始化,View控件初始化等非逻辑代码,代码简单以维护。

baoolong的博客 4954

WPF listbox之间拖动 drag&drop

WPF 实现了两个listbox之间拖动,drag&drop,并且有上下按钮控制listbox里面元素的移动,还有拖动时边框变色,1分,你值得拥有。

WPF中ListView拖拽效果

WPF中ListView拖拽效果的实现。

WPF ListView不刷新?从通知机制到线程调度的完整排查指南

在桌面应用开发中,数据绑定是构建动态界面的核心能力,而WPF的绑定体系则依赖一套严谨的通知机制。当界面无法实时反映数据变化时,开发者往往需要从底层的接口协议入手——例如实体的属性变更需实现INotifyPropertyChanged,集合的增删则依赖ObservableCollection自带的集合变更通知。然而,通知机制只是第一道关卡,后台线程操作UI、分组排序的视图缓存、绑定路径错误等隐性因素,同样会导致“改了值不刷新”的现象。理解从属性通知到集合视图刷新的完整链路,是高效解决此类问题的关键。本文系统梳

weixin_34245082的博客 271

WPF DataGrid 行拖拽

WPF DataGrid 列是默认可以拖拽的,行需要另外写代码拖拽。

DevExpress 22.X在VS2022中开发WinForm/WPF企业界面的实战指南

企业级桌面应用开发中,原生WinForm控件在数据量增长后难免卡顿,外观也难以满足现代化UI需求;WPF虽然渲染能力强,但样式与模板的复杂性让不少开发者望而却步。DevExpress作为一套成熟的第三方控件库,在网格、图表、导航及数据编辑等方面提供了开箱即用的能力,配合Visual Studio 2022和C#开发环境,能够显著提升WinForm与WPF项目的交付效率。从环境配置、版本匹配、GridControl数据绑定,到WPF下MVVM模式的集成、Prism框架的共存,再到Server Mode处理百万

weixin_34221276的博客 416

WPF ListBoxItem拖动

应用WPF装饰器实现ListBoxItem拖动改变顺序...

Python实战:用pdfplumber从PDF中精准提取表格数据(附完整代码)

本文详细介绍了如何使用Python库pdfplumber从PDF中精准提取表格数据,包括环境配置、标准与复杂表格处理策略、数据清洗与验证等实战技巧。通过完整代码示例,帮助数据分析师和财务专业人士实现PDF数据提取的自动化,提升工作效率。

weixin_29061821的博客 406

ItemsControl使用

转载自:点击打开链接

LH806732的专栏 1878

STM32开发实战:从嵌入式系统到硬件控制 | 你必须得会

🏆本文收录于「编程与技术实战」专栏,此专栏涵盖了C/C++编程、人工智能、数据结构、机器学习等技术领域的内容,助你早日登顶实现财富自由🚀;同时,欢迎大家关注&&收藏&&订阅!持续更新中,up!up!up!!

**My Coding Family** 1056

WPF拖放功能实现

  写在前面:本文为即兴而作,因此难免有疏漏和词不达意的地方。在这里,非常期望您提供评论,分享您的想法和建议。   这是一篇介绍如何在WPF中实现拖放功能的短文。   首先要读者清楚的一件事情是:拖放主要分为拖放源和拖放目标两个组成。拖放源和拖放目标各自拥有不同的事件。软件开发人员需要在适当的事件中完成相应功能。   试想拖放是如何操作的:用户选中一个界面元素,并在鼠标左键按下的情...

weixin_30273931的博客 487

使用TensorFlow搭建FNN(全连接神经网络)的基本步骤

提示:转载请注明出处,若本文无意侵犯到您的合法权益,请及时与作者联系。 目录 一、定义神经网络的输入输出 二、搭建神经网络 1、定义一个神经层中的权重 2、定义一个神经层中的阈值 3、定义一个神经层中的激活函数 4、组合神经层为神经网络 三、搭建损失函数和优化器 1、搭建损失函数 首先介绍第一个函数这其中用到的共同的函数为 2、定义优化器 四、训练神经网络 全连接神经网络的网络结构如下: 一、定义神经网络的输入输出 神经网络最擅长的工作就是模拟非线性函数,即一个复杂的高..

qq_41959920的博客 4081

文章详细介绍了进行DoIP(DiagnosticoverInternetProtocol)测试的完整过程,包括样件的正确接线、CANoe软件的环境配置、端口设置、VLAN配置、IP和MAC地址的设定

关于Tester和DUT的地址,其实最主要的就是DUT的IP、MAC和逻辑地址,如果不知道Tester的IP、MAC和逻辑地址,可以配置为与DUT同一网段的就可以。ps:最重的是知道DUT的IP、逻辑、MAC地址,如果有VLAN也需要知道,Tester的地址可以根据DUT地址进行设定,其余的值可根据DoIP的报文查到相关参数。ps:如果在通信中没有建立VLAN,但是源地址和目的地址都填写正确,此时就要考虑是否是遗漏了VLAN,建立一个VLAN,在重新试试是否可通信。此处与硬件连接是相对应的,要注意!

qq_40965861的博客 1140

WPF下实现控件的拖拽功能

我们写运动控制上位机程序的时候,经常是要考虑如何实现一个流程,我们要考虑,完成当前步骤后,下一个步骤要实现什么,判断条件,满足后的步骤是什么,不满足条件的步骤又是什么,或者需要一直等待条件满足才开始下一个步骤,也要考虑超时都不满足条件需要走另一个步骤,根据条件也有可能会跳转回原来的步骤,这些逻辑通常都是很繁琐的(使用if-elseif、switch-case),而且写好后再次修改时,容易漏改忘改等造成逻辑不稳定问题;这里,我们介绍一种全新的实现逻辑的方式:通过流程图的原理去实现这些业务性的繁琐的逻辑。

Aflashstar的博客 8089

XC7K325T FPGA硬件设计实战:从板级原理图到高速接口优化

本文以XC7K325T FPGA为核心,详细阐述了从板级原理图设计到高速接口优化的完整硬件实战流程。内容涵盖芯片管脚与电源规划、时钟复位配置电路设计,并重点解析了DDR3内存子系统以及PCIe与光纤接口等高速电路的原理图与PCB设计要点,旨在帮助工程师构建稳定可靠的高性能硬件平台。

python9snake的博客 535

wpf ListBox拖动排序实现

XAML:   &lt;Window x:Class="WpfApplication6.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" ...

CSDN 9075

人类肠道微生物群落代谢建模

MICOMWeb 是款用户友好型网站,专为人类肠道微生物群落代谢建模设计。该网站旨在解决基因组尺度代谢模型(in silico)构建过程中的3大限制:① 使用 MICOM Python 包进行通量平衡分析时对用户 Python 编程知识的要求;② 支持预定义和用户自定义饮食,以生成专属代谢模型;③ 处理宏基因组鸟枪法测序或 16S 扩增子测序获得的真实丰度数据时,所需的高通量计算基础设施。本文展示了 MICOMWeb 的核心功能,用户可轻松开展虚拟实验,为3个已发表数据集的实验验证生成功能性假设。

多组・学・多组学 1194

PyTorch复现EEG-TCNet踩坑记:从BCI IV2a数据到TCN块缺失的完整解决方案

本文详细解析了使用PyTorch复现EEG-TCNet模型的全过程,重点解决了BCI IV2a数据集预处理和TCN模块缺失的技术难题。通过标准化数据流程、跨受试者验证策略以及三种因果卷积实现方案,为运动想象分类任务提供完整解决方案,帮助研究者高效实现模型复现与优化。

weixin_30699955的博客 323

wpf 对ItemsControl的内容进行排序

System.ComponentModel; itemsControl.Items.SortDescriptions.Add(new SortDescription("Content", ListSortDirection.Ascending)); itemsControl可以是listbox,listview或者其他

lishuangquan1987的博客 1437

Ubuntu Rtx3090 Cuda11.7 安装 pytorch3d

pytorch ubuntu pytorch3d 安装

G果的博客 2283

WPF ListBox虚拟化

在ListBox加载大量数据的情况下,如果不进行虚拟化,内存将逐渐增大,长时间运行后将造成卡顿 所以需要虚拟化 写法 <ListBox x:Name="listBox" VirtualizingStackPanel.VirtualizationMode="Recycling" VirtualizingStackPanel.IsVirtualizing="True"> <ListBox.ItemsPanel> <ItemsPanelTemplate &g

L.的博客 1370

计算机控制技术及应用

《计算机控制技术及应用》通过总结作者的科研成果和吸收国内外的先进理论、方法和技术,以计算机控制系统的网络化、开放化、智能化和集成化发展趋势为主线索,主要介绍计算机控制系统的基本概念和计算机控制系统的典型形式,计算机控制系统的数学描述与基本分析方法,以及数字PID控制器、最少拍控制系统、达林算法、状态变量设计法等设计方法及其各种改进算法。重点突出计算机控制系统输入输出通道接口的设计方法和典型控制系统的设计案例与实现方法等。

pscad IEEE标准系统搭建说明

pscad IEEE标准系统搭建说明,包含典型的IEEE 9节点、14节点、30节点、39节点和118节点系统。内含标准测试系统的原始数据和潮流结果。

C# .NET 遍历Json 形成键值对

记录一下小方法,在C#中可能用到,获取Json中很多的键值,如果一个一个手敲出来有些麻烦,不过本方法还是会损耗一些性能滴。懒人编程找方法... string test_json = "{\"name\":\"tom\",\"nickname\":\"tony\",\"sex\":\"male\",\"age\":20,\"email\":\"123@123.com

sinat_30224769的博客 1万+

Probability and Statistics - 4th edition

Probability and Statistics - 4th edition

上一篇: wpf 简单项目 不引用 mvvmlight 简单方法
下一篇: 扩展控件样式绑定 触发器绑定
你要上天
博客等级 码龄11年 45粉丝 48原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值