0
MyUserControl에서 상속해야하는 wormControl 클래스가 있지만 솔루션을 빌드 할 때 wormControl이 UserControl에서 상속됩니다. 어쨌든 MyUserControl에서 상속하고 싶습니다. 그것을 구현하는 방법? 이 말한 것처럼UserControl에서 상속 금지
<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:System="clr-namespace:System;assembly=mscorlib"
mc:Ignorable="d"
x:Class="FishGameAnimations.wormControl"
d:DesignWidth="575" d:DesignHeight="339">
/* ...other stuff... */
</UserControl>
상속은 웜 제어 뒤에있는 코드에서 처리됩니다. 이 코드를 게시하고 조금 질문을 명확히하십시오. –
[WPF에서 UserControl에서 상속] (http://stackoverflow.com/questions/269106/inheriting-from-a-usercontrol-in-wpf)을 시도하십시오. – Rafal
@ 마이클이 문제를 해결 했습니까? – Artiom