Showing posts with label How To Add New Action Container in XAF. Show all posts
Showing posts with label How To Add New Action Container in XAF. Show all posts

Saturday, February 20, 2010

How To Add New Action Container in XAF

public partial class WindowController1 : WindowController
{
public WindowController1()
{
InitializeComponent();
RegisterActions(components);
}
public override void UpdateModel(Dictionary dictionary)
{
base.UpdateModel(dictionary);
base.UpdateModel(dictionary);
DictionaryNode categoryNode = null;
DictionaryNode categoryNode1 = null;
DictionaryNode pageNode = null;
DictionaryNode pageGroupNode = null;
DictionaryNode itemNode = null;
categoryNode = dictionary.RootNode.FindChildNodeByPath(@"RibbonTemplates\Template[@ID='ApplicationWindowContext']\PageCategory[@ID='Default']") as DictionaryNode;
categoryNode1 =dictionary.RootNode.FindChildNodeByPath(@"RibbonTemplates\Template[@ID='ApplicationWindowContext']\PageCategory[@ID='Default']\Page[@ID='Default']") as DictionaryNode;

//-- Add a new Page to the Category
pageNode = categoryNode.AddChildNode("Page"); //!!!
pageNode.SetAttribute("ID", "MyPage");
pageNode.SetAttribute("Index", "0");
pageNode.SetAttribute("Caption", "My Page");

//-- Add a new Page Group to the newly created Page
pageGroupNode = categoryNode1.AddChildNode("PageGroup");
pageGroupNode.SetAttribute("ID", "Report");
pageGroupNode.SetAttribute("Index", "0");
pageGroupNode.SetAttribute("Caption", "Report");

itemNode = pageGroupNode.AddChildNode("Item");
itemNode.SetAttribute("ID", "BillByBillRep");
itemNode.SetAttribute("Index", "0");
itemNode.SetAttribute("ActionID", "BillByBillRep");

itemNode = pageGroupNode.AddChildNode("Item");
itemNode.SetAttribute("ID", "cstLedgerRep");
itemNode.SetAttribute("Index", "1");
itemNode.SetAttribute("ActionID", "cstLedgerRep");
XafTypesInfo.Instance.RefreshInfo(typeof(DictionaryNode));
}
}

Mat Table Angular

Mat Table in Angular Mat table is used to display data . its a material designed styled data-table . For using Material Table MatTableMo...