Microsoft Store Add-Ons bulk sale
I have an app in the microsoft store and store-managed add-ons are available for it. I wanted to offer my customers to buy the store-managed consumable for a reduced price, if they buy more. e.g. if it was gold, 1 coin would cost $5 and 10 coins $40.
Is there an other way to achieve this than using developer-managed consumables?
Thank you!
1 answer
-
answered 2018-04-17 05:53
Sunteen Wu - MSFT
Windows Dev Center provide feature for Sale pricing, please check Put apps and add-ons on sale.During the time period that your product is on sale, customers will be able to purchase it at the lower price during the time period that you have selected.
Otherwise, you may try to create several different add-ons for different prices.
See also questions close to this topic
-
How do I animate a Matrix4x4 in UWP composition?
Using an explicit time-based animation, I can animate an offset like this:
var animation = compositor.CreateScalarKeyFrameAnimation(); animation.InsertKeyFrame(1f, 100); animation.Duration = TimeSpan.FromMilliseconds(250); visual.StartAnimation("Offset.Y", animation);
Is there the same thing but for the
Matrix4x4 TransformMatrix
property? There is no method toCreateMatrix4x4KeyFrameAnimation()
or anything similar.How can I use time to LERP to a value on the
TransformMatrix
using the composition layer? -
UWP - Event inside a DataTemplate
I have a data template in a listview on my UWP Project, inside this DataTemplate exist a TextBox and a TextBlock. In the TextBox the user can change the properties of the element and a TextBlock named IsValid should show the validation result.
The TextBox have the event TextChanged, where a validator read the user entry data and show the result of the validation on the IsValid TextBlock, but when I create the event it dont exist because is in the DataTemplate.
How I can create this event where the TextChanged event show the validation result on the IsValid Textblock inside of the DataTemplate?
There is my code:
My XAML:
<ListView x:Name="_ListView" SelectionMode="Single" > <ListView.ItemContainerStyle> <Style TargetType="ListViewItem"> <Setter Property="HorizontalContentAlignment" Value="Stretch"/> </Style> </ListView.ItemContainerStyle> <ListView.ItemTemplate> <DataTemplate> <Grid ScrollViewer.VerticalScrollBarVisibility="Auto"> <Grid.ColumnDefinitions> <ColumnDefinition Width="auto"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="40"/> </Grid.RowDefinitions> <TextBlock Grid.Column="0" Text="{Binding Path=Name}"/> <Grid Grid.Column="1"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="auto"/> </Grid.ColumnDefinitions> <TextBox Grid.Column="0" x:Name="TextBox_Code" Text="{Binding Path=Code}" TextChanged="TextBox_Code_TextChanged"/> <TextBlock Grid.Column="1" x:Name="IsValid_Code"/> </Grid> </Grid> </DataTemplate> </ListView.ItemTemplate> </ListView>
My XAML.cs:
public void Work() { // Create and fill the list. var list = new List<Tank>(); list.Add(new Tank() { Name = "A1", Code = "324.85.C.421", }); list.Add(new Tank() { Name = "A2", Code = "454.85.D.802", }); _ListView.ItemsSource = list; } private void TextBox_Code_TextChanged(object sender, TextChangedEventArgs e) { var _TextBox = sender as TextBox; var _Text = _TextBox.Text; var _Tank = _TextBox.DataContext as Tank; if (Validator(_Text)) { _Tank.Code = _Text; // Should show the sucess of the input text. // IsValid_Code.Text = string.Empty; } else { // Should show the error of the input text. // IsValid_Code.Text = _Text.Replace("❌", string.Empty)+ "❌"; } } private bool Validator(string _Text) { // Validate all parts of the code. string[] _CodeArray = _Text.Split('.'); if (_CodeArray.Length == 4) { //. //. //. return false; } return false; } public class Tank { public string Name { get; set; } public string Code { get; set; } }
-
Extream difficulty getting UWP MS-Test to work in a stable manner
I have a windows 10 UWP app that I would like to develop, however after I create a new project targeting Build 15063 till 17125.
- I create the Class Library (Universal Windows) as well as the Unit Test App
- I then set the capabilities I need in the test app
- Then I update the nuget packages, I get my first hint that my day will be a …. as the Microsoft.NET.Test.Sdk fails to update. the error i get is:
Error Cannot modify an evaluated object originating in an imported file "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\WindowsXaml\v15.0\Microsoft.Windows.UI.Xaml.Common.targets".
Does any one have a fix on this issue?
Thanks
Walter
-
How to undo command `DISM /Online /Remove-ProvisionedAppxPackage`?
I bought a new HP laptop and used PS to try and remove a bunch of the bloatware and accidentally removed the Windows Store and I've tried tons of things to fix it including every recovery option, adding new users, various PS, etc.
I ran the following commands that I want to undo:
DISM /Online /Remove-ProvisionedAppxPackage /PackageName:"Microsoft.StorePurchaseApp_11803.1001.813.0_neutral_~_8wekyb3d8bbwe" DISM /Online /Remove-ProvisionedAppxPackage /PackageName:"Microsoft.Wallet_2.2.18065.0_neutral_~_8wekyb3d8bbwe" DISM /Online /Remove-ProvisionedAppxPackage /PackageName:"Microsoft.Windows.Photos_2018.18022.15810.1000_neutral_~_8wekyb3d8bbwe" DISM /Online /Remove-ProvisionedAppxPackage /PackageName:"Microsoft.WindowsAlarms_2018.303.908.1000_neutral_~_8wekyb3d8bbwe" DISM /Online /Remove-ProvisionedAppxPackage /PackageName:"Microsoft.WindowsCalculator_2018.312.1947.1000_neutral_~_8wekyb3d8bbwe" DISM /Online /Remove-ProvisionedAppxPackage /PackageName:"Microsoft.WindowsCamera_2018.227.30.1000_neutral_~_8wekyb3d8bbwe" DISM /Online /Remove-ProvisionedAppxPackage /PackageName:"microsoft.windowscommunicationsapps_2015.9126.21535.0_neutral_~_8wekyb3d8bbwe" DISM /Online /Remove-ProvisionedAppxPackage /PackageName:"Microsoft.WindowsFeedbackHub_2018.323.50.1000_neutral_~_8wekyb3d8bbwe" DISM /Online /Remove-ProvisionedAppxPackage /PackageName:"Microsoft.WindowsMaps_2018.216.2133.1000_neutral_~_8wekyb3d8bbwe" DISM /Online /Remove-ProvisionedAppxPackage /PackageName:"Microsoft.WindowsSoundRecorder_2018.303.921.1000_neutral_~_8wekyb3d8bbwe" DISM /Online /Remove-ProvisionedAppxPackage /PackageName:"Microsoft.WindowsStore_11803.1001.813.0_neutral_~_8wekyb3d8bbwe"
I've tried replacing
/Remove-ProvisionedAppxPackage
with/Add-ProvisionedAppxPackage
and it tells meError 87
The parameter is incorrect
The various examples I find online are showing extra file paths that I don't know where to obtain? Is there some obvious way to just reverse it?
-
Desktop App Converter Error E_MANIFEST_USE_DEFAULT_VALUE_FAILED
I am trying to convert my app for the windows store using Desktop App Converter and I am stuck with this command which gives me the same error no matter what I try, can anyone have a clue what am I doing wrong here?
in powershell command line:
$binDirectory = "C:\appIn\appSetup.msi" $appExecutable = "app.exe" $packageDirectory = "C:\appOut" $packageName = "appPackName" $publisher = "CN=DA7DD138-DCEF-7891-1234-A12C7B024C71" $appDisplayName = "App Name" $appDescription = "Literally 1 click app for..." $packageDisplayName = "Literally 1 click app for..." $packagePublisherDisplayName = "AppdispName" $version = "1.0.0.0" cls; DesktopAppConverter -Installer $binDirectory -AppExecutable $appExecutable -Destination $packageDirectory -PackageName $packageName -Publisher $publisher -AppDisplayName $appDisplayName -AppDescription $appDescription -PackageDisplayName $packageDisplayName -PackagePublisherDisplayName $packagePublisherDisplayName -Verbose -Version $version
the error I get is
Inner Exception[0]: System.ArgumentException: DesktopAppConverter : error 'E_MANIFEST_USE_DEFAULT_VALUE_FAILED': Property 'Package.Applications.Application.Id' in AppxManifest.xml could not be set to the default value 'appPackName' given for parameter '-PackageName'. Please visit: 'https://aka.ms/appid' for more info on the Data type requirements for the property, and retry with a valid value or pass in a value for optional parameter ’-AppId’ to override the default VERBOSE: The full error record is saved in the logs at C:\DesktopAppConverter\be4346f6-b6f9-4d6d-8864-97a7834a247f\logs
I have tried all combinations for package name, with values found in the dev center... nothing works; what am I doing wrong here?
thank you
-
I want to send and retrive image form sql server using web service in WPF or Windows Store App in c#
I'm developing an application and I'd like to display the image stored in the DB in an Image through web service. This is my web service current code for sending picture to App:
Connection con = new Connection(); con.Start(); DataTable dt = con.Select("Select ID,Picture ,Customer_Name,Contact_No,Time_In from Customers_Data WHERE ( Date >= dateadd(day,datediff(day,7,GETDATE()),0) AND Date < dateadd(day,datediff(day,0,GETDATE()),1)) And (Sale_Made='No') "); con.Stop(); List<Customer> ro = new List<Customer>(); foreach (DataRow item in dt.Rows) { string filePath = item["Picture"].ToString(); FileStream fs = new FileStream(filePath, FileMode.Open); byte[] result; using (Stream stream = fs) { using (var memoryStream = new MemoryStream()) { stream.CopyTo(memoryStream); result = memoryStream.ToArray(); // ProfilePicture = result, } } ro.Add(new Customer { Id = item["ID"].ToString(), ProfilePicture = result, Name = item["Customer_Name"].ToString(), Contact = item["Contact_No"].ToString(), Time_In = item["Time_In"].ToString() }); } return ro;
Does anyone know how can I display it? Thanks.
-
Google Sheets Analytics add-on shows different number of users but same number of sessions
Set-up
I'm using the Google Sheets Analytics add-on to import my GA data in a Gsheet.
I'm pulling this month's sessions and users via the following simple configuration,
This works fine, the data is pulled.
Problem
The
session
number pulled into the Gsheet equals thesession
number displayed in the GA dashboard.The
user
number, however, differs roughly 10% with theuser
number displayed in the GA dashboard.I've read some answers remarking differences caused by
sampling
. I'm not entirely sure what that means. Also, those answers were given to people who work directly with the API, not with this Google Sheet add-on. I don't know how to account for thissampling
in the add-on.I also don't understand why the
session
number does equal why theuser
number doesn't.Lastly, I've double checked with data from last month, and the same occurs:
session
number equals anduser
number is about 10% off.What is going on? How can I ensure the add-on pulls the same user number as displayed in the GA dashboard?
-
Modify an existing Google Docs Add On
Is it possible to modify an existing Google Docs Add-On and/or make changes to an app who's Author who has passed away? How to find a Developer to help?