The Full Stack, Part 2: Setting up the UI for our Windows Phone client

Sign in to queue

The Discussion

  • User profile image
    alan_247

    The download link for the Windows Phone Developer Tools is below its about 354 MB

    https://www.microsoft.com/expression/windowsphone/Default.aspx

    Another link to get you started...

    https://create.msdn.com/en-us/home/getting_started

    Alan

  • User profile image
    Edmund Tse

    Great work on keeping the demo interesting to watch. One suggestion would be to improve the audio quality a little. It sounds like it's very low bitrate. I watched the mp4 version.

  • User profile image
    gligoran

    Hi!

    I've watched the first part of this and it was great. Especially the Code-First part for EF which I did not know. I was looking forward to seeing Part 2 after that Smiley And this part is also great up to about minute 37. This is where I got completely lost. After the blurry animation you jumped to a whole different point in the process. How did you get all those files and folders in visual studio? All I've got is the SampleData folder 2 .xaml files with code-behind and 3 png images...

    I should probably say that I'm a complete newbie to WP7 programming. This was my first contact into it and I actually had to pause the video to install all the necessary tools so I can follow you.

    It would also be great if you'd include some source code of the stuff you're doing.

  • User profile image
    alan_247

    To set the text on the toggle button...

    namespace WhoIsThatPhoneDemo
    {
        public partial class MainPage : PhoneApplicationPage
        {
            public MainPage()
            {
                InitializeComponent();
                Loaded +=new RoutedEventHandler(DescriptorsView_Loaded);
               // Set Toggle Button text @ startup
                HairLengthPopupToggle.Content = HairLength.Text;         }
    
           public void DescriptorsView_Loaded(Object sender, RoutedEventArgs e)
            {
               HairLengthLB.SelectionChanged += new SelectionChangedEventHandler(HairLengthLB_SelectionChanged); 
            }
    
           public void HairLengthLB_SelectionChanged(Object sender, SelectionChangedEventArgs e)
           {
               HairLength.Text = (HairLengthLB.SelectedItem as Expression.Blend.SampleData.HairLengthSampleData.Item).Length.ToString();
    // Set ToggleButton text on ListBox change event 
               HairLengthPopupToggle.Content = (HairLengthLB.SelectedItem as Expression.Blend.SampleData.HairLengthSampleData.Item).Length.ToString();        }
            
        }
    }

Add Your 2 Cents