Witajcie, tworzę w Visualu Core 3.1 WPF i napotkałem pewien problem
<Window x:Class="ProjectGamesPocket.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:ProjectGamesPocket"
mc:Ignorable="d"
Title="MainWindow"
Height="800"
Width="1000"
xmlns:resx="clr-namespace:ProjectGamesPocket.Properties"
ResizeMode="NoResize"
WindowStyle="None"
WindowStartupLocation="CenterScreen">
<Grid>
<!-- LEFT MENU PART -->
<Grid Width="180"
HorizontalAlignment="Left">
<StackPanel Orientation="Vertical"
Margin="0,0,0,0"
Background="AliceBlue">
<!-- LOGIN BUTTON -->
<Button x:Name="btn_login"
BorderBrush="Transparent"
Background="Transparent"
Margin="16"
Click="btn_login_Click">
<StackPanel>
<Image Source="Assets/Icons/GP_Menu.png"
Stretch="None"/>
<TextBlock x:Name="txtb_login"
Text="{x:Static resx:Resources.login}"
HorizontalAlignment="Center"
FontSize="20"/>
</StackPanel>
</Button>
To część kodu XAMLA, błąd się pojawia w linijce
Text="{x:Static resx:Resources.login}"
Pojawia się treść
Member 'ProjectGamesPocket.Properties.Resources, ProjectGamesPocket, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.login' not found.
W pliku Resources.resx mam jeden zasób
login | Log In | brak komentarza