Наследование: Windows.UI.Xaml.Controls.Button
Пример #1
0
 /// <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
     };
 }
Пример #2
0
 /// <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);
 }