//add event click function to all buttons public void AddClickEventHandler(Windows.UI.Xaml.RoutedEventHandler myMethodName) { foreach (KeyBoard key in _buttons) { key.Click += myMethodName; } }
public InProgress() { InitializeComponent(); Loaded += new Windows.UI.Xaml.RoutedEventHandler((o, t) => { spinner.Begin(); foreach (var child in spinner_1.Children) { (child as Polygon).Fill = new Windows.UI.Xaml.Media.SolidColorBrush(m_color); } }); }
public CircularItemAdd(Windows.UI.Xaml.RoutedEventHandler add_Element) { this.InitializeComponent(); AddButton.Click += add_Element; }