Exemplo n.º 1
0
        protected void Initialize()
        {
            line                = new PlotPath();
            markers             = new PlotPath();
            line.StrokeLineJoin = PenLineJoin.Bevel;
            line.Visibility     = Visibility.Visible;
            markers.Visibility  = Visibility.Visible;
            //
            annotation = new PlotPointAnnotation();
            //
            legendItem = CreateLegendItem();
            //
            // Name binding
            Binding titleBinding = new Binding("Title")
            {
                Source = this, Mode = BindingMode.OneWay
            };

            legendItem.SetBinding(LegendItem.TitleProperty, titleBinding);
            // Other bindings:
            BindToThis(line, false, true);
            BindToThis(legendLine, false, true);
            BindToThis(markers, true, false);
            BindToThis(legendMarker, true, false);
        }
Exemplo n.º 2
0
 protected void Initialize()
 {
     line = new PlotPath();
     markers = new PlotPath();
     line.StrokeLineJoin = PenLineJoin.Bevel;
     line.Visibility = Visibility.Visible;
     markers.Visibility = Visibility.Visible;
     //
     annotation = new PlotPointAnnotation();
     //
     legendItem = CreateLegendItem();
     //
     // Name binding
     Binding titleBinding = new Binding("Title") { Source = this, Mode = BindingMode.OneWay };
     legendItem.SetBinding(LegendItem.TitleProperty, titleBinding);
     // Other bindings:
     BindToThis(line, false, true);
     BindToThis(legendLine, false, true);
     BindToThis(markers, true, false);
     BindToThis(legendMarker, true, false);
 }