Skip to content

Instantly share code, notes, and snippets.

@GABowers
GABowers / BindableGrid.cs
Created November 9, 2024 15:32
A WPF grid with resizable rows, where resizing a row does not change the size of other rows.
// 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
{
@GABowers
GABowers / save_edf.py
Last active February 24, 2020 21:24 — forked from skjerns/save_edf.py
Save a mne.io.Raw object to EDF/EDF+/BDF/BDF+
# -*- 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