mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-19 16:06:35 +08:00
项目结构调整
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using Windows.UI.Xaml;
|
||||
|
||||
namespace LiveCharts.Uwp.Components
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public static class DependencyObjectExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Sets if not set.
|
||||
/// </summary>
|
||||
/// <param name="o">The o.</param>
|
||||
/// <param name="dp">The dp.</param>
|
||||
/// <param name="value">The value.</param>
|
||||
public static void SetIfNotSet(this DependencyObject o, DependencyProperty dp, object value)
|
||||
{
|
||||
if (o.ReadLocalValue(dp) == DependencyProperty.UnsetValue)
|
||||
o.SetValue(dp, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user