添加项目文件。
This commit is contained in:
45
OrpaonEMS.App/Views/SysConfigView.xaml.cs
Normal file
45
OrpaonEMS.App/Views/SysConfigView.xaml.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user