Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntelliSense does work with x:Static markup extension #2497

Open
pstricks-fans opened this issue Apr 15, 2020 · 0 comments
Open

IntelliSense does work with x:Static markup extension #2497

pstricks-fans opened this issue Apr 15, 2020 · 0 comments

Comments

@pstricks-fans
Copy link

@pstricks-fans pstricks-fans commented Apr 15, 2020

Versions

  • Visual Studio Community version: 16.5.4

What happened

IntelliSense does not show Constants when typing local:. However, after typing local:Constants followed by a period, the IntelliSense shows Message field.

Steps to Reproduce

  1. Install Visual Studio Community Version 16.5.4 and open it.
  2. Create a new Xamarin.Forms project named IntellisenseNotWorking with a blank template. I set the platform to UWP only.
  3. Add a new class to the .Net Standard shared project, name it Constants as follows.
namespace IntellisenseNotWorking
{
    class Constants
    {
        public static readonly string Message = "Xamarin.Forms is fun!";
    }
}
  1. Modify the MainPage.xaml as follows.
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:d="http://xamarin.com/schemas/2014/forms/design"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:local="clr-namespace:IntellisenseNotWorking"
             mc:Ignorable="d"
             x:Class="IntellisenseNotWorking.MainPage">

    <StackLayout>
        <Label Text="{x:Static }" />
    </StackLayout>

</ContentPage>
  1. Type local: right after x:Static. You will see only App shown, no Constants can be selected. However, after typing local:Constants followed by a period, the IntelliSense starts working again and provides you with Message field.

Expected behavior

After typing local:, IntelliSense should show Constants class so I can select it and proceed to type a period followed by typing Message field.

Screenshots

IntelliSense

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
@pstricks-fans and others
You can’t perform that action at this time.