public override void OnLoad(object sender, RoutedEventArgs e) { base.OnLoad(sender, e); contentPresenter.SetBinding(ContentControl.DataContextProperty, new Binding { Path = new PropertyPath(EntityProperty), Source = this, Converter = CleanLite ? Converters.Retrieve : null }); if (EntityControl == null) { EntityControl = new DataBorder { AutoChild = true } } ; } }
void EntityDetail_Loaded(object sender, RoutedEventArgs e) { if (EntityControl == null) EntityControl = new DataBorder { AutoChild = true }; }
public override void OnLoad(object sender, RoutedEventArgs e) { base.OnLoad(sender, e); contentPresenter.SetBinding(ContentControl.DataContextProperty, new Binding { Path = new PropertyPath(EntityProperty), Source = this, Converter = CleanLite ? Converters.Retrieve : null }); if (EntityControl == null) EntityControl = new DataBorder { AutoChild = true }; }