windows-store-apps

ListView Data Binding for Windows 8.1 Store Apps

▼魔方 西西 提交于 2019-12-11 20:19:06
问题 So I am trying to move a desktop program i made to an app for Windows 8.1 using Visual Studio 2013 . Datagrid was deprecated for this release so I am trying to translate those over to a ListView . I previously used ListViews in other desktop applications, but it looks like a lot has changed. The problem I am having is populating my ListView from my database. I am connecting through a WCF Service and stepping through the code, I can see I am getting the right data, I just cant get it to appear

Place popup at top right corner of a window in XAML

别来无恙 提交于 2019-12-11 19:55:57
问题 I am developing an app for windows store using c#/xaml. Xaml: <Popup x:Name="EditQuantityPopup" x:Uid="EditQuantityPopup" AutomationProperties.AutomationId="EditQuantityPopup" IsLightDismissEnabled="True" IsOpen="{Binding IsEditPopupOpened, Mode=TwoWay}"> <Grid x:Name="PopupPanel" Background="{StaticResource ApplicationPageBackgroundThemeBrush}" Opacity=".9" Height="100" Width="230"> <Grid x:Name="ContentPopupGrid" Grid.Row="1" Margin="20,0,10,15"> <Grid.ColumnDefinitions> <ColumnDefinition

HttpClient, server committed a protocol violation Section=ResponseHeader Detail=CR must be followed by LF

倖福魔咒の 提交于 2019-12-11 19:42:54
问题 I am using the HttpClient to communicate with a GoPro Camera over WiFi, but I am getting the following error. " The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF " Although I have notified them, I cannot change GoPro's web server, so I need to resolve/ignore this on the client side. When i make this call, using Fiddler as a proxy, Fiddler corrects the issue and my app runs as expected. But without fiddler i get the protocol violation message.

What is the difference between null and transparent brush in the Background or Fill

柔情痞子 提交于 2019-12-11 19:39:19
问题 For example we have a Border. What the difference beetween these XAMLs? 1) Background="Transparent" <Page x:Class="App1.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <Border BorderBrush="White" BorderThickness="2" Width="400" Height="400" Background="Transparent" PointerPressed="Border_PointerPressed" PointerReleased="Border

How to set text including new line character in storyboard

喜你入骨 提交于 2019-12-11 18:47:59
问题 Want to replace "\n" with new line character <VisualState x:Name="Snapped"> <Storyboard> <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Text" Storyboard.TargetName="textBlock"> <DiscreteObjectKeyFrame KeyTime="0" Value="Here is my text.\nThis is new line"/> </Storyboard> </VisualState> The output text is: Here is my text.\nThis is new line without new line character. P.S.: If this value can be filled with the string in resource file that would be a great..!! Either way will help me

Is it possible to hide the SIP (soft keyboard) in Win 8?

女生的网名这么多〃 提交于 2019-12-11 17:51:24
问题 When the user edits a record, a XAML Popup shows a small form. The software keyboard appears when the user gives focus to a TextBox. This is good. OnKeyDown (if Enter ) I commit the user's changes. After the changes are committed, I hide the XAML Popup. The SIP remains visible even though the form is invisible. What is the correct way to handle this scenario? PS: this ( Show/Hide Keyboard programmatically on windows8 ) is not a solution to this problem. That's because the question is wanting

MessageDialog closes Popup

ぃ、小莉子 提交于 2019-12-11 17:48:51
问题 in my Popup windows (contains game options control) I have "Reset HighScores" Button. Button fire a MessageDialog with a TextBlock "Are you sure that ..." and two Buttons "Yes" and "No". However, when MessageDialog opens, Popup closes. Do you know how to make popup still alive? 回答1: I was able to get around this using an Action delegate as a callback for when the MessageDialog is closed. The key is to call the Action after an await on MessageDialog 's ShowAsync in an async function. Another

Sign in to multiple Microsoft account in Windows Store app

≯℡__Kan透↙ 提交于 2019-12-11 17:44:33
问题 Is it possible to: sign-in to multiple Microsoft accounts in a Windows Store app? Mail app does it* sign-in to Microsoft account that is not the one used for logging in to Windows? Store app does it* I tried something like the following (taken from Live SDK sample code) but it only sign me in with the account I used to log in to Windows var client = new LiveAuthClient(); var result = await client.LoginAsync(new[] { "wl.basic" }); if (result.Status == LiveConnectSessionStatus.Connected) { this

Accessing files from Windows Store App

流过昼夜 提交于 2019-12-11 16:20:53
问题 I'm working in Windows 8 Operating System building Windows Store apps. I'm trying to access one XML file(present within the solution) via the code below. var file = System.Xml.Linq.XDocument.Load(@"E:\Gowtham\Data.xml"); But I'm getting "Access to the path 'E:\Gowtham\Data.xml' is denied.'" exception. I tried all possible ways to remove the read-only attribute of the folder and the file but no use. I used command prompt to change the attributes of the file, also I tried manually but the read

Why would my side-loaded Windows Store app go no further than the splash screen?

大憨熊 提交于 2019-12-11 16:08:26
问题 I have a Windows Store App that, of course, runs fine on my dev machine. After creating the package to side load for testing, I installed it on another (desktop) machine. Using the instructions for side-loading contained on pages 25 and 26 of Brundritt's free ebook "Location Intelligence for Windows Store Apps", my app seems to install just fine, except that the app is not added to the Windows 8.1 start screen at the end, as expected. Nevertheless, I can find the app via the Search