Tuesday, August 11, 2009

RegionControl as a Toolbar sample updated


We updated the Toolbar Sample to support the VGA resolution.
You will need different images for VGA if you need to preserv the nice looking of your application.
And here is the added code:

public Form1()
{
InitializeComponent();
InitItems();

LoadVgaImages();
}

private void LoadVgaImages()
{
SizeF currentScreen = this.CurrentAutoScaleDimensions;
if (currentScreen.Height == 192)
{
// VGA device
regionControl1.BmpNormal = Properties.Resources.TabBar2_VGA_Normal;
regionControl1.BmpSelected = Properties.Resources.TabBar2_VGA_Selected;
regionControl1.FilePathBmpMask = @"Images\TabBar2_VGA Mask.bmp";
}
}

Source Code is available here: http://beemobile4.net/?sitecateg=samples&productID=6

No comments:

Post a Comment