Beispiel #1
0
        protected new void OnMarkerBind(BindMarkerEventArgs e)
        {
            var marker = e.Marker;

            //marker.SetBinding(ViewportRectPanel.ViewportVerticalAlignmentProperty, new Binding { Path = new PropertyPath("Value"), Converter = converter });

            xValues.Add(ViewportPanel.GetX(marker));
        }
        private FrameworkElement CreateMarker(object item)
        {
            var marker = markerGenerator.CreateMarker(item);

            if (marker != null)
            {
                marker.DataContext = item;
                AttachViewportChangedListener(marker);

                BindMarkerEventArgs bindArgs = new BindMarkerEventArgs {
                    Data = item, Marker = marker
                };

                OnMarkerBind(bindArgs);

                if (markerBindCallback != null)
                {
                    markerBindCallback(bindArgs);
                }
            }

            return(marker);
        }
 protected virtual void OnMarkerBind(BindMarkerEventArgs e)
 {
 }