×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    41

    Way to get a Phone Background theme when designing a UserControl

    Good day, When designing a page layout for windows phone, you get the Phone Background theme(if i may call it that) which makes it easier to position widgets from the toolbox correctly. Now is there a way i can get this phone background theme when Creating a UserControl. My Plan is to have a number of UserControls Layouts which i would like to switch between and use, but i would like to have that background so that it can be easier to position things correctly. Right now, its just trial and error, editing the UserControl views and checking to see if they layout correctly in the phone theme or is there a way i can turn a phone page layout to a UserControl?

    I hope i made myself clear. Thanks in advance.

  2. #2
    Nokia Developer Champion
    Join Date
    Sep 2012
    Location
    Morocco
    Posts
    292

    Re: Way to get a Phone Background theme when designing a UserControl

    Quote Originally Posted by iparrot View Post
    Good day, When designing a page layout for windows phone, you get the Phone Background theme(if i may call it that) which makes it easier to position widgets from the toolbox correctly. Now is there a way i can get this phone background theme when Creating a UserControl. My Plan is to have a number of UserControls Layouts which i would like to switch between and use, but i would like to have that background so that it can be easier to position things correctly. Right now, its just trial and error, editing the UserControl views and checking to see if they layout correctly in the phone theme or is there a way i can turn a phone page layout to a UserControl?

    I hope i made myself clear. Thanks in advance.
    Hello,

    Code:
    Visibility LightThemeVisibility = (Visibility)Resources["PhoneLightThemeVisibility"];
    Visibility DarkThemeVisibility = (Visibility)Resources["PhoneDarkThemeVisibility"];
    there a Resource for each theme, if the phones uses the Light Theme then Resources["PhoneLightThemeVisibility"] equals Visible and Resources["PhoneDarkThemeVisibility"] equals Collapsed

    hope this is what you were searching for
    Yassine,

  3. #3
    Nokia Developer Champion
    Join Date
    Nov 2011
    Location
    la bouexiere, france
    Posts
    420

    Re: Way to get a Phone Background theme when designing a UserControl


Similar Threads

  1. Cant Make instances with usercontrol
    By yogeshg in forum Windows Phone General
    Replies: 6
    Last Post: 2012-08-23, 07:00
  2. Basic Designing Applications for Windows Phone 7
    By pravejnini in forum Windows Phone General
    Replies: 5
    Last Post: 2012-02-15, 22:57
  3. Replies: 0
    Last Post: 2009-04-23, 08:59
  4. Replies: 11
    Last Post: 2008-03-28, 08:58

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •