110,580
社区成员
发帖
与我相关
我的任务
分享
public class BaseCustomControl:Control
{
public override void OnApplyTemplate()
{
base.OnApplyTemplate();
Loaded += BaseCustomControl_Loaded;
}
private void BaseCustomControl_Loaded(object sender, System.Windows.RoutedEventArgs e)
{
throw new NotImplementedException();
}
}
public class CustomControl3 : BaseCustomControl
{
static CustomControl3()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(CustomControl3), new FrameworkPropertyMetadata(typeof(CustomControl3)));
}
public CustomControl3()
{
Loaded += CustomControl3_Loaded;
}
private void CustomControl3_Loaded(object sender, RoutedEventArgs e)
{
throw new NotImplementedException();
}
}