DFLabelControl.cs 630 B

1234567891011121314151617181920212223
  1. using InABox.Core;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. namespace InABox.DynamicGrid
  10. {
  11. public class DFLabelControl : DynamicFormControl<DFLayoutLabel>
  12. {
  13. protected override FrameworkElement Create()
  14. {
  15. var label = new Label();
  16. label.Content = Control.Caption;
  17. label.HorizontalContentAlignment = HorizontalAlignment.Left;
  18. label.VerticalContentAlignment = VerticalAlignment.Center;
  19. return label;
  20. }
  21. }
  22. }