Jan 17, 2012, 7:42 PM
[CLOSED] setting Ext.Net.Icon from config file in codebehind
Hello and thanks in advance for your help - hopefully this is fairly simple...
In a codebehind, I am setting Icons for some menu items, but the icons that are used are stored in a config file as strings...how can i deserialize these strings so I can set the Icon property correctly - for example I want this:
In a codebehind, I am setting Icons for some menu items, but the icons that are used are stored in a config file as strings...how can i deserialize these strings so I can set the Icon property correctly - for example I want this:
mc.Menu.Items.Add(new Ext.Net.MenuCommand()
{
Icon = Ext.Net.Icon.EmailGo,
CommandName = "Email",
Text = "Send Email"
});
to work like this:for (int i = 0; i < configItems.length; i++)
{
mc.Menu.Items.Add(new Ext.Net.MenuCommand()
{
Icon = configItems.IconString,
CommandName = configItems.CommandName,
Text = configItems.Text
});
}
Where configItems.IconString = "Ext.Net.EmailGo" (a string stored in a config file/database/etc...)
Last edited by Daniil; Jan 18, 2012 at 5:39 AM.
Reason: [CLOSED]