-1
У меня есть Silverlight Templated Control с свойством Content.Добавить контроль над призмами в Silverlight Templated Control
public static readonly DependencyProperty ContentProperty = DependencyProperty.Register(
"Content", typeof(FrameworkElement), typeof(MyControl), new PropertyMetadata(null));
public FrameworkElement Content
{
get { return (FrameworkElement)GetValue(ContentProperty); }
set { SetValue(ContentProperty, value); }
}
Generic.xaml
<Border x:Name="bContent" CornerRadius="0,7,7,0" HorizontalAlignment="Left" Grid.Column="0" Grid.Row="1">
<ContentPresenter x:Name="PART_Content" Grid.Row="1" Content="{TemplateBinding Content}" />
</Border>
Теперь, когда я добавляю модуль Prism в элементе управления шаблонного я не могу видеть контент? Что не так...?
<local:MyControl>
<local:MyControl.Content>
<ContentControl x:Name="myRegion" Regions:RegionManager.RegionName="myRegion" />
</local:MyControl.Content>
</local:MyControl>
Ваша проблема решена? – Martin