我制作了一些编辑照片的应用程序并将其保存在其他位置.所以我找到一个question,它显示了如何在Windows应用商店应用中调整照片大小.然后我在我的程序中实现它:private async void ResizeButton_Click(object sender, RoutedEventArgs e) {uint width, height;if (uint.TryParse(WidthTextBox.Text, out width) && uint.TryParse(HeightTextBox.Text, out height) && _folderWithPhoto != null && _targetFolder != null)//_folderW...
我正在尝试将List(Show是我的类实现IXmlSerializable)存储到本地隔离存储.我正在使用此页面中的代码:http://metrostoragehelper.codeplex.com/我已经实现了“问题”部分中建议的更改.我从项目列表中单击时使用以下代码添加Show对象.private async void addShowButton_Click_1(object sender, RoutedEventArgs e){var isoStorage = new StorageHelper<List<Show>>(StorageType.Local);List<Show> currentShows = await isoStorage....
我试图通过RestSharp从Trello获取Request Token.我只在请求线程中获得了令牌,但是无法将其保存在我的应用程序的变量中. 有一些代码:private async void GetToken(){app.Client.Authenticator = OAuth1Authenticator.ForRequestToken(app.ConsumerKey, app.ConsumerSecret);var request = new RestRequest("OAuthGetRequestToken", Method.POST);app.Client.ExecuteAsync(request, HandleResponse);}private void HandleResponse(I...
我正在尝试保存一个类我的类对象的集合.我收到一个错误说明:The collection data contract type ‘System.Collections.Generic.List cannot be deserialized because it does not have a public parameterless constructor.Adding a public parameterless constructor will fix this error.这是我的班级:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; ...