Loading...

Using Visual Basic View

Photoshop layers to VisualBasic with clean and clear code becomes simple with Layer Kit – VisualBasic View. Translate your PSD layers to VisualBasic with advanced support for text, images and shapes.

Get Layer Kit Pro to add layer effects, imaging options and more with VisualBasic View.

Example Image Element

1
2
3
4
5
6
7
Dim button_copy As new Image();
button_copy.Source = new BitmapImage(new Uri("ms-appx:///skins/ek125_303_layer_effects.png"));
 
button_copy.SetValue(Canvas.TopProperty,446);
button_copy.SetValue(Canvas.LeftProperty,240);
button_copy.Width = 310;
button_copy.Height = 166;

Example Text Element

1
2
3
4
5
6
7
8
9
10
Dim text As new TextBlock();
 
text.FontFamily = new FontFamily("ArialMT");
text.FontSize = 68;
text.Foreground = Color.FromArgb(255,255,255,255);
text.Text = "TEXT";
text.SetValue(Canvas.TopProperty,132);
text.SetValue(Canvas.LeftProperty,501);
text.Width = 227;
text.Height = 90;

Example Shape Element

1
2
3
4
5
6
7
8
9
Dim button_bg As new Rectangle();
 
button_bg.RadiusX = 30;
button_bg.RadiusY = 30;
button_bg.Fill = Color.FromArgb(255,206,54,54);
button_bg.SetValue(Canvas.TopProperty,72);
button_bg.SetValue(Canvas.LeftProperty,449);
button_bg.Width = 310;
button_bg.Height = 159;

Pro Features

Using Layer Kit Pro, you can customize the VisualBasic View to include additional information with the PSD layer such as effects, advanced text rendering and more.

Example Layer Effects

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Dim button_bg As new Rectangle();
Dim button_bg_gb As new LinearGradientBrush();
Dim button_bg_ds As new DropShadowEffect();
 
button_bg.RadiusX = 30;
button_bg.RadiusY = 30;
button_bg_gb.StartPoint = new Point(0,0);
button_bg_gb.EndPoint = new Point(0,1);
button_bg_gb.GradientStops.Add(new GradientStop(Color.FromArgb(255,37,18,18), 0.29));
button_bg_gb.GradientStops.Add(new GradientStop(Color.FromArgb(255,92,35,35), 0.65));
button_bg_gb.GradientStops.Add(new GradientStop(Color.FromArgb(255,206,54,54), 1));
 
button_bg.Fill = button_bg_gb;
button_bg.SetValue(Canvas.TopProperty,72);
button_bg.SetValue(Canvas.LeftProperty,449);
button_bg.Width = 310;
button_bg.Height = 159;
 
button_bg_ds.Color = Color.FromArgb(255,206,54,54);
button_bg_ds.ShadowDepth = 0;
button_bg_ds.BlurRadius = 25;
 
button_bg.Effect = button_bg_ds;

Example Inline Content

1
2
3
4
5
6
7
8
9
10
11
12
Dim button_copy As new Image();
Dim button_copy_bitmap As new BitmapImage();
Dim button_copy_uri As new Uri("ms-appx:///skins/ek125_303_layer_effects.png");
 
button_copy_bitmap.UriSource = button_copy_uri;
button_copy.Source = button_copy_bitmap;
button_copy.SetValue(Canvas.TopProperty,446);
button_copy.SetValue(Canvas.LeftProperty,240);
button_copy.Width = 310;
button_copy.Height = 166;
 
SuperGrid.Children.Add(button_copy);

LOGIN NOW: Get instant access to our free Online Training - click here.

Products For Smart Professionals


smart_images_base_set

Smart Images Base Set

smart_psd

Smart PSD Batch

smart_images

Smart Images

Need a custom solution?

Try our Shop!

Using the Plugin

Layer Support

Layer Tags

How To Guides

Optimization Tips

Help Us Improve


We aim to keep our content relevant with useful information, examples, samples and links. Tell us what you think!

I found the content:

Helpful
Confusing
Outdated
Broken Links
Bad Spelling
Too Short
Too Long

This page needs:

Nothing
Better Content
Links
Examples
Videos

Free Download


Responsive Webpage

A clean responsive webpage design for 3 target screens.

Start Your 14 Day Free Trial

New users get instant access to the 14 Day Free Trial with all features enabled, and Free Online Training. We guarantee your first conversion will 100% work - we work with you to ensure this, contact us or check our FAQs for assistance.

Connect With Us

Top