Ejemplo n.º 1
0
 private bool TrySetFocusOnNextItem(Legend legend, bool isForward)
 {
     LegendItem nextItem = legend.GetNextItem(this, isForward);
     return legend.SetFocusToItem(nextItem);
 }
Ejemplo n.º 2
0
 public LegendAutomationPeer(Legend owner)
     : base((FrameworkElement)owner)
 {
 }
Ejemplo 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;
 }
Ejemplo n.º 4
0
        private bool TrySetFocusOnNextItem(Legend legend, bool isForward)
        {
            LegendItem nextItem = legend.GetNextItem(this, isForward);

            return(legend.SetFocusToItem(nextItem));
        }