xaml = new StringBuilder();
xaml.Append(string.Format("<{0} ", item.ControlType));
xaml.Append(nameSpace);
xaml.Append(" Grid.Row=\"" + item.X.ToString() + "\" Grid.Column=\"1\" Grid.ColumnSpan=\"3\" ");
xaml.Append(string.Format(" Height=\"50\" TextWrapping=\"Wrap\" HorizontalScrollBarVisibility=\"Disabled\" AcceptsReturn =\"true\" x:Name=\"{0}\" {1} {2} />", item.RecordFiled, item.RecordFiled == "CONTENT" ? "IsReadOnly=\"True\"" : "",bindText));
uElement = (UIElement)XamlReader.Load(xaml.ToString());
感激不盡!
- 1 回答
- 0 關(guān)注
- 390 瀏覽
添加回答
舉報
0/150
提交
取消