gpt4 book ai didi

c# - 如何使用 MonoTouch.Dialog 的 ActivityElement?

转载 作者:行者123 更新时间:2023-11-30 18:38:05 26 4
gpt4 key购买 nike

我可能在这里遗漏了一些东西,但是这段代码:

this.oSectionDRs = new Section()
{
new ActivityElement()
{
Caption = Locale.GetLocale("Settings_Loading"),
Animating = true
}
};

// To begin with just show a loading indicator.
this.Root = new RootElement (Locale.GetLocale("Settings_Select"))
{
this.oSectionDRs
};

不显示任何动画。它仅显示标签。我怎样才能得到动画明星?

最佳答案

使用这段代码:

var root = new RootElement("foo");
root.Add (new Section("foo", "bar") {
new ActivityElement()
{
Caption = "foo",
Animating = true
}
});

var dvc = new DialogViewController(root, false);


window.RootViewController = dvc;

我同时获得了标题和事件滚动条。不确定它对你有帮助吗!我只是在使用内置的 MT.D。

关于c# - 如何使用 MonoTouch.Dialog 的 ActivityElement?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11891168/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com