ресурсы не отображаются в IntelliSense WPF - PullRequest
0 голосов
/ 03 мая 2020

intellisense не показывает никаких ресурсов в других моих загруженных проектах, он показывает мои ресурсы в текущих проектах, но показывает другие ресурсы в другом присоединенном проекте

    <UserControl x:Class="SelectionPlus.UI.Data.SelectableListControl"
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
                 xmlns:local="clr-namespace:SelectionPlus.UI.Data"
                 mc:Ignorable="d" 
                 x:Name="SelectableListUserControl"
                 d:DesignHeight="300" d:DesignWidth="300" SizeChanged="UserControl_SizeChanged">
        <UserControl.Resources>
            <ResourceDictionary>
                <ResourceDictionary.MergedDictionaries>
                    <ResourceDictionary Source="pack://application:,,,/Resources;Component/Resources/Colors.xaml"/>
                    <ResourceDictionary Source="pack://application:,,,/Resources;Component/Resources/Fonts.xaml"/>
                    <ResourceDictionary Source="pack://application:,,,/Resources;Component/Resources/Text.xaml"/>
                    <ResourceDictionary Source="pack://application:,,,/Resources;Component/Resources/ToolBar.xaml"/>
                </ResourceDictionary.MergedDictionaries>
                <Style x:Key="MainUserControl" TargetType="{x:Type ContentControl}">
                    <Setter Property="SnapsToDevicePixels" Value="True" />
                    <Setter Property="OverridesDefaultStyle" Value="True" />
                    <Setter Property="KeyboardNavigation.TabNavigation" Value="None" />
                    <Setter Property="FocusVisualStyle" Value="{x:Null}" />
                    <Setter Property="Margin" Value="2"/>
                    <Setter Property="Padding" Value="0 3 0 0"/>
                    <Setter Property="BorderThickness" Value="{StaticResource control.Border.Thickness}"/>
                    <Setter Property="BorderBrush">
                        <Setter.Value>
                            <SolidColorBrush Color="{StaticResource Normal.BR.Color}"/>
                        </Setter.Value>
                    </Setter>
...............
</Style>

        </ResourceDictionary>
    </UserControl.Resources>
    <Grid>
        <ContentControl Name="contentControl" Style="{StaticResource MainUserControl}"/>
    </Grid>
</UserControl>

Когда я набираю StaticResource, его свойство showmy only ResourceKey и ничего не отображается моего ресурса в ресурсном проекте, но когда я копирую и вставляю ключ ресурса, он показывает во время выполнения или решает, как вернуть их обратно в intellisense, большое спасибо заранее

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...