Jul 14, 2011, 1:24 PM
[CLOSED] Center desktop shortcuts on desktop
Some customers can make you crazy :)
I'm creating my shortcuts in codebehind like this:
Suddenly a customer want to center these shortcuts. They need to be centered also after windowresize.
Need some ideas... :)
Martin
I'm creating my shortcuts in codebehind like this:
DesktopShortcut sc = new DesktopShortcut
{
X = Conversie.ToString(xPosition),
Y = Conversie.ToString(yPosition),
ModuleID ="dmname",
Text = "shortcuttext",
IconCls = "iconclasss"
};
MyDesktop.Shortcuts.Add(sc);
Starting from the left top corner --> adding some pixels on x and y to place the different desktopshortcuts on the right place. Works like a charm.Suddenly a customer want to center these shortcuts. They need to be centered also after windowresize.
Need some ideas... :)
Martin
Last edited by Daniil; Jul 18, 2011 at 3:54 PM.
Reason: [CLOSED]