public ToolTipControl() { InitializeComponent(); ttFreePosition.DockTarget = defaultPane; ToolTipControlHelper.PrepareToolTipPositionComboBox(cbToolTipPosition); ToolTipControlHelper.PrepareToolTipLocationComboBox(cbToolTipLocation); chart.DataSource = GetDataSource(); }
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; } }
void cbToolTipLocation_SelectedIndexChanged(object sender, RoutedEventArgs e) { ttMousePosition.Location = ToolTipControlHelper.GetLocationFromComboBox(cbToolTipLocation.SelectedIndex); ttRelativePosition.Location = ToolTipControlHelper.GetLocationFromComboBox(cbToolTipLocation.SelectedIndex); }