Commits

Forrest Humphrey  committed 4c763f1

Using style by targettype to fix the out-of-control labels

  • Participants
  • Parent commits e256c78
  • Branches music

Comments (0)

Files changed (1)

File Music/Music/MainWindow.xaml

         <Style x:Key="geniusGridStyle" TargetType="Grid">
             <Setter Property="Margin" Value="10"/>
         </Style>
+        <Style TargetType="Label">
+            <Setter Property="FontFamily" Value="Comic Sans MS" />
+            <Setter Property="FontWeight" Value="Bold" />
+            <Setter Property="FontSize" Value="14" />
+            <Setter Property="Foreground" Value="AliceBlue" />
+            <Setter Property="HorizontalContentAlignment" Value="Center" />
+            <Setter Property="VerticalContentAlignment" Value="Center" />
+        </Style>
     </Window.Resources>
 
     <Grid>
                 <RowDefinition />
                 <RowDefinition Height="3*"/>
             </Grid.RowDefinitions>
-            <Label FontFamily="Comic Sans MS" FontWeight="Bold" FontSize="14" Foreground="AliceBlue" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">Yanni
+            <Label>Yanni
                 <Label.Background>
                     <LinearGradientBrush>
                         <GradientStop Color="Blue" Offset="0.0" />
                 <RowDefinition />
                 <RowDefinition Height="3*"/>
             </Grid.RowDefinitions>
-            <Label FontFamily="Comic Sans MS" FontWeight="Black" FontSize="14" Foreground="AliceBlue" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">Kenny G
+            <Label>Kenny G
                 <Label.Background>
                     <LinearGradientBrush>
                         <GradientStop Color="Blue" Offset="0.0" />
                 <RowDefinition />
                 <RowDefinition Height="3*"/>
             </Grid.RowDefinitions>
-            <Label FontFamily="Comic Sans MS" FontWeight="Bold" FontSize="14" Foreground="AliceBlue" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">Michael Bolton
+            <Label>Michael Bolton
                 <Label.Background>
                     <LinearGradientBrush>
                         <GradientStop Color="Blue" Offset="0.0" />