windows-phone-7

Programmatically determining max fit in textbox (WP7)

无人久伴 提交于 2019-12-29 06:25:14
问题 I'm currently writing an eBook reader for Windows Phone Seven, and I'm trying to style it like the Kindle reader. In order to do so, I need to split my books up into pages, and this is going to get a lot more complex when variable font sizes are added. To do this at the moment, I just add a word at a time into the textblock until it becomes higher than its container. As you can imagine though, with a document of over 120,000 words, this takes an unacceptable period of time. Is there a way I

How can I make something like this? (Tiles inside the app) Windows phone

别说谁变了你拦得住时间么 提交于 2019-12-29 03:16:09
问题 I'm sorry if the question title wasnt clear, but I'm trying to make something like this, I dunno if they are tiles or images inside a WrapControl: I was thinking of making such thing with a wrap panel and each one of those blocks as a stackpanel. but I'm not sure if thats the right approach. is there a control to do such thing? 回答1: You are on the right track. WrapPanel is the way to go :) To make each block more interesting, you can take a look at the HubTile control from the latest windows

windows phone 7 database [closed]

余生长醉 提交于 2019-12-29 00:47:31
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I am developing a windows phone 7 app which will need some basic database functionality. I came across the following projects on

Post to Facebook user wall using Facebook.dll in WP7

江枫思渺然 提交于 2019-12-28 11:56:27
问题 How to post to user wall in facebook using Facebook.dll in WP7. I found one method named PostAsync() but am not able to understand the parameters. Any help will be thankfull. Thanks 回答1: Finally succeded in Posting using the follwing code:- var args = new Dictionary<string, object>(); args["name"] = "Check this out"; args["link"] = "www.xyz.com"; args["caption"] = ""; args["description"] = "description"; args["picture"] = ""; args["message"] = "Check this out"; args["actions"] = "";

Converting a JToken (or string) to a given Type

吃可爱长大的小学妹 提交于 2019-12-28 11:42:39
问题 TL;DR Version I have a object of type JToken (but can also be a string ) and I need to convert it into a Type contained in the type variable: Type type = typeof(DateTime); /* can be any other Type like string, ulong etc */ var obj = jsonObject["date_joined"]; /* contains 2012-08-13T06:01:23Z+05:00 */ var result = Some_Way_To_Convert(type, obj); The above result should be a DateTime object with the value given in date_joined . Full Story I'm using both RestSharp and Json.NET in a Windows Phone

Converting a JToken (or string) to a given Type

南楼画角 提交于 2019-12-28 11:42:09
问题 TL;DR Version I have a object of type JToken (but can also be a string ) and I need to convert it into a Type contained in the type variable: Type type = typeof(DateTime); /* can be any other Type like string, ulong etc */ var obj = jsonObject["date_joined"]; /* contains 2012-08-13T06:01:23Z+05:00 */ var result = Some_Way_To_Convert(type, obj); The above result should be a DateTime object with the value given in date_joined . Full Story I'm using both RestSharp and Json.NET in a Windows Phone

Anyone have experience with architecture for cross platform WP7 Android iOS mobile development (monotouch, monodroid, C#)

梦想的初衷 提交于 2019-12-28 08:05:15
问题 This question is specifically related to a recommended architecture and people's previous experiences for cross-platform WP7, iOS, Android apps developed using C#, Monotouch and Monodroid respectively. I have researched previous questions here, here and here. They provide good answers but not quite what I'm looking for. I have also found this excellent question which does go into the cost benefit so there is some overlap. I have a requirement to develop a cross-platform iPhone/iPad, WP7 and

Anyone have experience with architecture for cross platform WP7 Android iOS mobile development (monotouch, monodroid, C#)

[亡魂溺海] 提交于 2019-12-28 08:05:12
问题 This question is specifically related to a recommended architecture and people's previous experiences for cross-platform WP7, iOS, Android apps developed using C#, Monotouch and Monodroid respectively. I have researched previous questions here, here and here. They provide good answers but not quite what I'm looking for. I have also found this excellent question which does go into the cost benefit so there is some overlap. I have a requirement to develop a cross-platform iPhone/iPad, WP7 and

Filtering an ObservableCollection?

徘徊边缘 提交于 2019-12-28 06:01:28
问题 When I bind a ListBox directly to an ObservableCollection I get the real-time updates displayed in my ListBox, but as soon as I add other LINQ methods in the mix my ListBox is no longer notified of any changes to the ObservableCollection. Here, let me illustrate with an example; public partial class MainPage : PhoneApplicationPage { ObservableCollection<String> Words = new ObservableCollection<string>(); public MainPage() { InitializeComponent(); listBox1.ItemsSource = Words; } private void

Filtering an ObservableCollection?

南楼画角 提交于 2019-12-28 06:01:09
问题 When I bind a ListBox directly to an ObservableCollection I get the real-time updates displayed in my ListBox, but as soon as I add other LINQ methods in the mix my ListBox is no longer notified of any changes to the ObservableCollection. Here, let me illustrate with an example; public partial class MainPage : PhoneApplicationPage { ObservableCollection<String> Words = new ObservableCollection<string>(); public MainPage() { InitializeComponent(); listBox1.ItemsSource = Words; } private void