Sicherung

This commit is contained in:
Maier Stephan SI
2023-01-16 16:04:47 +01:00
parent 63512e77aa
commit 0b0508b042
98 changed files with 2454 additions and 188 deletions

View File

@@ -0,0 +1,41 @@
using System;
using System.Windows;
using System.Windows.Controls;
namespace DJ.Helper.ListViewLayoutManager
{
public abstract class LayoutColumn
{
protected static bool HasPropertyValue(GridViewColumn column, DependencyProperty dp)
{
if (column == null)
{
throw new ArgumentNullException(nameof(column));
}
object value = column.ReadLocalValue(dp);
if (value?.GetType() == dp.PropertyType)
{
return true;
}
return false;
}
protected static double? GetColumnWidth(GridViewColumn column, DependencyProperty dp)
{
if (column == null)
{
throw new ArgumentNullException(nameof(column));
}
object value = column.ReadLocalValue(dp);
if (value?.GetType() == dp.PropertyType)
{
return (double) value;
}
return null;
}
}
}