我有一个子 Window ,我从后面的代码中显示它,如下所示:
ChildPhotoViewer PhotoViewer = new ChildPhotoViewer();
PhotoViewer.DataContext = selectedPhoto;
PhotoViewer.Title = selectedPhoto.strTitle.ToString();
PhotoViewer.Show();
但是在显示子窗口时,我得到了关闭按钮和窗口周围的边框厚度。
我可以隐藏关闭按钮,但有没有办法隐藏子窗口的厚度(边框)。
编辑:
![替代文字][1]
在 Image 中,Colpasing Close 按钮并制作后有边框环绕图像
PhotoViewer.Title = null;
PhotoViewer.HasCloseButton = false;
我想摆脱那个矩形边框。