TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Aditya Patil
NA
535
134.1k
Assign Value to ListPicker Windows Phone in C#
Jul 22 2014 12:55 AM
Date, Time & Text issue solved by below c# code
dpkDate.Value = DateTime.Parse(note.Date);
tpkDate.Value = DateTime.Parse(note.Time);
TextField.Text = note.Text;
But Listpicker problem not solved yet.
ListBox Xaml Code
<ListBox HorizontalAlignment="Left" Height="103" VerticalAlignment="Top" Width="456" Name="priority" Margin="10,302,-10,0" >
<ListBoxItem x:Name="high" Content="High" Foreground="White" FontSize="24"/>
<ListBoxItem x:Name="medium" Content="Medium" Foreground="White" FontSize="24"/>
<ListBoxItem x:Name="low" Content="Low" Foreground="White" FontSize="24"/>
</ListBox>
C# code written for ListPicker but its not working
priority.SelectedItem = note.Priority;
//((ListBoxItem)priority.SelectedItem).Content = note.Priority;
Screenshot of values while adding breakpoint you can see below.
At Query this value is passed perfectly
Value while allocating to Priority ListPicker, help me regarding it.
Problem only in Assigning the value to ListPicker.
Reply
Answers (
1
)
find and reverse digits
ANKH SVN control Conflict in Visual Studio 2012