protected void BackgroundChangedEvent(BackgroundChangedEventArgs e) { if (OnBackgroundChangedEvent != null) { OnBackgroundChangedEvent(this, e); } }
/// <summary> /// Call to indicate background has changed. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void InvokeBackgroundChanged(object sender, BackgroundChangedEventArgs e) { if (OnBackgroundChangedEvent != null) { OnBackgroundChangedEvent(sender, e); } }
private void _optionsControl_OnBackgroundChangedEvent(object sender, BackgroundChangedEventArgs e) { if (ActualWidth >= 550) { UpdateBackground(e.Background, true); } }