WPF programs with compelling user interface

zahlensystemkonverter.jpg

The background image was created using PowerPoint, which offers many additional functions for creating graphics, and thus the use of expensive design programs often unnecessary.

 <Window x:Class="Zalensytem_umrechner.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Zahlensystem Konverter" Height="191" Width="389"
    ResizeMode="NoResize"   >
    
    <Grid Height="142" Width="378">
        <Image Source="C:\Zahlensystem_umrechner_hintergrund.jpg" Margin="0,-40,-38,-26" />
        <TextBox HorizontalAlignment="Left" Margin="8,0,0,-1" Name="Dez_darstellung" Width="68" Height="23"   VerticalAlignment="Bottom" />
        <TextBox Height="23" Margin="115,0,0,-2" Name="Hex_darstellung" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="68" />
        <TextBox Height="23" Margin="0,0,18,-2" Name="BIN_darstellung" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="100" />
        <Label HorizontalAlignment="Left" Margin="8,0,0,19" Name="label1" Width="68" Height="25" VerticalAlignment="Bottom">dezimal</Label>
        <Label Margin="0,0,182,18" Name="label2" Height="24" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="68">Hex</Label>
        <Label Margin="0,0,39,18" Name="label3" Height="24" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="47">binär</Label>
        <Button Height="23" HorizontalAlignment="Left" Margin="8,12,0,0" Name="button1" VerticalAlignment="Top" Width="88" Click="button1_Click" Content="Umrechnen">
            <Button.Background>
                <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                    <GradientStop Color="DeepSkyBlue" Offset="0.5"/>
                    <GradientStop Color="White" />           
                </LinearGradientBrush>
            </Button.Background>
        </Button>
        <Button Height="23" Content="rücksetzen" Margin="115,12,188,0" Name="button2" VerticalAlignment="Top" Click="button2_Click">
            <Button.Background>
                <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                    <GradientStop Color="DeepSkyBlue" Offset="0.5"/>
                    <GradientStop Color="White" />
                </LinearGradientBrush>
            </Button.Background>
        </Button>
    </Grid>
</Window>


Have fun creating your own attractive surfaces!