コード例 #1
0
 public ToolTipControl()
 {
     InitializeComponent();
     ttFreePosition.DockTarget = defaultPane;
     ToolTipControlHelper.PrepareToolTipPositionComboBox(cbToolTipPosition);
     ToolTipControlHelper.PrepareToolTipLocationComboBox(cbToolTipLocation);
     chart.DataSource = GetDataSource();
 }
コード例 #2
0
        void cbToolTipPosition_SelectedIndexChanged(object sender, RoutedEventArgs e)
        {
            ChangeOptionsView();
            switch (cbToolTipPosition.SelectedIndex)
            {
            case 0:
                ttMousePosition.Location             = ToolTipControlHelper.GetLocationFromComboBox(cbToolTipLocation.SelectedIndex);
                chart.ToolTipOptions.ToolTipPosition = ttMousePosition;
                break;

            case 1:
                ttRelativePosition.Location          = ToolTipControlHelper.GetLocationFromComboBox(cbToolTipLocation.SelectedIndex);
                chart.ToolTipOptions.ToolTipPosition = ttRelativePosition;
                break;

            case 2:
                chart.ToolTipOptions.ToolTipPosition = ttFreePosition;
                break;
            }
        }
コード例 #3
0
 void cbToolTipLocation_SelectedIndexChanged(object sender, RoutedEventArgs e)
 {
     ttMousePosition.Location    = ToolTipControlHelper.GetLocationFromComboBox(cbToolTipLocation.SelectedIndex);
     ttRelativePosition.Location = ToolTipControlHelper.GetLocationFromComboBox(cbToolTipLocation.SelectedIndex);
 }