public static ActionBubble CreateActionBubble(clickedHandler runFunction, ImageBrush imageBrush) { ActionBubble newActionBubble = new ActionBubble(); newActionBubble.Width = MainWindow.k_bubbleDiamater; newActionBubble.Height = MainWindow.k_bubbleDiamater; newActionBubble.Opacity = 1; newActionBubble.Margin = new System.Windows.Thickness(4); newActionBubble.setApp(runFunction, imageBrush); return(newActionBubble); }
public void setApp(clickedHandler run, ImageBrush icon) { this.front.Fill = icon; clickHandler = run; }