/// <summary> /// Creates the link control. /// </summary> /// <param name="property"> /// The property. /// </param> /// <returns> /// The control. /// </returns> protected FrameworkElement CreateLinkControl(PropertyItem property) { var c = new LinkBlock { VerticalAlignment = VerticalAlignment.Center }; c.SetBinding(TextBlock.TextProperty, new Binding(property.Descriptor.Name)); c.SetBinding(LinkBlock.NavigateUriProperty, property.CreateBinding()); return(c); }
/// <summary> /// Creates the link control. /// </summary> /// <param name="property">The property.</param> /// <returns> /// The control. /// </returns> protected virtual FrameworkElement CreateLinkControl(PropertyItem property) { var c = new LinkBlock { VerticalAlignment = VerticalAlignment.Center }; c.SetBinding(TextBlock.TextProperty, new Binding(property.Descriptor.Name)); c.SetBinding(LinkBlock.NavigateUriProperty, property.CreateBinding()); return c; }