remove HyperlinkColumn props 'padding' and 'HyperlinkClickMode' (callers should set them through the ElementStyle prop)
This commit is contained in:
1 parent
52e9380a0f
commit
e210c987e7
1 file changed
+1
-8
+1
-8
@@ -9,8 +9,6 @@ using System.Windows.Media;
|
||||
namespace mbts.ui.controls {
|
||||
partial class DIYGrid {
|
||||
internal class HyperlinkElementColumn<TKey> : ColumnBase<TKey>, IFrameworkElementColumn, IFilterableColumn, IKeyedColumn<TKey> {
|
||||
static readonly Thickness _default_padding = new Thickness(6, 0, 6, 0);
|
||||
|
||||
public HyperlinkElementColumn(TKey key, IDataGridColumnFilter filter, string filter_template)
|
||||
: base(key) {
|
||||
this.filter = filter;
|
||||
@@ -22,18 +20,13 @@ namespace mbts.ui.controls {
|
||||
public Style ElementStyle { get; set; }
|
||||
public IDataGridColumnFilter filter { get; set; }
|
||||
public string filter_template { get; set; }
|
||||
public HyperlinkCellClickMode HyperlinkClickMode { get; set; }
|
||||
public Thickness padding { get; set; } = _default_padding;
|
||||
// bindings
|
||||
public BindingBase CommandBinding { get; set; }
|
||||
public BindingBase CommandParameterBinding { get; set; }
|
||||
public BindingBase TextBinding { get; set; }
|
||||
|
||||
public FrameworkElement view_factory() {
|
||||
var hl = new HyperlinkCell {
|
||||
HyperlinkClickMode = HyperlinkClickMode,
|
||||
Padding = padding
|
||||
};
|
||||
var hl = new HyperlinkCell();
|
||||
hl.SetCurrentValue(DIYGrid.ColumnProperty, this);
|
||||
// bindings
|
||||
if (TextBinding != null)
|
||||
|
||||
Reference in new issue
Block a user