uwp

Random access data virtualization with FlipView

北城以北 提交于 2020-01-05 04:27:31
问题 Does the FlipView control (I'm programming Universal Windows) support binding to a random access (virtualized) data source? The Microsoft docs ListView and GridView data virtualization suggest that it works for grid and list view but say nothing about FlipView. I have a grid working against a FileDataSource collection taken from the Universal Windows samples collection but the Flipview just displays blank pages when I try to bind it to it's own copy of the same data source -- see my previous

How to exit or close an Javascript UWP app programmatically? (Windows 10)

Deadly 提交于 2020-01-05 04:04:51
问题 I made a game and it needs it own exit button. I was not able to use the CoreApplication.Exit() static method here. There is no CoreApplication class in Windows.ApplicationModel.Core namespace in Javascript Applications. 回答1: CoreApplication.Exit is provided only for testing purposes. If you want to exit app you can close current window window.close(); Important note (from MSDN): If you use window.close, it appears as a crash to the user and is logged as a crash in the developer’s telemetry

ContentDialog max width

孤街浪徒 提交于 2020-01-05 04:04:10
问题 I'm trying to create a settings menu in my app like this I know how to do it but I have a problem with the width on content dialog, apparently there is a limit on width. Here's code for my content dialog: Title="" Margin="12,0,-12,0" HorizontalAlignment="Stretch" Width="800" Height="600" VerticalAlignment="Stretch" Background="{x:Null}"> <Grid x:Name="Main" ScrollViewer.VerticalScrollBarVisibility="Auto" Width="800"> <Grid.RowDefinitions> <RowDefinition Height="58"/> <RowDefinition Height="58

XAML ListView ItemContainer Height

╄→尐↘猪︶ㄣ 提交于 2020-01-05 03:00:13
问题 I want to Change the Height of the ItemContainer and not the Height of the Item itself the Container is in a ListView What I want to Change: To Something like this: The structur of the Code Looks like this: <ListView> <ListView.ItemTemplate> <DataTemplate> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition/> </Grid.ColumnDefinitions> <TextBlock Text="{Binding A}" Grid.Column="0"/> <TextBlock Text="{Binding B}" Grid.Column="1"/> </Grid> </DataTemplate> </ListView

How to receive scriptNotify from html in appdata on UWP c#

僤鯓⒐⒋嵵緔 提交于 2020-01-05 00:53:08
问题 Windows won't let my WebView_ScriptNotify Event receive a call if the html is loaded from ms-appdata. I'm aware that I can use the ms-appx-web protocol to load such a file from my app bundle, but this is no option because the data to show are downloaded after install of the app. I also can't just use webView.navigateToString because this won't include the referenced libraries in the html file. Currently I'm trying something like this in my Class.xaml.cs WebView webView = new WebView();

How to make a class that can be added to the Windows.Foundation.Collections.ValueSet

依然范特西╮ 提交于 2020-01-04 15:27:15
问题 I am making a UWP application that utilizes an AppServiceConnection to send data to a COM style application. The AppServiceConnection.SendMessageAsync() takes a type of Windows.Foundation.Collections.ValueSet The ValueSet class is a collection, similar to a dictionary that stores KeyValuePairs of types <string, object> I am having trouble adding data to the ValueSet, and every time I attempt to add an object I receive the error: "Data of this type is not supported. (Exception from HRESULT:

How to make a class that can be added to the Windows.Foundation.Collections.ValueSet

倖福魔咒の 提交于 2020-01-04 15:26:51
问题 I am making a UWP application that utilizes an AppServiceConnection to send data to a COM style application. The AppServiceConnection.SendMessageAsync() takes a type of Windows.Foundation.Collections.ValueSet The ValueSet class is a collection, similar to a dictionary that stores KeyValuePairs of types <string, object> I am having trouble adding data to the ValueSet, and every time I attempt to add an object I receive the error: "Data of this type is not supported. (Exception from HRESULT:

c# uwp tooltip placement property not updating

江枫思渺然 提交于 2020-01-04 14:09:18
问题 In C# UWP I am creating custom tooltip style. I have changed the default style of tooltip as below. <Style TargetType="ToolTip"> <Setter Property="Foreground" Value="White" /> <Setter Property="Background" Value="{ThemeResource SystemControlBackgroundChromeMediumLowBrush}" /> <Setter Property="BorderBrush" Value="{ThemeResource SystemControlForegroundChromeHighBrush}" /> <Setter Property="BorderThickness" Value="{ThemeResource ToolTipBorderThemeThickness}" /> <Setter Property="FontSize" Value

Converting a WriteableBitmap image ToArray in UWP

荒凉一梦 提交于 2020-01-04 14:03:56
问题 I am accessing an image from a blob storage on my azure service. I am returning the uri for the image and then uses HttpClient to try and download it. The uri is verified to be correct. using (HttpClient client = new HttpClient()) { try { HttpResponseMessage response = await client.GetAsync(new Uri(((App)Application.Current).results.statsInformation.ImageBlob.ImageUri, UriKind.RelativeOrAbsolute)); if (response != null && response.StatusCode == HttpStatusCode.OK) { using (var stream = await

How to direct shared path to Microsoft.Data.SQLite Connection String? (UWP)

半世苍凉 提交于 2020-01-04 13:51:26
问题 i'm making 2 UWP apps, and i want to make them share 1 DB. i'm using Microsoft.Data.SQLite however, is there any way to share the same DB?? SqliteConnection db = new SqliteConnection("Filename=data.db")); "Filename=data.db" path was c:\Users(user name)\AppData\Local\Packages(App ID)\LocalState\data.db However, I know UWP app can only access that c:\Users\ (username)\AppData\Local\Packages(App ID)\LocalState\ folder except shared app data folders. So, can you tell me how to direct the shared