示例#1
0
        public void OnLoad(DocumentManipulation.ImageAttribute attribute)
        {
            Binding binding = new Binding();

            binding.Path   = new PropertyPath("Value");
            binding.Source = attribute;
            FileName.SetBinding(TextBox.TextProperty, binding);
        }
示例#2
0
 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);
 }