Silverlight Takvim Uygulaması - Bilişim Konuları

Silverlight Takvim Uygulaması

Silverlight takvim uygulaması. Radyo butonundan günler seçilirse comboboxa gün isimleri geliyor. Radyo butonundan aylar seçilirse comboboxa aylar, mevsimler seçilirse comboboxa mevsimler geliyor.

Uygulamanın MainPage.xaml dosyasının kodu:

<UserControl x:Class="takvim_uygulamasi.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">

    <Grid x:Name="LayoutRoot" Background="White">
        <Canvas Height="235" HorizontalAlignment="Left" Margin="52,27,0,0" Name="canvas1" VerticalAlignment="Top" Width="313" Background="#E6DED0D0">
            <sdk:Label Canvas.Left="97" Canvas.Top="35" Height="28" Name="label1" Width="120" Content="TAKVİM UYGULAMASI" />
            <RadioButton Canvas.Left="58" Canvas.Top="82" Content="Günler" Height="16" Name="radioButton1" Checked="radioButton1_Checked" />
            <RadioButton Canvas.Left="129" Canvas.Top="82" Content="Aylar" Height="16" Name="radioButton2" Checked="radioButton2_Checked" />
            <RadioButton Canvas.Left="184" Canvas.Top="82" Content="Mevsimler" Height="16" Name="radioButton3" Checked="radioButton3_Checked" />
            <ComboBox Canvas.Left="90" Canvas.Top="129" Height="23" Name="comboBox1" Width="120" SelectionChanged="comboBox1_SelectionChanged" MouseEnter="comboBox1_MouseEnter" />
            <TextBlock Canvas.Left="110" Canvas.Top="180" Height="23" Name="textBlock1" Text="TextBlock" />
            <Button Canvas.Left="27" Canvas.Top="189" Content="Button" Height="23" Name="button1" Width="75" Click="button1_Click" />
        </Canvas>
    </Grid>
</UserControl>

Uygulamanın MainPage.xaml.cs dosyasının kodu:

private void radioButton1_Checked(object sender, RoutedEventArgs e)
{
    comboBox1.Items.Clear();
    comboBox1.Items.Add("Pazartesi");
    comboBox1.Items.Add("Salı");
    comboBox1.Items.Add("Çarşamba");
    comboBox1.Items.Add("Perşembe");
    comboBox1.Items.Add("Cuma");
    comboBox1.Items.Add("Cumartesi");
    comboBox1.Items.Add("Pazar");
}

private void radioButton2_Checked(object sender, RoutedEventArgs e)
{
    comboBox1.Items.Clear();
    comboBox1.Items.Add("Ocak");
    comboBox1.Items.Add("Şubat");
    comboBox1.Items.Add("Mart");
    comboBox1.Items.Add("Nisan");
    comboBox1.Items.Add("Mayıs");
    comboBox1.Items.Add("Haziran");
    comboBox1.Items.Add("Temmuz");
    comboBox1.Items.Add("Ağustos");
    comboBox1.Items.Add("Eylül");
    comboBox1.Items.Add("Ekim");
    comboBox1.Items.Add("Kasım");
    comboBox1.Items.Add("Aralık");

}

private void radioButton3_Checked(object sender, RoutedEventArgs e)
{
    comboBox1.Items.Clear();
    comboBox1.Items.Add("İlkbahar");
    comboBox1.Items.Add("Yaz");
    comboBox1.Items.Add("Sonbahar");
    comboBox1.Items.Add("Kış");
} 

Uugulamanın ekran görüntüleri
Günler Tıklandığında ekrana Haftanın günleri geliyor


AylarTıklandığında ekrana Yılın ayları geliyor

Mevsimler Tıklandığında ekrana Mevsim isimleri geliyor

Bu Yazıya Tepkin Nedir?
+1
0
+1
0
+1
0
+1
0
+1
0
+1
0
+1
0

Yorum Yap