mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-07 01:36:35 +08:00
项目结构调整
This commit is contained in:
26
Others/Dragablz/DragablzDemo/BoundExampleNewItem.cs
Normal file
26
Others/Dragablz/DragablzDemo/BoundExampleNewItem.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using Dragablz;
|
||||
|
||||
namespace DragablzDemo
|
||||
{
|
||||
public static class BoundExampleNewItem
|
||||
{
|
||||
public static Func<HeaderedItemViewModel> Factory
|
||||
{
|
||||
get
|
||||
{
|
||||
return
|
||||
() =>
|
||||
{
|
||||
var dateTime = DateTime.Now;
|
||||
|
||||
return new HeaderedItemViewModel()
|
||||
{
|
||||
Header = dateTime.ToLongTimeString(),
|
||||
Content = dateTime.ToString("R")
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user