windows-phone

Trying to get a Windows Phone 8 ListPicker to work

扶醉桌前 提交于 2019-12-12 09:49:56
问题 The ListPicker functions, in that I can click on it and a full screen popup appears, but there are options to choose from. My xaml: <toolkit:ListPicker ExpansionMode="FullScreenOnly" FullModeHeader="Select Module" Name="modulePicker"> <toolkit:ListPicker.ItemTemplate> <DataTemplate> <StackPanel> <TextBlock Text="{Binding moduleNumber}"/> </StackPanel> </DataTemplate> </toolkit:ListPicker.ItemTemplate> <toolkit:ListPicker.FullModeItemTemplate> <DataTemplate> <StackPanel"> <TextBlock Text="

How to get Windows app store dev center data

允我心安 提交于 2019-12-12 09:42:49
问题 I want to know if there is a way to get details of applications posted by a developer in the windows phone store. I'm looking for mainly these details: app downloads, app crash count, user reviews, user ratings. I have a developer account and want to extract above mentioned details for my own submitted apps from dev center. The store does not provide any REST APIs to do it. Is there an easy way to do it. 回答1: Although this is an old question, there is meanwhile a better answer: Sinde 03/2016

information about windows phone (model number)

无人久伴 提交于 2019-12-12 07:16:12
问题 i want to know the device model number programmatically as it is shown in settings about page i am currently using Microsoft.Phone.Info.DeviceStatus.DeviceName but it doesn't help and gives some other typical value. Please help me how can i get phone model/name as above. 回答1: You should use PhoneNameResolver, a simple class that resolves the obscure devices names like RM-885_apac_prc_250 into friendlier commercial names like NOKIA Lumia 720 Here is a sample code: var phone = PhoneNameResolver

Empty LongListSelector has infinite length

柔情痞子 提交于 2019-12-12 06:45:35
问题 I have a LongListSelector which is inside a StackPanel . when this LLS is empty, it has infinite length and elements which are at the bottom of it can't be seen. <StackPanel Orientation="Vertical"> <phone:LongListSelector> </phone:LongListSelector> </StackPanel> but when I set it's ItemsSource , it gets fine. I tried assigning it's VerticalAlignment to top, but didn't solved the issue How to make it's size not fill the form? 回答1: (I've edited this post to make it better) First of all lets

WIndows Phone AdMediation control doesn't work with adduplex

帅比萌擦擦* 提交于 2019-12-12 05:39:18
问题 I've integrated the AdMediation control into my Windows Phone app. This works fine for pubCenter and Google AdMob but not for adduplex. According to the documentation, I've used the App ID from adduplex (App key in adduplex dashboard) but I still get a configuration error banner displayed. I found this blog post a few days ago. The post says that I have to use the Ad unit ID (banner in adduplex dashboard) instead of the App key but this it does not work either. Can somebody who is using the

SelectedItem must always be set to a valid value

只愿长相守 提交于 2019-12-12 05:29:20
问题 I have two viewmodel, on the first viewmodel i have a listbox: <ListBox x:Name="MainMenu" toolkits:TiltEffect.IsTiltEnabled="True" SelectedItem="{Binding SelectedItem, Mode=TwoWay}" ItemTemplate="{StaticResource MainMenu}" ItemsSource="{Binding Categories}" Margin="0,97,0,0" Tap="MainMenu_Tap"> In the second page, i have a listpicker <toolkit:ListPicker Margin="0,153,0,0" Background="{StaticResource PhoneAccentBrush}" VerticalAlignment="Top" ItemsSource="{Binding Categories}" SelectedItem="

How to set property isEnabled in each subitem button of listview in windows phone winrt?

耗尽温柔 提交于 2019-12-12 05:29:12
问题 I have listview. In this listview I have listview.item that contains button. I bind my listview to some datasource, so I have many buttons. How to disable all of this buttons? http://pastebin.com/6MFDfX9S 回答1: Looking at your code, besides binding to "Title", "Date", "DownloadedOrNot" and "Info" you can add another property and bind that to the IsEnable property of the buttons, like "IsEnable. If you need to change the value of this property you can always traverse your ListView Items like

How to format date time in a Windows Phone app like the native messaging app

这一生的挚爱 提交于 2019-12-12 04:38:34
问题 The native messaging app in Windows Phone 8 displays date time like these: 4/3, 8:31p 12/25, 10:01a When I format date time using String.Format("{0:d} {0:t}"), I got these: 4/3/2013 8:31 PM 12/25/2012 10:01 AM How can I make it as concise as the native messaging app? 回答1: There's no standard date and time format string for this representation. While you could simply use this: string.Format("{0:M/d, h:mmt}"); ... It won't help when your app is used in a culture which switches the order of day

Hot to prevent default event when button click

谁说胖子不能爱 提交于 2019-12-12 04:17:52
问题 I have button click event private void AnswerPressAction(object sender, RoutedEventArgs e) { Button button = (Button)sender; Button validButton = null; string buttonName = button.Name; button.Background = new SolidColorBrush(Colors.Yellow); System.Threading.Thread.Sleep(1000); int presedAnswer = 0; switch (buttonName) { case "buttonAnswer1": presedAnswer = 1; break; case "buttonAnswer2": presedAnswer = 2; break; case "buttonAnswer3": presedAnswer = 3; break; case "buttonAnswer4": presedAnswer

Change the orientation based on Image width and height

浪尽此生 提交于 2019-12-12 04:13:48
问题 I have few images thats being displayed, now there are some images where the width of the image is greater than the height of the image. Say: image.GetWidth() > image.GetHeight(); display the image in landscape mode, else display the image in portrait mode. I have searched,and could not find any resource that will help me in this case. Any help would be appreciated. Please not that i am on WP8. EDIT Grid grid = new Grid(); grid.VerticalAlignment = VerticalAlignment.Center; grid