In WPF, there is no specific event or flag to detect if an input comes from a user or not. One way to achieve this is to handle the SelectionChanged event of the ComboBox and check the Source property of the SelectionChangedEventArgs. The Source property will tell you which element raised the event, and you can use this to determine if the event was raised by the user or programmatically.
Here is an example of how you can handle the SelectionChanged event and check the Source property:
private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (e.Source is ComboBox)
{
// The event was raised by the user
}
else
{
// The event was raised programmatically
}
}