46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
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 OrpaonEMS.App.Views
|
|
{
|
|
/// <summary>
|
|
/// SysConfigView.xaml 的交互逻辑
|
|
/// </summary>
|
|
public partial class SysConfigView : UserControl
|
|
{
|
|
public SysConfigView()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void ButtonUp_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
ConfigDatagrid.ScrollIntoView(ConfigDatagrid.Items[0]);
|
|
//var row = (DataGridRow)ConfigDatagrid.ItemContainerGenerator.ContainerFromIndex(9);
|
|
//// 滚动到指定的行
|
|
//if (row != null)
|
|
//{
|
|
// row.BringIntoView();
|
|
//}
|
|
|
|
}
|
|
|
|
private void ButtonDown_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
ConfigDatagrid.ScrollIntoView(ConfigDatagrid.Items[ConfigDatagrid.Items.Count - 1]);
|
|
}
|
|
}
|
|
}
|