简体   繁体   中英

How to add a list picker on Textblock tap event in Wp8?

I want to add a List picker on tap event of Textblock?

Please anyone suggest a simple solution and if possible send a sample code.

I have tried so far the below code. I am getting PickerPageUri error while displaying.

Thanks

  private void tb_Tap(object sender, System.Windows.Input.GestureEventArgs e) { ListPicker lp = new ListPicker(); lp.Background = new SolidColorBrush(Colors.Blue); lp.Height = 500; LayoutRoot.Children.Add(lp); } 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM