Exemplo n.º 1
0
 /// <summary>
 /// Initialize a new instance of the ViewLayoutPadding class.
 /// </summary>
 /// <param name="displayPadding">Padding to use around area.</param>
 /// <param name="child">Child to add into view hierarchy.</param>
 public ViewLayoutPadding(Padding displayPadding, ViewBase child)
 {
     _displayPadding = displayPadding;
     Add(child);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Discovers if the provided view is part of the button.
 /// </summary>
 /// <param name="next">View to investigate.</param>
 /// <returns>True is part of button; otherwise false.</returns>
 protected virtual bool ViewIsPartOfButton(ViewBase next)
 {
     return(_target.ContainsRecurse(next));
 }