stride3d / stride3d/stride

Can't RUN IN WPF

Open
#771 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-Graphics bug priority-Medium question work-estimate-M
Dominant language
C#
Stars
7.8k
Forks
1.2k
Avg merge
2d 17h
Merged PRs (30d)
49

Description

I Run Game IN WPF PlatForm

    public MainWindow()
    {
        InitializeComponent();
        using (var game = new Game())
        {
            game.Run(new GameContextControl(ShowConten));
        }

    }
    public class GameContextControl : GameContextDesktop<D3DImage>
    {
        internal TextBox EditTextBox = new TextBox { VerticalAlignment = VerticalAlignment.Center, Margin = new Thickness(10, 0, 10, 0) };

        /// <inheritDoc/>
        public GameContextControl(D3DImage control, int requestedWidth = 0, int requestedHeight = 0)
            : base(control ?? new D3DImage(), requestedWidth, requestedHeight)
        {
            ContextType = AppContextType.DesktopWpf;
        }
    }

there is Exception :Game Window context not supported on this platform”

How Can I Run In WPF?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the exception from MainWindow and inspect GameContextControl, especially GameContextDesktop and its platform checks. Confirm whether WPF is expected to be supported; done means the supplied WPF setup runs without the “Game Window context not supported on this platform” exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.