Center a group box in a WPF application

0 Comments

If you want to center a group box in a WPF application, you can use the HorizontalAlignment property. HorizontalAlignment="Center" Make sure the margin left and margin right are 0   Margin="0,30,0,0"   Code <Window x:Class="Rvl.DashBoard.Wpf.MainWindow"

Create icons by using Paint .NET

0 Comments

I wanted to set the icon for mine Microsoft .NET WPF application, but I only had a *.png file. With the IconCur.dll plug-in for Paint .NET I converted the *.png to *.ico file.   Steps

Replace parts of a string in JavaScript

0 Comments

If you want to find and replace parts of a string in JavaScript, you can use the replace function:   Code var str = "This is Microsoft" str = str.replace("Microsoft", "ADA ICT"); document.write(str);   Output

Generating a HTML link <A>, with href attribute

0 Comments

There are 2 ways to generate a HTML <A> link with XSLT:   Using the <xsl:element> <xsl:element name="a"> <xsl:attribute name="href"> <xsl:value-of select="url"/> </xsl:attribute> <xsl:value-of select="url"/> </xsl:element> Using only text <a href="{url}"><xsl:value-of select="url"/></a>   HTML link,