我想在customMessageBox
中显示两个文本框并排。所以我已经编写了两个文本框的代码,如下所示。 我为它命名为soora
和ayath
。但是在customMessageBox
中,我无法同时调用两个文本框。 它显示错误。 如何在customMessageBox
中显示两个文本框并排。 我只知道错误是来自Content = soora + ayath
我的 C# 代码:
TextBox soora = new TextBox();
soora.Height = 72;
soora.Width = 150;
soora.MaxLength = 3;
TextBox ayath = new TextBox();
ayath.Height = 72;
ayath.Width = 150;
ayath.MaxLength = 3;
CustomMessageBox messageBox = new CustomMessageBox()
{
Title = "GO TO",
Content = soora + ayath,
RightButtonContent = "Go !",
};
CustomMessageBox
的实现吗?Content
是什么? - DamithNuGet
,并且正在使用其中的customMessageBox。 - Mohamed Thaufeeq