Skip to content
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.

Demonstrates some flexibility available with SwapChainPanel in Windows 8.1 #223

Closed
wants to merge 14 commits into from

Conversation

TheWhiteAmbit
Copy link
Contributor

It does so by changing MiniCubeXaml-Sample. For rendering the Window-Background is not used any-more, a custom UserControl is used. MainPage equps it with TextBlock in front, back and even as content. Panel is rotated and scaled. Scaling makes the rendering blurry, in further Samples/Versions it might be interesting to compensate it.

@TheWhiteAmbit
Copy link
Contributor Author

Please wait with a pull. i just checked the other examples, and with changes in SwapChainPanelTarget they obviously don't work any more. I will remove them completely, as they are pointless now anyway and this also further reduces duplicate code in Windows 8.1 Samples.

@TheWhiteAmbit
Copy link
Contributor Author

Done. You may pull now. This removes all Projects from Win81 Samples and lets just one Sample remain. This sample (another MiniCubeXaml) shows how SwapChainPanel can be used now appearing anywhere as XAML-panel.

@ArtiomCiumac
Copy link
Contributor

Merged. I had to do some fixes (8bf3955) in order to make the sample compilable, also I have removed the MiniCube project as it wasn't included in any solution.

@TheWhiteAmbit
Copy link
Contributor Author

Thanks. Please consider duplicating my changes in CubeRenderer.cs in other Projects using CubeRenderer. When used in Designer (VS or Blend) the corresponding Shaders can't be found. This makes the UI-Elements to be hard to edit there. Or wait and I will improve my CubeRenderer.cs with an clean fix like this, instead of just catching the FileNotFoundException:
http://msdn.microsoft.com/en-us/library/bb546934%28v=vs.90%29.aspx

@ArtiomCiumac
Copy link
Contributor

Thanks for contribution. If you could provide a fix - that would be great. Feel free to open a new pull request when it's ready.

@TheWhiteAmbit
Copy link
Contributor Author

I will open a new pull request once I have a clean fix for this as described in the link above.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants