Exemplo n.º 1
0
 private bool TrySetFocusOnNextItem(Legend legend, bool isForward)
 {
     LegendItem nextItem = legend.GetNextItem(this, isForward);
     return legend.SetFocusToItem(nextItem);
 }
Exemplo n.º 2
0
 public LegendAutomationPeer(Legend owner)
     : base((FrameworkElement)owner)
 {
 }
Exemplo n.º 3
0
 internal bool IsInLegendVisibleArea(Legend legend)
 {
     Point point;
     try
     {
         point = this.TransformToVisual((Visual)legend).Transform(new Point(0.0, 0.0));
     }
     catch
     {
         point = new Point(double.NegativeInfinity, double.NegativeInfinity);
     }
     if (point.X >= 0.0 && point.Y >= 0.0 && point.X + this.ActualWidth / 2.0 <= legend.ActualWidth)
         return point.Y + this.ActualHeight / 2.0 <= legend.ActualHeight;
     return false;
 }
Exemplo n.º 4
0
        private bool TrySetFocusOnNextItem(Legend legend, bool isForward)
        {
            LegendItem nextItem = legend.GetNextItem(this, isForward);

            return(legend.SetFocusToItem(nextItem));
        }