windows-8.1

Tutorial for a Top AppBar / NavigationBar

蹲街弑〆低调 提交于 2019-12-13 00:21:24
问题 I tried do create a navigation bar like in the Windows News App or Food/Health-App, that appears on swiping from the bottom or rightclicking. I wanted to do it the mvvm-way: Alle views define an ApplicationBar that contains a UserControl. This contains a horizontal ItemControl which is bound to a ViewModel. This ViewModel contains all the stuff I need to create the navigation buttons. On every Page I tell the ViewModel my Page's name and it gives me buttons with the button of the current Page

Windows Phone 7.1 emulator not working on Visual Studio 2013, Windows 8.1

对着背影说爱祢 提交于 2019-12-13 00:20:49
问题 I tried to run the Windows Phone 7.1 emulator on Visual Studio 2013 on Windows 8.1. When I start the emulator, it shows the following error. Followed by this error when I press "Run the program without getting help": WHY WINDOWS PHONE 7.1 SDK, NOT WINDOWS PHONE 8: The reason why I am setting this up as such is because I want to develop XNA games for Windows Phone 7 to 8. Hence the reason why I am still using the Windows Phone 7.1 developer kit. I have previously created and published XNA

How to build Windows 8.1 app for Store (appxupload) in PowerShell?

假如想象 提交于 2019-12-12 23:35:41
问题 Typically when I want to build Windows 8.1 or Windows Phone 8.1 app for Store I open Visual Studio 2015 and in Solution Explorer I start Store -> Create App Packages.. wizard. I'd like to be able to produce identical signed .appxupload packages using PowerShell ideally just providing the target project file, target platform(s), build configuration and version number. There is a page for packaging and deployment, but I just don't know what is the proper command order to use. There must be a

Nested Repeaters Using Table Tags

戏子无情 提交于 2019-12-12 20:31:46
问题 I am using the following code to try and use nested repeaters in WinJS: <table class="grid" id="rptCustomerHistory" data-win-control="WinJS.UI.Repeater"> <thead> <tr> <th colspan="4" class="groupHeader" data-win-bind="textContent: GroupDate.DateTime BindingConverter.toYearMonthDate"></th> </tr> </thead> <tbody data-win-control="WinJS.UI.Repeater" data-win-bind="winControl.data: ch"> <tr> <td data-win-bind="textContent: ContactDate.DateTime BindingConverter.toshortdate"></td> <td data-win-bind

WriteableBitmap SaveJpeg missing for universal apps

拟墨画扇 提交于 2019-12-12 17:37:49
问题 I am developing an universal app, in my shared code i am trying to download the image from net and save the image to LocalFolder. I am using HttpClient to download the images from user given urls and reading the client response to save the image. I am using below code to save, but couldn't able to find Writeable SaveJpeg method. HttpResponseMessage response = await httpClient.GetAsync(imageUri); await Task.Run(async () => { if (response.IsSuccessStatusCode) { // save image locally

The DataTemplate in HubSection doesn't get full height

北城以北 提交于 2019-12-12 15:48:37
问题 I have the following code: <HubSection x:Name="modules_section" ...> <DataTemplate> <StackPanel Orientation="Vertical"> .................................. How can I get the StackPanel to take the full height of the HubSection? VerticalAlignment="Stretch" doesn't do the job. I also tried to use binding via <StackPanel Height={Binding ElementName=modules_section, Path=ActualHeight}" ...> but the Actualheight of the hub section seems to be 0 (I also tried to set it in code-behind and debugged to

How to get thumbnail from a video in Windows Store app?

走远了吗. 提交于 2019-12-12 15:30:32
问题 I am currently working on an app in which there is feature to record video. I am aware about how to record the video and save it in localFolder of app. My problem is that I need to show a thumbnail to user after he records the video. So, for that I want to extract the first frame from the recorded video. The final video is stored in StorageFile object but I am not aware how to get image from StorageFile object. Please can anyone suggest with some sample code how can I do that. I am using

RestSharp: Could not create SSL/TLS secure channel

自古美人都是妖i 提交于 2019-12-12 13:13:50
问题 I'm trying to use RestSharp in Visual Studio 2012 Express on a fresh install of Windows 8.1. The API I'm trying to use supports only RC4-SHA for SSL. The certificate is valid. var client = new RestClient(); client.BaseUrl = "https://teststore.mybigcommerce.com/api/v2/"; client.Authenticator = new HttpBasicAuthenticator("username", "key"); var request = new RestRequest(); request.Resource = "time.json"; IRestResponse response = client.Execute(bcrequest); I keep getting an error from the client

Meteor - Can't run tasklist.exe on Windows 8.1

坚强是说给别人听的谎言 提交于 2019-12-12 10:43:46
问题 I installed the newest version of Meteor (v 1.1.0.2) using the Windows Installer. I am using Windows 8.1. Everything seems to have installed correctly as I am able to create new meteor projects using meteor create projectName . When I enter the project and run meteor , it crashes with the following error: C:\projects λ meteor create projectName projectName: created. To run your new app: cd projectName meteor C:\projects λ cd projectName\ C:\projects\projectName λ meteor [[[[[ C:\projects

Change the Foreground color of a TextBlock inside a ListView's DataTemplate when the item is selected

情到浓时终转凉″ 提交于 2019-12-12 10:26:34
问题 I'm building a Windows Store app with C#/XAML. I have a simple ListView bound to an ItemsSource. There's a DataTemplate which defines the structure of each item and that has a ContentControl and a TextBlock in it. I wish to change the Foreground colour of the TextBlock when the item is selected. Does anyone know how I can do this? <ListView Grid.Column="1" ItemsSource="{Binding Categories}" ItemContainerStyle="{StaticResource CategoryListViewItemStyle}" Background="{StaticResource