This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Wed Jan 8 10:30:19 2020 | |
@author: Simon | |
""" | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Wed Dec 5 12:56:31 2018 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// derived from https://stackoverflow.com/a/26540204 | |
public class BindableGrid : Grid | |
{ | |
bool spacingRow = false; | |
public static readonly DependencyProperty ItemsSourceProperty = DependencyProperty.Register("ItemsSource", typeof(IEnumerable), typeof(BindableGrid), new FrameworkPropertyMetadata(null, OnItemsSourceChanged)); | |
public static readonly DependencyProperty ItemTemplateProperty = DependencyProperty.Register("ItemTemplate", typeof(DataTemplate), typeof(BindableGrid), new FrameworkPropertyMetadata(null, OnItemTemplateChanged)); | |
public IEnumerable ItemsSource | |
{ |