windows-8

Is it possible to send an email to a specific recipient through Share Contract?

﹥>﹥吖頭↗ 提交于 2019-12-11 06:28:46
问题 I'm trying to send an email from a Metro application (js or c#, doesn't matter) Is Share Contract the way to go? As far as I can tell you can't specify the email's recipient through the Share contract. 回答1: You are correct. There is no way. You could try constructing a mailto Uri and launching it 回答2: This is correct. The share contract is also available for other apps, i.e. Tweetro, which do not use an email address, therefore the user must type in an email address per hand. A mailto Uri

How to bind view model to a UserControl in MVVMCROSS?

℡╲_俬逩灬. 提交于 2019-12-11 06:16:02
问题 I am using the excellent Mvvmcross and Ninja Coder for Mvvmcross for building a cross platform app. For my windows store app I have created a view and a view model using Ninja coder. I have also created a UserControl which will be referenced in the view. Hence I need to bind the same viewmodel to the User control also. I have been trying to set the Data context of the user control to the singleton instance of viewmodel. I have set the data context of the user control like below. public sealed

Don't always get a 226 Transfer OK at the end of an FTP upload

大憨熊 提交于 2019-12-11 05:53:00
问题 With an FTP client I've written I will sometimes receive a 226 Transfer OK message from the FileZilla server after an upload completes, and sometimes I won't ever receive anything. And it's not that the client disconnected before the 226 Transfer OK was received, because I can see on the server that FileZilla never sent it. I need to know when the server has received the complete upload, because I otherwise do not know if the whole file made it to the network before I close the connection.

Removing an item from a WinJS.Binding.List

旧街凉风 提交于 2019-12-11 05:08:18
问题 I looked at the Controls_ListViewWorkingWithDataSources MSDN sample to see how to remove an item from a WinJS.Binding.List and here's their solution. Please tell me there's an easier way. if (list2.selection.count() > 0) { list2.selection.getItems().done(function (items) { //Sort the selection to ensure its in index order items.sort(function CompareForSort(item1, item2) { var first = item1.index, second = item2.index; if (first === second) { return 0; } else if (first < second) { return -1; }

Windows store xaml and c# how to create accordian style list

倾然丶 夕夏残阳落幕 提交于 2019-12-11 04:58:13
问题 I have a ListView IsGroupedSource is set to true in it's CollectionViewSource. I'm trying to toggle a groups visibility when it's group header is clicked. <CollectionViewSource x:Name="FiltersViewSource" Source="{Binding Filters}" IsSourceGrouped="true" ItemsPath="AttributeValues" /> <ListView x:Name="filtersListView" AutomationProperties.AutomationId="ItemListView" AutomationProperties.Name="Grouped Items" Grid.Row="1" Margin="0,-10,0,0" Padding="30" ItemsSource="{Binding Source=

How to show Marquee style border around object in xaml C# Windows 8

大憨熊 提交于 2019-12-11 04:50:04
问题 Is there a way to show marquee style border around objects in WinRT? I see there is stroke style of border, but I want it to move around the object like the lasso tool border in Photoshop or Paint. Also I need to decide what should be the color of the gap between two strokes of the dashes. Thank you. 回答1: This is what you want, since you want the fill color: <Page.Resources> <Storyboard RepeatBehavior="Forever" x:Name="Test"> <DoubleAnimationUsingKeyFrames EnableDependentAnimation="True"

How to set an Alarm or Reminder events in Windows 8?

六眼飞鱼酱① 提交于 2019-12-11 04:48:41
问题 Do we have a functionality in Windows 8 where I can set an Alarm or a Reminder (with recurrence!!) and forget about it (and the OS will do the rest)? Or do I need to create a background task to do the work? It is not hard to schedule one event but I would not want to schedule a whole set of recurrence events. The calendar is already doing it, can I tie into this mechanism? 回答1: You can use Scheduled Notifications but there's a limit of 4096 of those, so the recommendation for a recurring task

fixing curl_exec hangs in Windows 8 apache

六月ゝ 毕业季﹏ 提交于 2019-12-11 04:38:37
问题 I've been researching and experimenting with this problem for a while now, and have yet to find a workable solution, so I think it's time to call for help. I've got a problem with curl_exec, but only on a specific server. Here's some background, first: CPU: Intel Core I7 RAM: 64GB OS: Windows 8.0 Server: Apache 2.4.4 x86 TS PHP version: 5.5.1 x86 TS w/xDebug 2.2.3 cURL version: 7.30.0 PHP code that exhibits the problem: $input_vars = (!empty($_POST)) ? filter_input_array(INPUT_POST) : array()

Changing the background color of a metro style app has no effect

喜欢而已 提交于 2019-12-11 04:16:38
问题 I am trying to change the background color of my application in visual studio (XAML) to White (or, ApplicationPageBackgroundTheme / or whatever it's called) and it doesn't work. When I debug, it just shows a black background. When I go to the Devices pane and select the default color theme to "Light", it makes everything on the screen white, even the text and the background. When I change the background of the colors in xaml, at runtime it gets changed back to black! I've searched, but haven

How to install python-Levenshtein windows

痞子三分冷 提交于 2019-12-11 04:08:36
问题 I saw there was a similar question asked about installing levenshtein in python, but was instructed to start my own by another user, so here it goes. I am runnings windows 8 64bit. When I try to install Levenshtein I get the following error. C:\Python27\Lib\site-packages\python-Levenshtein-0.10.2>python setup.py install running install running bdist_egg running egg_info writing requirements to python_Levenshtein.egg-info\requires.txt writing python_Levenshtein.egg-info\PKG-INFO writing