Exemplo n.º 1
0
        public void OrganizeView()
        {
            var tableView = GrdDisco.View as TableView;

            if (tableView != null)
            {
                tableView.BestFitColumns();
            }
            GrdDisco.ExpandAllGroups();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Called when [first time show].
 /// </summary>
 protected override void OnFirstTimeRender()
 {
     DataContext = new DiscoInfoViewModel();
     base.OnFirstTimeRender();
     ((DiscoInfoViewModel)DataContext).PropertyChanged += (s, e) =>
     {
         (GrdDisco.View as TableView).BestFitColumns();
         GrdDisco.ExpandAllGroups();
     };
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MonitorCloudView"/> class.
 /// </summary>
 public MonitorCloudView()
 {
     InitializeComponent();
     Vm.PropertyChanged += (s, e) => {
         var tableView = GrdDisco.View as TableView;
         if (tableView != null)
         {
             tableView.BestFitColumns();
         }
         GrdDisco.ExpandAllGroups();
     };
     Loaded += (s, e) => Vm.Initialize();
 }