Bom está é uma calculadora criada em C# no IDE Visual Studio 2010, bom por enquanto estarei postando somente o código do design da calculadora, espero que gostem, também tirei alguns print para vocês terem uma ideia de como ficou a calculadora, logo mais estarei fazendo o post dos códigos para ela poder efetuar contas, bom então vamos ao primeiro print.
Código do Design
<Window x:Class="CalculadoraDarck.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="482" Width="329" Name="Calculadora" Loaded="Calculadora_Loaded">
<Grid Height="459" Width="397">
<Grid.Background>
<ImageBrush ImageSource="/CalculadoraDarck;component/Images/darck.jpg" />
</Grid.Background>
<Rectangle Height="447" HorizontalAlignment="Left" Name="fundo" Stroke="#FF994141" VerticalAlignment="Top" Width="379" />
<Rectangle Height="32" HorizontalAlignment="Left" Name="rectangle1" Stroke="Black" VerticalAlignment="Top" Width="399" Visibility="Visible" OpacityMask="#FFE8D9D9" Fill="#99656565" Margin="-6,-1,0,0" />
<Label Content="Exibir" Height="28" HorizontalAlignment="Left" Name="label1" VerticalAlignment="Top" Width="52" Margin="2,1,0,0" Foreground="White" />
<Label Content="Editar" Foreground="White" Height="28" HorizontalAlignment="Left" Margin="59,1,0,0" Name="label2" VerticalAlignment="Top" Width="52" />
<Label Content="Ajuda" Foreground="White" Height="28" HorizontalAlignment="Left" Margin="111,1,0,0" Name="label3" VerticalAlignment="Top" Width="52" />
<TextBox Height="64" HorizontalAlignment="Left" Margin="12,52,0,0" Name="textBox1" VerticalAlignment="Top" Width="279" Background="#B7C1D3F6" BorderBrush="White" />
<Button Content="1" Height="32" HorizontalAlignment="Left" Margin="12,367,0,0" Name="um" VerticalAlignment="Top" Width="51" OpacityMask="#A8000000" Foreground="Red" />
<Button Content="2" Height="32" HorizontalAlignment="Left" Margin="69,367,0,0" Name="dois" VerticalAlignment="Top" Width="51" OpacityMask="#A8000000" Foreground="Red" />
<Button Content="3" Height="32" HorizontalAlignment="Left" Margin="126,367,0,0" Name="tres" VerticalAlignment="Top" Width="51" OpacityMask="#A8000000" Foreground="#FFF80000" />
<Button Content="," Height="32" HorizontalAlignment="Left" Margin="126,405,0,0" Name="virgula" VerticalAlignment="Top" Width="51" OpacityMask="#F0000000" Foreground="Red" BorderBrush="#DC000000" Background="#AAFFFFFF" />
<Button Content="-" Height="32" HorizontalAlignment="Left" Margin="183,367,0,0" Name="menos" VerticalAlignment="Top" Width="51" OpacityMask="#DC000000" Foreground="#FFFC0000" />
<Button Content="0" Foreground="Red" Height="32" HorizontalAlignment="Left" Margin="12,405,0,0" Name="zero" OpacityMask="#A8000000" VerticalAlignment="Top" Width="108" Background="#C0FFFFFF" />
<Button Content="+" Foreground="Red" Height="32" HorizontalAlignment="Left" Margin="183,405,0,0" Name="mais" OpacityMask="#A8000000" VerticalAlignment="Top" Width="51" />
<Button Content="=" Foreground="#FFFF1414" Height="70" HorizontalAlignment="Left" Margin="240,367,0,0" Name="igual" OpacityMask="#E6000000" VerticalAlignment="Top" Width="51" />
<Button Content="4" Foreground="#FFFF0303" Height="32" HorizontalAlignment="Left" Margin="12,329,0,0" Name="quatro" OpacityMask="#A8000000" VerticalAlignment="Top" Width="51" />
<Button Content="5" Foreground="Red" Height="32" HorizontalAlignment="Left" Margin="69,329,0,0" Name="cinco" OpacityMask="#A8000000" VerticalAlignment="Top" Width="51" />
<Button Content="6" Foreground="Red" Height="32" HorizontalAlignment="Left" Margin="126,329,0,0" Name="seis" OpacityMask="#A8000000" VerticalAlignment="Top" Width="51" />
<Button Content="*" Foreground="Red" Height="32" HorizontalAlignment="Left" Margin="183,329,0,0" Name="vezes" OpacityMask="#DC000000" VerticalAlignment="Top" Width="51" />
<Button Content="1/x" Foreground="Red" Height="32" HorizontalAlignment="Left" Margin="240,329,0,0" Name="umbarax" OpacityMask="#A8000000" VerticalAlignment="Top" Width="51" />
<Button Content="7" Foreground="Red" Height="32" HorizontalAlignment="Left" Margin="12,291,0,0" Name="sete" OpacityMask="#A8000000" VerticalAlignment="Top" Width="51" />
<Button Content="8" Foreground="Red" Height="32" HorizontalAlignment="Left" Margin="69,291,0,0" Name="oito" OpacityMask="#A8000000" VerticalAlignment="Top" Width="51" />
<Button Content="9" Foreground="#FFFC0000" Height="32" HorizontalAlignment="Left" Margin="126,291,0,0" Name="nove" OpacityMask="#A8000000" VerticalAlignment="Top" Width="51" />
<Button Content="/" Foreground="Red" Height="32" HorizontalAlignment="Left" Margin="183,291,0,0" Name="dividir" OpacityMask="#A8000000" VerticalAlignment="Top" Width="51" />
<Button Content="%" Foreground="Red" Height="32" HorizontalAlignment="Left" Margin="240,291,0,0" Name="porcentagem" OpacityMask="#A8000000" VerticalAlignment="Top" Width="51" />
<Button Foreground="Red" Height="32" HorizontalAlignment="Left" Margin="12,253,0,0" Name="seta" OpacityMask="#DC000000" VerticalAlignment="Top" Width="51" Content="<-" />
<Button Content="CE" Foreground="Red" Height="32" HorizontalAlignment="Left" Margin="69,253,0,0" Name="cce" OpacityMask="#DC000000" VerticalAlignment="Top" Width="51" />
<Button Content="C" Foreground="Red" HorizontalAlignment="Left" Margin="126,253,0,174" Name="ce" OpacityMask="#DC000000" Width="51" />
<Button Content="+/-" Foreground="Red" Height="32" HorizontalAlignment="Left" Margin="183,253,0,0" Name="maismenos" OpacityMask="#DC000000" VerticalAlignment="Top" Width="51" />
<Button Content="V" Foreground="Red" Height="32" HorizontalAlignment="Left" Margin="240,253,0,0" Name="raiz" OpacityMask="#DC000000" VerticalAlignment="Top" Width="51" />
<Button Content="MC" Foreground="#FFFF0303" Height="32" HorizontalAlignment="Left" Margin="12,122,0,0" Name="mc" OpacityMask="#C0000000" VerticalAlignment="Top" Width="51" />
<Button Content="MR" Foreground="Red" Height="32" HorizontalAlignment="Left" Margin="69,122,0,0" Name="mr" OpacityMask="#C0000000" VerticalAlignment="Top" Width="51" />
<Button Content="MS" Foreground="Red" Height="32" HorizontalAlignment="Left" Margin="126,122,0,0" Name="ms" OpacityMask="#C0000000" VerticalAlignment="Top" Width="51" />
<Button Content="M+" Foreground="Red" Height="32" HorizontalAlignment="Left" Margin="183,122,0,0" Name="mmais" OpacityMask="#C0000000" VerticalAlignment="Top" Width="51" />
<Button Content="M-" Foreground="Red" Height="32" HorizontalAlignment="Left" Margin="240,122,0,0" Name="mmenos" OpacityMask="#C0000000" VerticalAlignment="Top" Width="51" />
</Grid>
</Window>
Onde vou por este código?
Onde vou por o código para fazer ela funcionar?
Como irá ficar a calculadora no final?
Bom então é isso ai, até o próximo post onde estarei postando os comandos para ela efetuar os calculo, eu sei que estou devendo o post da outra calculadora, mas resolvi fazer esta mais detalhada e mais agradável aos olhos, só tenham um puco de paciência, até o próximo post.
Nenhum comentário:
Postar um comentário