예제 #1
0
 /// <summary>
 /// Returns true if the child is left aligned with Panel or has no horizontal alignment instructions
 /// </summary>
 private bool IsAlignLeftWithPanel(IFrameworkElement child)
 {
     return(RelativePanel.GetAlignLeftWithPanel(child) ||
            !(
                RelativePanel.GetAlignRightWithPanel(child) ||
                RelativePanel.GetAlignHorizontalCenterWithPanel(child) ||
                RelativePanel.GetAlignLeftWith(child) != null ||
                RelativePanel.GetAlignRightWith(child) != null ||
                RelativePanel.GetRightOf(child) != null ||
                RelativePanel.GetLeftOf(child) != null
                ));
 }