public void OnLoad(DocumentManipulation.ImageAttribute attribute) { Binding binding = new Binding(); binding.Path = new PropertyPath("Value"); binding.Source = attribute; FileName.SetBinding(TextBox.TextProperty, binding); }
public ImageControl(DocumentManipulation.ImageAttribute attribute) { InitializeComponent(); _attribute = attribute; OnLoad(attribute); Label.Content = attribute.Label; this.SetValue(Grid.RowProperty, attribute.Row); this.SetValue(Grid.ColumnProperty, attribute.Column); this.SetValue(Grid.ColumnSpanProperty, attribute.ColumnSpan); }