public ChooseElementDialog(BaseTabView _view, string _titlePostfix = "елемент", DependencyObject parent = null) : base(DialogModes.Add, parent) { view = _view; titlePostfix = _titlePostfix; InitializeComponent(); }
public void SetView(BaseTabView view) { if (listview != null) { return; } listview = view; listview.Width = double.NaN; listview.Height = double.NaN; listview.HorizontalAlignment = HorizontalAlignment.Stretch; listview.VerticalAlignment = VerticalAlignment.Stretch; /* this */ ((Grid)Content).Children.Add(listview); }