Using SlimDX for Controller Input Error

Garrett Tiller 6 Reputation points
2024-11-01T22:44:35.3033333+00:00

I'm using SlimDX to set up controller input and encountering an error with the following code snippet:

if (state.Buttons(a))
{
    // Navigate to the page, using the NavigationService
    this.NavigationService.Navigate(GameplayScreen);
}

The error message is:

Error CS1061 'MainPage' does not contain a definition for 'NavigationService' and no accessible extension method 'NavigationService' accepting a first argument of type 'MainPage' could be found (are you missing a using directive or an assembly reference?)

What could be causing this issue?

Developer technologies Visual Studio Other
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.