Using Visual Basic View
XD, PSD, AI and INDD layers to VisualBasic with clean and clear code becomes simple. Translate your XD, PSD, AI and INDD layers to VisualBasic with advanced support for text, images and shapes.
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; |
Customize the VisualBasic View to include additional information with the XD, PSD, AI and INDD 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); |