private UiEncodingAdditionalCharacterControl ProvideAdditionalControl(int index) { if (!CheckAccess()) { return(Dispatcher.Invoke(() => ProvideAdditionalControl(index))); } UiEncodingAdditionalCharacterControl control = new UiEncodingAdditionalCharacterControl(); { control.Visibility = Visibility.Collapsed; control.DrawEvent = _drawEvent; _additionalPanel.AddUiElement(control); return(control); } }
private UiEncodingAdditionalCharacterControl ProvideAdditionalControl(int index) { if (!CheckAccess()) return Dispatcher.Invoke(() => ProvideAdditionalControl(index)); UiEncodingAdditionalCharacterControl control = new UiEncodingAdditionalCharacterControl(); { control.Visibility = Visibility.Collapsed; control.DrawEvent = _drawEvent; _additionalPanel.AddUiElement(control); return control; } }