/// <summary> /// Creates a Shim from a button /// </summary> /// <param name="input">The actual CenterButton</param> /// <param name="tappedHandler">The tapped handler for this button</param> /// <returns></returns> public static CenterButtonShim ButtonToShim(CenterButton input, RadialMenu.CenterButtonTappedHandler tappedHandler) { return new CenterButtonShim { BorderBrush = input.BorderBrush, Background = input.Background, Content = input.Content, FontSize = input.FontSize, Top = input.Top, Left = input.Left, CenterButtonTappedHandler = tappedHandler }; }
/// <summary> /// Given a Center Button returns a CenterButtonShim of that button /// </summary> /// <param name="input">The Actual CenterButton</param> /// <returns></returns> public static CenterButtonShim ButtonToShim(CenterButton input) { return ButtonToShim(input, null); }