Ответы пользователя по тегу Windows
  • Почему не отображается изображение при отладке XAML?

    @Wolfak Автор вопроса
    <Page
        x:Class="HeartStory.MainPage"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="using:HeartStory"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d">
        <Page.Resources>
            <ImageSource x:Key="ImageSource1">Images\logo.png</ImageSource>
        </Page.Resources>
    
        <Grid Background="#ffebdd" Grid.Column="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="300"></ColumnDefinition>
                <ColumnDefinition Width="5"></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <StackPanel Orientation="Vertical" Background="#ffebdd" Grid.Column="0">
                <Image Width="144" Height="47" Margin="0,30,0,20" Stretch="None" Source="Images/logo.png"/>
                <Button BorderThickness="2" Background="#f8b9ca" BorderBrush="#e6a0b3" Width="290" Margin="5,0,0,0" FontSize="18" Foreground="#a52a67">Истории</Button>
                <Button BorderThickness="2" Background="#f8b9ca" BorderBrush="#e6a0b3" Width="290" Margin="5,0,0,0" FontSize="18" Foreground="#a52a67">Зарегистрироваться</Button>
                <Button BorderThickness="2" Background="#f8b9ca" BorderBrush="#e6a0b3" Width="290" Margin="5,0,0,0" FontSize="18" Foreground="#a52a67">Войти</Button>
            </StackPanel>
            <StackPanel Orientation="Vertical" Background="#d9d9ff" Grid.Column="1">
                <TextBlock FontSize="22" Foreground="#78239b" Margin="30">Одно дождливое утро</TextBlock>
            </StackPanel>
            <StackPanel Orientation="Vertical" Background="#ffebdd" Grid.Column="2">
            </StackPanel>
        </Grid>
    </Page>
    Ответ написан
    Комментировать