C#WPF保持窗口右下方

时间:2017-08-01 19:16:25

标签: c# wpf

我有一个包含add_menu_page( 'My Top Level Menu Example', 'VENDOR RATE UPDATE LOG', 'administrator', 'tested.php', array(__CLASS__,'myplguin_admin_page'), 'dashicons-tickets', 6 ); 的WPF表单,其中只有一个SizeToContent="Height"。在运行时期间,几个项目将添加到Listbox绑定的ObservableCollectionListbox将展开。 这很好用,但问题是我想始终将表格保留在右下角。

我添加了CollectionChanged事件:

Listbox

Snd通过以下方式实现:

 ((INotifyCollectionChanged)History.ItemsSource).CollectionChanged +=new NotifyCollectionChangedEventHandler(HistoryCollectionChanged);

但是,虽然事件每次都被触发,但定位总是关闭。

0 个答案:

没有答案