Good morning, I have the following design:
<Window x:Class="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:WpfApplication2"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525">
<Grid Margin="0,0,0,0" Background="CadetBlue">
<Border BorderBrush="DimGray " BorderThickness="2,2,2,2" Background="AliceBlue" Padding="5" CornerRadius="28" Margin="52,0,155,219" Height="52" VerticalAlignment="Bottom">
<DockPanel HorizontalAlignment="Left" Height="46" LastChildFill="True" Margin="-2,-1,0,-7" VerticalAlignment="Top" Width="275">
<Image x:Name="image" Height="46" VerticalAlignment="Top" Width="41" Source="pack://siteoforigin:,,,/Resources/user (1).png" />
<TextBox BorderBrush="Transparent" x:Name="textBox" TextWrapping="Wrap" Text="TextBox" DockPanel.Dock="Right" Width="234" Height="40" VerticalAlignment="Top"/>
</DockPanel>
</Border>
</Grid>
But I have a problem when executing, because it ignores the image and only shows this:
I add that when I added the image I did it as a resource. What is the problem? How can I solve it?