windows-8

C# Mixing WinRT and Windows Forms

我是研究僧i 提交于 2019-12-25 01:42:51
问题 As far as I understand, I can use Windows Forms in Windows 8 Pro (non-RT) applications. However I was wondering if I can develop an app which has a nice WinRT interface for the main part as well as a WinForms part for the more complicated parts which benefit from stuff like TreeViews and which are complicated and useless to reimplement. Which development environment would I need for that? 回答1: Windows Store Applications are intentionally limited and do not include the entire .NET Framework,

Image overlay in a flipview

丶灬走出姿态 提交于 2019-12-25 01:35:26
问题 I have this XAML code: <FlipView x:Name="models_list" Width="432" Height="286" Canvas.Left="89" Canvas.Top="80" ScrollViewer.VerticalScrollBarVisibility="Hidden" > <FlipView.ItemTemplate> <DataTemplate> <Grid x:Name="imgGrid"> <Image x:Name="img1" Source = "{Binding}" Stretch="Fill" /> <Image x:Name="img2" Source = "{Binding}" Stretch="Fill" /> </Grid> </DataTemplate> </FlipView.ItemTemplate> </FlipView> I want to be able to overlay images on this basic image 'img1' in the grid 'imgGrid'.

does winrt have a gesture builder

≡放荡痞女 提交于 2019-12-25 01:35:23
问题 In the android world there is a cool utility called Gesture Builder that allows you to associate a pre-recorded gesture with a command. For example, they can do an X on the screen and it would close the app, or draw a heart and have the app send a valentine email. Is there a similar feature with WinRT? 回答1: I don't think there is anything built in, but you could try $1, N$ - One Dollar and N Dollar Recognizers: http://depts.washington.edu/aimgroup/proj/dollar/ http://depts.washington.edu

Visual Studio 2012 Fatal error 0x80131c39

狂风中的少年 提交于 2019-12-25 01:35:18
问题 I am going bloody insane, I have installed a different type of Windows 8 (pro) at work, and now VS12 gives me this error. At home I have home edition W8 and everything works fine. I found ONLY ONE PERSON encountering this error EVER in Google, and he solved this by switching to .Net 3.5. But I am running an XNA 4.0 game (with a hack to make it work on VS12) and I don't have this option. Has anyone else EVER encountered something like this? 来源: https://stackoverflow.com/questions/16730550

ContentControl does not change the content - function never called

落爺英雄遲暮 提交于 2019-12-25 00:42:49
问题 I want to change my content off an AppBar dynamicly whith this code: <Page.Resources> <local:AppBarSelector x:Key="myAppBarSelector"/> </Page.Resources> <Page.BottomAppBar> <AppBar> <ContentControl Content="{Binding SelectedItem, ElementName=listBox}" ContentTemplateSelector="{StaticResource myAppBarSelector}"> <ContentControl.Resources> <DataTemplate x:Key="1"> <TextBlock Text="Hallo Welt 1" Foreground="White" /> </DataTemplate> <DataTemplate x:Key="2"> <TextBlock Text="Hallo Welt 2"

UserExtendedProperties.GetValue(“ANID”) equivalent on Windows 8

喜夏-厌秋 提交于 2019-12-24 22:44:02
问题 On Windows Phone 7 you can do like this to get an anonymous unique id for the current user. UserExtendedProperties.GetValue("ANID") I have search for a while to find an equivalent for my current Windows 8 (WinRT), but I can't seem to find it. All the results I find, talks about how to get a Hardware/device specific ID, which IS supported, it's just not what I need. Thanks in advance, Mads 回答1: Found out, thanks to xamlgeek an others, that it's not possible to get a Unique User Id in Windows 8

Silverlight on Windows 8

浪尽此生 提交于 2019-12-24 20:07:50
问题 I'm running my SL5 application (that has been working well so far) on Windows 8, and it is not going well. I have a background picture which usually does not render correctly, almost everytime I navigate my background (including the controls over it) just goes white till I resize IE, then it re-paints (what makes it stranger is that the parts that goes white is outside of the navigation frame, why is it getting repainted). (Chrome renders fine) When I run my application out-of-browser my

How to modified the background of selected gridviewitem in gridview

随声附和 提交于 2019-12-24 18:32:14
问题 In windows8, when we selected an item in gridview, the default background color is purple, how to change the color? 回答1: This link on msdn might help you with your problem. It sounds similar based on the tags you chose: http://social.msdn.microsoft.com/Forums/pl-PL/winappswithcsharp/thread/98e6d866-9c54-4ee2-a9e8-767c74363b13 来源: https://stackoverflow.com/questions/14071024/how-to-modified-the-background-of-selected-gridviewitem-in-gridview

change image source programmatically

自古美人都是妖i 提交于 2019-12-24 18:20:31
问题 I cannot figure out how to dynamically load an image from the disk to a Xaml image control. <Image x:Name="imgLogo" ....../> Then in my c++ class, i cannot get any examples working that I have found. Most are in c#. One annoyance is that I keep seeing System.Windows.Media::ImageSource used, but that is not in my framework. Can someone please show me an example. I'm coming from the iOS world and am not used to MS and their frameworks. Thanks, 回答1: Try this, it's in C# but should be fairly easy

ReadTextAsync in Windows Store app with multibyte file and JavaScript

拟墨画扇 提交于 2019-12-24 17:40:33
问题 I would like to read a CSV file in my javascript written windows store app. If I use readTextAsync I get an error when using some german umlauts. No mapping for the Unicode character exists in the target multi-byte code page. I found a solution in C# here ReadText from file in ANSII encoding but I have no idea how to solve it in JavaScript? Is there someting like the Encoding class in JavaScript? If I convert the file to UTF8 it works fine, but my customer would like to use a file saved by