Adam Beck
Adam Beck

Reputation: 1271

Trigger Properties in XAML

I am beginning to learn XAML and I am following along with the MCTS Self-Paced Training book. I've come to the section about triggers (more specifically Property Triggers) and I stumbled upon something that is rather annoying.

Here is my code:

<Style TargetType="Button">
            <Style.Triggers>
                <Trigger Property=""
            </Style.Triggers>
        </Style>

Now, when I want to get the property that Trigger points to I want Intellisense to list all the available properties and it doesn't. Is that something I'm doing, a problem with VS, or is it just not supported in that scenario. Besides this, it works when I set the Setter for the Trigger. For example:

<Setter Property="INTELLISENSE WORKS" Value="Something" />

I'd really like for the properties of the Button to show up like IsMouseOver.

Upvotes: 3

Views: 891

Answers (1)

J. Lennon
J. Lennon

Reputation: 3361

Check your version of visual studio and upgrade to Visual Studio 2010 Service Pack 1 that everything should work as expected (Y). Visual Studio 2010 (without the service pack) does not have intellisense for triggers.

Upvotes: 1

Related Questions