none
Разработка под UWP RRS feed

  • Общие обсуждения

  • Какую бы форму не создал, везде затемняет все элементы.

    Вот код:

     <Grid FocusVisualSecondaryBrush="{x:Null}" FocusVisualPrimaryBrush="{x:Null}">
            <Grid.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="Black" Offset="0.119"/>
                    <GradientStop Color="Lime" Offset="1"/>
                </LinearGradientBrush>
            </Grid.Background>
            <Grid.RowDefinitions>
                <RowDefinition Height="226*"/>
                <RowDefinition Height="226*"/>
                <RowDefinition Height="226*"/>
                <RowDefinition Height="40*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="320*"/>
                <ColumnDefinition Width="320*"/>
                <ColumnDefinition Width="320*"/>
                <ColumnDefinition Width="320*"/>
            </Grid.ColumnDefinitions>
            <StackPanel HorizontalAlignment="Center" Height="226" Margin="0,0,0,0" VerticalAlignment="Center" Width="320" >
                <TextBlock Text="Математика 1 класс" FontSize="30" HorizontalAlignment="Center" />
                <TextBlock Text="Авторы: М.И.Моро, С.И.Волкова," FontSize="21" HorizontalAlignment="Center"/>
                <TextBlock Text="С.В.Степанова" FontSize="21" HorizontalAlignment="Center" />
                <TextBlock Text="Издательство: Просвещение" HorizontalAlignment="Center" FontSize="21" />
                <TextBlock Text="Серия: Школа России" HorizontalAlignment="Center" FontSize="21" Height="45" />
                <Button Content="Открыть" HorizontalAlignment="Center" FontSize="25" Margin="0,0,0,0" VerticalAlignment="Center" Width="300" Height="49" Style="{ThemeResource ButtonRevealStyle}" />
            </StackPanel>
            <StackPanel HorizontalAlignment="Center" Height="226" Margin="0,0,0,0" VerticalAlignment="Center" Width="320" Grid.Column="1">
                <TextBlock Text="Рабочая тетрадь" FontSize="30" HorizontalAlignment="Center" />
                <TextBlock Text="Авторы: М.И.Моро, С.И.Волкова" FontSize="21" HorizontalAlignment="Center"/>
                <TextBlock Text="Издательство: Просвещение" HorizontalAlignment="Center" FontSize="21" />
                <TextBlock Text="Серия: Школа России" HorizontalAlignment="Center" FontSize="21" Height="73" />
                <Button Content="Открыть" HorizontalAlignment="Center" FontSize="25" Margin="0,0,0,0" VerticalAlignment="Center" Width="300" Height="49" Style="{ThemeResource ButtonRevealStyle}" />
            </StackPanel>
            <StackPanel HorizontalAlignment="Center" Height="226" Margin="0,0,0,0" VerticalAlignment="Center" Width="320" Grid.Column="2">
                <TextBlock Text="Тетрадь учебных" FontSize="30" HorizontalAlignment="Center" />
                <TextBlock Text="достижений" FontSize="30" HorizontalAlignment="Center"/>
                <TextBlock Text="Автор: Волкова С.И" FontSize="21" HorizontalAlignment="Center" />
                <TextBlock Text="Издательство: Просвещение" HorizontalAlignment="Center" FontSize="21" Height="60"/>
                <Button Content="Открыть" HorizontalAlignment="Center" FontSize="25" Margin="0,0,0,0" VerticalAlignment="Center" Width="300" Height="49" Style="{ThemeResource ButtonRevealStyle}" />
            </StackPanel>
            <StackPanel HorizontalAlignment="Center" Height="226" Margin="0,0,0,0" VerticalAlignment="Center" Width="320" Grid.Column="3"/>
            <StackPanel HorizontalAlignment="Center" Height="226" Margin="0,0,0,0" VerticalAlignment="Center" Width="320" Grid.Row="1"/>
            <StackPanel HorizontalAlignment="Center" Height="226" Margin="0,0,0,0" VerticalAlignment="Center" Width="320" Grid.Row="1" Grid.Column="1"/>
            <StackPanel HorizontalAlignment="Center" Height="226" Margin="0,0,0,0" VerticalAlignment="Center" Width="320" Grid.Row="1" Grid.Column="2"/>
            <StackPanel HorizontalAlignment="Center" Height="226" Margin="0,0,0,0" VerticalAlignment="Center" Width="320" Grid.Row="1" Grid.Column="3"/>
            <StackPanel HorizontalAlignment="Center" Height="226" Margin="0,0,0,0" VerticalAlignment="Center" Width="320" Grid.Row="2"/>
            <StackPanel HorizontalAlignment="Center" Height="226" Margin="0,0,0,0" VerticalAlignment="Center" Width="320" Grid.Row="2" Grid.Column="1"/>
            <StackPanel HorizontalAlignment="Center" Height="226" Margin="0,0,0,0" VerticalAlignment="Center" Width="320" Grid.Row="2" Grid.Column="2"/>
            <StackPanel HorizontalAlignment="Center" Height="226" Margin="0,0,0,0" VerticalAlignment="Center" Width="320" Grid.Row="2" Grid.Column="3"/>
            <Button Content="Ещё " HorizontalAlignment="Center" FontSize="17"  Margin="0,0,0,0" Grid.Row="3" VerticalAlignment="Center" Grid.ColumnSpan="4" Width="1260" Style="{ThemeResource ButtonRevealStyle}">
                <Button.Foreground>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="Black"/>
                        <GradientStop Color="Red" Offset="1"/>
                    </LinearGradientBrush>
                </Button.Foreground>
            </Button>
    </Grid>


    23 августа 2018 г. 6:03

Все ответы

  • Есть стили, которые вы задаете конкретному объекту, а есть стили, которые распространяются на весь проект. Так что ответить по куску XAML одной страницы, вряд ли возможно. Глобальные стили обычно задаются в App.xaml. Поищите проблему там.
    23 августа 2018 г. 7:04