本文整理汇总了C#中Panel.Render方法的典型用法代码示例。如果您正苦于以下问题:C# Panel.Render方法的具体用法?C# Panel.Render怎么用?C# Panel.Render使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Panel
的用法示例。
在下文中一共展示了Panel.Render方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ShowBottom
public ActionResult ShowBottom(string sender)
{
Panel p = new Panel
{
ID = "Panel2",
Title = "Panel in Layer",
Html = "Ext.Net Panel",
BodyPadding = 5,
Width = 300,
Height = 100,
Floating = true,
Shadow = false,
Tools = {
new Tool {
Type = ToolType.Close,
Handler = "App.direct.Element_Basic.Close2();"
}
}
};
p.Render(X.Body().Descriptor, RenderMode.RenderTo);
Layer layer = new Layer(new LayerConfig
{
ID = "Layer2",
ExistingElement = p.Element
});
layer.SetVisible(false, false).AlignTo(this.GetCmp<Panel>("Panel1").Element, "tl-bl", new int[] { 0, 5 }).SlideIn("t");
this.GetCmp<Button>(sender).Disabled = true;
return this.Direct();
}
示例2: OpenTab
public void OpenTab(string id, string title, string link)
{
var p = new Panel
{
ID = id,
Cls = "preview single-preview",
Title = title,
TabTip = title,
Closable = true,
AutoScroll = true,
Border = true,
Listeners =
{
Render = { Fn = "FeedViewer.LinkInterceptor" }
},
TopBar =
{
new Toolbar
{
ID = id + "_topb",
Items =
{
new Button
{
ID = id+"_gobutton",
IconCls = "new-win",
Text = "Go to Post",
Handler = new JFunction("window.open(this.link);").ToScript(),
CustomConfig =
{
new ConfigItem("link", link, ParameterMode.Value)
}
}
}
}
}
};
p.Render(this);
this.SetActiveTab(id);
}