win-universal-app

How to make a List of CheckBoxes like in the Alarm & Clock App

▼魔方 西西 提交于 2019-12-25 06:49:58
问题 How can i make such alist of checkboxes, that they are left aligned to the button, from where it opens, and provide a opening and closing Animation, like in the Alarm & Clock App in Windows 10? I tried with Popups and Flyouts, but there isnt the same effect. 回答1: It looks that this Control in the Alarm & Clock App is actually expanded from a ComboBox control. So we can use a ComboBox to do this, for example: <ComboBox x:Name="comboBox" VerticalAlignment="Center" HorizontalAlignment="Stretch"

Universal App MySQLConnector Queue execution error

≡放荡痞女 提交于 2019-12-25 06:44:39
问题 I try to Execute a queue to my database on my vserver with PHPAdmin and i get the Exception: Code: static string server = "999.999.999.235"; static string database = "admin_"; static string user = "root"; static string pswd = "secret"; public static void login() { string connectionString = "Server = " + server + ";database = "+ database + ";uid = " + user + ";password = " + pswd + ";" + "SslMode=None;" + "CharSet=utf8;"; using (MySqlConnection connection = new MySqlConnection(connectionString

Universal App MySQLConnector Queue execution error

拜拜、爱过 提交于 2019-12-25 06:42:09
问题 I try to Execute a queue to my database on my vserver with PHPAdmin and i get the Exception: Code: static string server = "999.999.999.235"; static string database = "admin_"; static string user = "root"; static string pswd = "secret"; public static void login() { string connectionString = "Server = " + server + ";database = "+ database + ";uid = " + user + ";password = " + pswd + ";" + "SslMode=None;" + "CharSet=utf8;"; using (MySqlConnection connection = new MySqlConnection(connectionString

Setting Visibility=“Collapsed” doesn't hide the Button. Update: Fixed by myself but I want to know the reason for the issue

那年仲夏 提交于 2019-12-25 06:37:27
问题 I am creating a custom transport controls. In that, I have added an AppBarButton. To change the visibility of that I have created a Property for it, but for some reason, it doesn't work. The AppBarButton is always visible. Code of the Property //To change Visibility for CompactOverlayButton public bool IsCompactOverlayButtonVisible { get { return compactOverlayButton != null && compactOverlayButton.Visibility == Visibility.Visible; } set { if (compactOverlayButton != null) //To neglect the

Universal Windows App Background Task “has exited with code 1 (0x1)”

∥☆過路亽.° 提交于 2019-12-25 06:29:12
问题 Scratching my head on this one. I've got a background task in my UWP application which is registered to run every 15 minutes (using TimeTrigger ) and whenever the internet becomes available (using a SystemTrigger ). I know for a fact that these are registered correctly as both appear in the "Lifecycle Events" when debugging using visual studio. Nevertheless, my code for registering them is below: bool registered1 = false; bool registered2 = false; foreach (var task in

How to bind a ListView with SelectionMode multiple to achieve MVVM using Behaviors SDK in Windows 8.1

这一生的挚爱 提交于 2019-12-25 06:21:19
问题 I have a Windows 8.1 application with a ListView with SelectionMode multiple(making the ListView allow the user to select multiple entries) I am trying to use Behaviors SDK from Microsoft <DataTemplate x:Key="DataItemTemplate"> <TextBlock Text="{Binding Name}" Margin="10,0,0,0"/> </DataTemplate> <ListView ItemsSource="{Binding Data}" SelectionMode="Multiple" ItemTemplate="{StaticResource DataItemTemplate}"> <Interactivity:Interaction.Behaviors> <Core:EventTriggerBehavior SourceObject="

How to parse xml data using c# via an UWP application

妖精的绣舞 提交于 2019-12-25 04:36:22
问题 can anyone please help me with to parse data from xml file(bot a local file in my pc ) . I really don't know what to do ..I think i should use httpclient since it's not a local file...i know i should've put some code snippets but it's really so messed up .. as i changed in i a lot .. thanks in advance First this the code i tried to use but it didn't work private async void Start_Click(object sender, RoutedEventArgs e) { Uri resourceAddress; // The value of 'AddressField' is set by the user

GridView displays first element different than all others - XAML, Win8.1, WinRT

让人想犯罪 __ 提交于 2019-12-25 04:28:14
问题 I'm using GridView in my Universal Apps project for display list of items. Each item is a User Control. First element always is rendered different than all others elements at the list! How to fix it? <GridView Grid.Row="1" x:Name="CategoriesGridView" Margin="120,20,0,20" SelectionMode="None" IsItemClickEnabled="False" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ItemsSource="{Binding CategoriesCollection}" ItemContainerStyle="{StaticResource GridViewItemStyle}"> <GridView.ItemTemplate>

Project targeting .NET Framework version 4.5.1 to Universal Windows 10

Deadly 提交于 2019-12-25 03:52:16
问题 I'm a beginner and I developed a working project in C# using Visual Studio. I targeted the project for .NET Framework version 4.5.1 and it works fine. Since it is written in C# I would like to extend it in order to make it work on every Windows device The problem I'm facing is the following. In my original project I had: using System; using System.Collections.Generic; using System.Diagnostics; using System.Drawing; using System.Globalization; using System.Linq; using System.Media; // for

Project targeting .NET Framework version 4.5.1 to Universal Windows 10

送分小仙女□ 提交于 2019-12-25 03:51:38
问题 I'm a beginner and I developed a working project in C# using Visual Studio. I targeted the project for .NET Framework version 4.5.1 and it works fine. Since it is written in C# I would like to extend it in order to make it work on every Windows device The problem I'm facing is the following. In my original project I had: using System; using System.Collections.Generic; using System.Diagnostics; using System.Drawing; using System.Globalization; using System.Linq; using System.Media; // for