12345678910111213141516171819202122232425262728293031323334 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using FWindSoft.Wpf.History;
- namespace Test.CopyCell
- {
- public class CopyValueProvider : ElementValueProvider
- {
- public override object GetValue()
- {
- if (RefControl == null)
- return null;
- return ElementCopyOptions.GetCopyValue(RefControl);
- }
- public override void SetValue(object value)
- {
- if (RefControl == null)
- return;
- ElementCopyOptions.SetCopyValue(RefControl,value);
- }
- protected override Type GetControlType()
- {
- return typeof(FrameworkElement);
- }
- }
- }
|