我使用如下方法获取DockTabControl区域大小,但返回结果老是200,200
private void C1LeftDock_SizeChanged(object sender, SizeChangedEventArgs e)
{
Double t_LeftDockWidth;
Double t_LeftDockHeight;
t_LeftDockWidth = (Double)C1LeftDock.GetValue(C1DockTabControl.DockWidthProperty);
t_LeftDockHeight = (Double)C1LeftDock.GetValue(C1DockTabControl.DockHeightProperty);
MessageBox.Show(t_LeftDockWidth.ToString());
MessageBox.Show(t_LeftDockHeight.ToString());
}
请问问题出在哪里?有没有其他解决办法? |