{"id":2927,"date":"2014-03-10T12:58:12","date_gmt":"2014-03-10T12:58:12","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/10\/windows-store-apps-forumsbuilding-windows-store-apps-with-c-or-vb-related-issues-collection-of-common-programming-errors\/"},"modified":"2014-03-10T12:58:12","modified_gmt":"2014-03-10T12:58:12","slug":"windows-store-apps-forumsbuilding-windows-store-apps-with-c-or-vb-related-issues-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/10\/windows-store-apps-forumsbuilding-windows-store-apps-with-c-or-vb-related-issues-collection-of-common-programming-errors\/","title":{"rendered":"windows-store-apps-forums,building-windows-store-apps-with-c-or-vb-Related issues-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-store-apps-forums building-windows-store-apps-with-c-or-vb-<br \/>\nHi Experts,In\u00a0 my WinRT app, i\u00a0 need to get the state of Control key. I am using the following code.CoreVirtualKeyStates ctrl = Window.Current.CoreWindow.GetAsyncKeyState(VirtualKey.Control);But the state is always &#8220;None&#8221; instead of &#8220;Down&#8221; state. Please help me anybody.ThanksRamesh-Ramesh<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-store-apps-forums building-windows-store-apps-with-c-or-vb-<br \/>\nHi,I have recently started writing a small Metro application using XAML and C# to help me learn the new APIs. I have encountered some fatal errors on what seem to be pretty basic functions.This is what my solution currently looks like.\u00a0Shell (Metro application project)|&#8211; App.xaml|&#8211; MainPage.xaml\u00a0Theme (Metro class library)|&#8211; Brushes.xaml\u00a0Controls (Metro class library)|&#8211; CustomButton.cs\u00a0The first thing I tried to do was add a SolidColorBrush in Brushes.xaml in the Themes p<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-store-apps-forums publishing-windows-store-apps<br \/>\nMy app was accepted under the Keep the Cash offer, and on MAY 3, I received the following Congratulations note that my app qualified for a reward:&#8221;$100 Virtual Visa\u00ae cardYou will receive an email within 10 business days providing further details on your Virtual Visa gift card. This offer will be fulfilled in the form of a Virtual Visa and is not redeemablefor cash. The Virtual Visa must be activated within 30 days of receiving the email activation code, will expire 6 months after issuance a<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-store-apps-forums building-windows-store-apps-with-c-or-vb-<br \/>\nHi All,I&#8217;m getting\u00a0the media failed event fired when ever I try to play an audio\u00a0file from some of my Windows 8 machines. Other Windows 8 machines works well without any issues&#8230;The error I&#8217;m getting is:MF_MEDIA_ENGINE_ERR_SRC_NOT_SUPPORTED : HRESULT &#8211; 0x8000FFFFHow\/Where can I check this HResult code so that I can have a hint to the actual issue???Thanks,Rahul<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-store-apps-forums building-windows-store-apps-with-c-or-vb-<br \/>\nI&#8217;m trying to implement license checking with the CurrentAppSimulator, by simply following the sample code from MSDN.The relevant code snippets are:AppLicenseDataSource.cs:namespace myApp.DataModel {class AppLicenseDataSource : INotifyPropertyChanged{public Windows.ApplicationModel.Resources.ResourceLoader loader = new Windows.ApplicationModel.Resources.ResourceLoader()public Windows.ApplicationModel.Resources.ResourceLoader loader = new Windows.ApplicationModel.Resources.ResourceLoader();public<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-store-apps-forums building-windows-store-games-with-directx<br \/>\nI&#8217;m attempting to build a C Metro app that uses SwapChainBackgroundPanel.\u00a0 I want to use Blend for XAML overlaysThe only example I have found so far that actually uses Blend is Simple3DGameXaml (the shoot at the rectangle targets app.)Looking at MainPage.xaml for the sample, it has a Page element, a bottom and top AppBar (not really relevant to the question), and a SwapChainBackgoundPanel.\u00a0 The panel is placed as a child of the panel, just like a grid would be in a &#8220;normal WPF&amp;quo<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-store-apps-forums publishing-windows-store-apps<br \/>\nHello, when i submit app into Store then i get this Failed with reason :Your app doesn&#8217;t meet requirement 3.6. Learn moreCommons reasons why apps fail this requirement: The app displays unexpected behaviors when the reviewer snaps and unsnaps the app.The app uses a button, gesture, or other user interface element to close the app.The app closes programmatically. The app doesn&#8217;t suspend and resume to a reasonable state. The app has an app bar, but the bar doesn&#8217;t show up with a bottom-up swipe. T<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-store-apps-forums building-windows-store-apps-with-c-or-vb-<br \/>\nHi,I&#8217;m using a VariableSizedWrapGrid with two buttons inside. The first button is visible only in some situations so I hide it\u00a0binding its Visibility to a viewmodel boolean property, using a converter to convert from bool to Visibility.The button is correctly\u00a0collapsed but it still has the same size so I have an empty space in the grid.How can I hide the button and avoid the empty space?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-store-apps-forums building-windows-store-apps-with-c-or-vb-<br \/>\nError : DEP0700 : Registration of the app failed. error 0xC00CE014: App manifest validation error: The app manifest must be valid as per schema: Line 25, Column 8, Reason: Element'{http:\/\/schemas.microsoft.com\/appx\/2013\/manifest}VisualElements&#8217; is unexpected according to content model of parent element &#8216;{http:\/\/schemas.microsoft.com\/appx\/2010\/manifest}Application&#8217;.Expecting: {http:\/\/schemas.microsoft.com\/appx\/2010\/manifest}VisualElements.\u00a0(0x80080204)Should I upgrade the surface RT os to wi<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-store-apps-forums building-windows-store-apps-with-c-or-vb-<br \/>\nHi,I&#8217;m building a Windows 8 Store app using c#\/XAML using MVVM (no framework).\u00a0 I&#8217;m using the CharmFlyoutLibrary for my application settings.\u00a0 I have a parent\/child settings configured. I have created a &#8220;getting started&#8221; page and I wouldlike to open the application settings flyout page\/control open programmatically.\u00a0I can get the Settings Pane to open easily enough. I have tried quite a few option for opening\u00a0the application settings flyout directly but I can&#8217;t figu<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-store-apps-forums building-windows-store-apps-with-c-or-vb-<br \/>\nHi Experts,In\u00a0 my WinRT app, i\u00a0 need to get the state of Control key. I am using the following code.CoreVirtualKeyStates ctrl = Window.Current.CoreWindow.GetAsyncKeyState(VirtualKey.Control);But the state is always &#8220;None&#8221; instead of &#8220;Down&#8221; state. Please help me anybody.ThanksRamesh-Ramesh<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-store-apps-forums building-windows-store-apps-with-c-or-vb-<br \/>\nHi,I have recently started writing a small Metro application using XAML and C# to help me learn the new APIs. I have encountered some fatal errors on what seem to be pretty basic functions.This is what my solution currently looks like.\u00a0Shell (Metro application project)|&#8211; App.xaml|&#8211; MainPage.xaml\u00a0Theme (Metro class library)|&#8211; Brushes.xaml\u00a0Controls (Metro class library)|&#8211; CustomButton.cs\u00a0The first thing I tried to do was add a SolidColorBrush in Brushes.xaml in the Themes p<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-store-apps-forums building-windows-store-apps-with-c-or-vb-<br \/>\nHi All,I&#8217;m getting\u00a0the media failed event fired when ever I try to play an audio\u00a0file from some of my Windows 8 machines. Other Windows 8 machines works well without any issues&#8230;The error I&#8217;m getting is:MF_MEDIA_ENGINE_ERR_SRC_NOT_SUPPORTED : HRESULT &#8211; 0x8000FFFFHow\/Where can I check this HResult code so that I can have a hint to the actual issue???Thanks,Rahul<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-store-apps-forums building-windows-store-apps-with-c-or-vb-<br \/>\nI&#8217;m trying to implement license checking with the CurrentAppSimulator, by simply following the sample code from MSDN.The relevant code snippets are:AppLicenseDataSource.cs:namespace myApp.DataModel {class AppLicenseDataSource : INotifyPropertyChanged{public Windows.ApplicationModel.Resources.ResourceLoader loader = new Windows.ApplicationModel.Resources.ResourceLoader()public Windows.ApplicationModel.Resources.ResourceLoader loader = new Windows.ApplicationModel.Resources.ResourceLoader();public<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-store-apps-forums building-windows-store-apps-with-c-or-vb-<br \/>\nHi,I&#8217;m using a VariableSizedWrapGrid with two buttons inside. The first button is visible only in some situations so I hide it\u00a0binding its Visibility to a viewmodel boolean property, using a converter to convert from bool to Visibility.The button is correctly\u00a0collapsed but it still has the same size so I have an empty space in the grid.How can I hide the button and avoid the empty space?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-store-apps-forums building-windows-store-apps-with-c-or-vb-<br \/>\nError : DEP0700 : Registration of the app failed. error 0xC00CE014: App manifest validation error: The app manifest must be valid as per schema: Line 25, Column 8, Reason: Element'{http:\/\/schemas.microsoft.com\/appx\/2013\/manifest}VisualElements&#8217; is unexpected according to content model of parent element &#8216;{http:\/\/schemas.microsoft.com\/appx\/2010\/manifest}Application&#8217;.Expecting: {http:\/\/schemas.microsoft.com\/appx\/2010\/manifest}VisualElements.\u00a0(0x80080204)Should I upgrade the surface RT os to wi<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-store-apps-forums building-windows-store-apps-with-c-or-vb-<br \/>\nHi,I&#8217;m building a Windows 8 Store app using c#\/XAML using MVVM (no framework).\u00a0 I&#8217;m using the CharmFlyoutLibrary for my application settings.\u00a0 I have a parent\/child settings configured. I have created a &#8220;getting started&#8221; page and I wouldlike to open the application settings flyout page\/control open programmatically.\u00a0I can get the Settings Pane to open easily enough. I have tried quite a few option for opening\u00a0the application settings flyout directly but I can&#8217;t figu<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-store-apps-forums building-windows-store-apps-with-c-or-vb-<br \/>\nI was wondering if there were any plans to support 3GPP and 3GPP2 video in MediaFoundation for Metro apps. I see that it&#8217;s enabled for WP7 and Silverlight developers, but there&#8217;s currently no love for the desktop. Is this going to change before the finalrelease of Windows 8?No matter where you go, there you are.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-store-apps-forums building-windows-store-apps-with-c-or-vb-<br \/>\nI see how you can wake the system in response to WiFi traffic over a socket from a background task during sleep mode. My question is if it is (or will be) possible to have a Bluetooth socket open in a background task capable of being triggered while thesystem is asleep in Connected Standby.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-store-apps-forums building-windows-store-apps-with-c-or-vb-<br \/>\nHello,In my app I use HTTPS to connect to an external server. I don&#8217;t control the configuration of this server. Since a few days I have some requests that failed with this message:&#8221;Authentication failed because the remote party has closed the transport stream&#8221; (the callstack is below).I search a solution but a lot refer to the .NET managed stack not WinRT specially the&#8221;ServicePointManager.SecurityProtocol= SecurityProtocolType.Ssl3;&#8221; fix.I&#8217;m not expert in the SSL\/TLs thing, i<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>msdn windows-store-apps-forums building-windows-store-apps-with-c-or-vb- Hi Experts,In\u00a0 my WinRT app, i\u00a0 need to get the state of Control key. I am using the following code.CoreVirtualKeyStates ctrl = Window.Current.CoreWindow.GetAsyncKeyState(VirtualKey.Control);But the state is always &#8220;None&#8221; instead of &#8220;Down&#8221; state. Please help me anybody.ThanksRamesh-Ramesh msdn windows-store-apps-forums building-windows-store-apps-with-c-or-vb- Hi,I have recently started writing a small Metro application using XAML and C# [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2927","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2927","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2927"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2927\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2927"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2927"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}