コード例 #1
0
        protected 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));
        }
コード例 #2
0
        protected 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));
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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;
        }
コード例 #5
0
 protected virtual void OnMarkerBind(BindMarkerEventArgs e)
 {
 }
コード例 #6
0
 protected virtual void OnMarkerBind(BindMarkerEventArgs e)
 {
 }