MtPage Background

Jan 28, 2015 at 3:27 PM
Edited Jan 28, 2015 at 3:58 PM
Developing WP8.1 WinRT Applicaition

I'm having issues trying to set Background property on MtPage - no matter what I set it to (ThemeResource or straight to a color) it always displays as black.

Is this a known issue or are there any steps I can take to try to debug it?

Jan 28, 2015 at 5:23 PM
Why don't you set the background of the first child? Eg a Grid control inside MtPage?
Jan 28, 2015 at 6:00 PM
Looked into doing this but the background doesn't fill behind the statusbar in that case.

Any other thoughts on workarounds or why the property would not be applying correctly?
Jan 28, 2015 at 7:43 PM
Edited Jan 28, 2015 at 7:44 PM
It should fill the whole screen. What is a statusbar in winrt apps?
I think it's not working because MtPage inherits from ContentControl where Background is not working (I think).

The visual tree looks as follows:
- MtFrame
--- ContentControl
----- Grid
------- MtPage : ContentControl
--------- Grid(Background): Your content
it may be possible to bind MtPage.Background to Grid.Background, but it's a little bit tricky...
Feb 6, 2015 at 4:19 PM
Did you find a workaround?
Mar 11, 2015 at 4:25 AM
Edited Mar 11, 2015 at 4:28 AM
I want to change MtFrame Background. I override:
public class CtFrame:MtFrame
    public CtFrame() : base()
    protected override void OnApplyTemplate()
        InternalFrame.Background = Background;
@Rico: Thank you very much, for MyToolkit for .NET :)