Horario de Clase en Visual Studio

Aquí os dejamos recogido el código que hemos utilizado en nuestro vídeo:

Os lo podéis descargar aquí :horarioclases

O lo podéis consultar aquí abajo:

<Window x:Class=»HorarioClases.MainWindow»
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″
xmlns:local=»clr-namespace:HorarioClases»
mc:Ignorable=»d»
Title=»Horario Clase» Height=»280″ Width=»480″ MinHeight=»280″ MinWidth=»480″ Background=»Aqua»>
<Window.Resources>
<Style TargetType=»StackPanel»>
<Setter Property=»VerticalAlignment» Value=»Center»/>
<Setter Property=»Margin» Value=»5″/>
</Style>

<Style TargetType=»TextBlock»>
<Setter Property=»FontFamily» Value=»Arial»/>
<Setter Property=»FontSize» Value=»15″/>
<Setter Property=»TextAlignment» Value=»Center»/>
</Style>

<Style x:Key=»estiloAula» TargetType=»TextBlock» BasedOn=»{StaticResource {x:Type TextBlock}}»>
<Setter Property=»FontSize» Value=»10″/>
<Setter Property=»Background» Value=»White»/>
</Style>
</Window.Resources>

<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>

<TextBlock Grid.Column=»1″ Grid.Row=»0″>Lun</TextBlock>
<TextBlock Grid.Column=»2″ Grid.Row=»0″>Mar</TextBlock>
<TextBlock Grid.Column=»3″ Grid.Row=»0″>Mier</TextBlock>
<TextBlock Grid.Column=»4″ Grid.Row=»0″>Jue</TextBlock>
<TextBlock Grid.Column=»5″ Grid.Row=»0″>Vier</TextBlock>

<TextBlock Grid.Column=»0″ Grid.Row=»1″>10</TextBlock>
<TextBlock Grid.Column=»0″ Grid.Row=»2″>11</TextBlock>
<TextBlock Grid.Column=»0″ Grid.Row=»3″>12</TextBlock>
<TextBlock Grid.Column=»0″ Grid.Row=»4″>13</TextBlock>
<StackPanel Grid.Column=»1″ Grid.Row=»1″ Background=»Coral»>
<TextBlock>CIENCIAS</TextBlock>
<TextBlock Style=»{StaticResource estiloAula}»>Aula 1</TextBlock>
</StackPanel>

<StackPanel Grid.Column=»2″ Grid.Row=»1″ Background=»Coral»>
<TextBlock>CIENCIAS</TextBlock>
<TextBlock Style=»{StaticResource estiloAula}»>Aula 1</TextBlock>
</StackPanel>

<StackPanel Grid.Column=»3″ Grid.Row=»1″ Background=»Coral»>
<TextBlock>CIENCIAS</TextBlock>
<TextBlock Style=»{StaticResource estiloAula}»>Aula 1</TextBlock>
</StackPanel>

<StackPanel Grid.Column=»4″ Grid.Row=»1″ Background=»Coral»>
<TextBlock>CIENCIAS</TextBlock>
<TextBlock Style=»{StaticResource estiloAula}»>Aula 1</TextBlock>
</StackPanel>

<StackPanel Grid.Column=»5″ Grid.Row=»1″ Background=»Coral»>
<TextBlock>CIENCIAS</TextBlock>
<TextBlock Style=»{StaticResource estiloAula}»>Aula 1</TextBlock>
</StackPanel>

<StackPanel Grid.Column=»1″ Grid.Row=»2″ Background=»GreenYellow»>
<TextBlock>HISTORIA</TextBlock>
<TextBlock Style=»{StaticResource estiloAula}»>Aula 3</TextBlock>
</StackPanel>

<StackPanel Grid.Column=»2″ Grid.Row=»2″ Background=»GreenYellow»>
<TextBlock>HISTORIA</TextBlock>
<TextBlock Style=»{StaticResource estiloAula}»>Aula 3</TextBlock>
</StackPanel>

<StackPanel Grid.Column=»3″ Grid.Row=»2″ Background=»GreenYellow»>
<TextBlock>HISTORIA</TextBlock>
<TextBlock Style=»{StaticResource estiloAula}»>Aula 3</TextBlock>
</StackPanel>

<StackPanel Grid.Column=»4″ Grid.Row=»2″ Background=»GreenYellow»>
<TextBlock>HISTORIA</TextBlock>
<TextBlock Style=»{StaticResource estiloAula}»>Aula 3</TextBlock>
</StackPanel>

<StackPanel Grid.Column=»5″ Grid.Row=»2″ Background=»GreenYellow»>
<TextBlock>HISTORIA</TextBlock>
<TextBlock Style=»{StaticResource estiloAula}»>Aula 3</TextBlock>
</StackPanel>

<StackPanel Grid.Column=»1″ Grid.Row=»3″ Background=»Coral»>
<TextBlock>RECREO</TextBlock>
<TextBlock Style=»{StaticResource estiloAula}»>Patio</TextBlock>
</StackPanel>

<StackPanel Grid.Column=»2″ Grid.Row=»3″ Background=»Coral»>
<TextBlock>RECREO</TextBlock>
<TextBlock Style=»{StaticResource estiloAula}»>Patio</TextBlock>
</StackPanel>

<StackPanel Grid.Column=»3″ Grid.Row=»3″ Background=»Coral»>
<TextBlock>RECREO</TextBlock>
<TextBlock Style=»{StaticResource estiloAula}»>Patio</TextBlock>
</StackPanel>

<StackPanel Grid.Column=»4″ Grid.Row=»3″ Background=»Coral»>
<TextBlock>RECREO</TextBlock>
<TextBlock Style=»{StaticResource estiloAula}»>Patio</TextBlock>
</StackPanel>

<StackPanel Grid.Column=»5″ Grid.Row=»3″ Background=»Coral»>
<TextBlock>RECREO</TextBlock>
<TextBlock Style=»{StaticResource estiloAula}»>Patio</TextBlock>
</StackPanel>

</Grid>
</Window>

 

¡Feliz comienzo de semana!

4.698 pensamientos sobre “Horario de Clase en Visual Studio


    Fatal error: Allowed memory size of 62914560 bytes exhausted (tried to allocate 4718736 bytes) in /homepages/11/d402490950/htdocs/clickandbuilds/iLegioBlog/wp-includes/class-walker-comment.php on line 180