Answer the question
In order to leave comments, you need to log in
No overload matches delegate?
I created a UserControl with several elements on it - the problem is with the button, or rather with the delegate:
public delegate void NotifyCallUserHelpPageEventHandler(string settingName);
public event NotifyCallUserHelpPageEventHandler CallUserHelpPage;
protected virtual void OnCallUserHelpPage()
{
NotifyCallUserHelpPageEventHandler handler = CallUserHelpPage;
if (handler != null) handler(Header);
}
//Событие нажатия на кнопку
private void HelpButtonClick(object sender, RoutedEventArgs e)
{
OnCallUserHelpPage();
}
<controls:ToggleSwitchWithHelp
Header="Использование местонахождения"
IsChecked="{Binding IsAllowUseMyGeopositionSetting, Converter={StaticResource SettingsConverter}, Mode=TwoWay, Source={StaticResource AppSettings}}"
CallUserHelpPage="ToggleSwitchWithHelp_OnCallUserHelpPage"/>
private void ToggleSwitchWithHelp_OnCallUserHelpPage(string settingName)
{
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question