uwp-xaml

How can i change the Package family name in uwp windows 10

偶尔善良 提交于 2019-12-09 00:36:16
问题 I want to change the key mentioned in fig., when i change the certificate file it changes to the another temporary key, and the publisher folder is creating with this key as name. but i want it as a meaningful name. is it possible.? if anybody knows, please help me. 回答1: Together, these elements declare the identity of your app, establishing the "package family" to which all of its packages belong. Individual packages will have additional details, such as architecture and version. The package

How to use `MediaElement` to play sound in Android?

耗尽温柔 提交于 2019-12-08 19:51:29
I'm using MediaElement to play sound in an Uno-Platform project. It plays well in the UWP project but doesn't work in the Android project. The audio file is located in the shared project as Exclude from project , and is linked in the UWP project as Content and in the Droid project as AndroidAsset . XAML: <MediaElement Source="/Assets/MySound.wav"/> I've also tried accessing it programmatically set the Source to ms-appx:///Assets/MySound.wav with no success. MediaPlayerElement is now available in Uno (See MediaPlayerElement documentation) As of today, local resources are not supported for iOS

An recommendations on displaying HTML without WebView

≡放荡痞女 提交于 2019-12-08 12:15:30
问题 The WebView control cannot be transparent. In addition, it sizes in ways that don't enable simple XAML development, but complex sniffing and resizing. I have a block of HTML that needs to be displayed in a simple, nice way. Is there any way to do this without WebView and parsing it all by hand? 来源: https://stackoverflow.com/questions/40183377/an-recommendations-on-displaying-html-without-webview

Scaling InkStrokes in UWP

醉酒当歌 提交于 2019-12-08 11:18:42
问题 I've got a simple demo application that uses an image as the background of an InkCanvas and I scale the strokes when the display of the image is resized so that they remain in the same place relative to the image. Since you can draw -> resize -> draw -> resize -> draw this means I have to scale each stroke a different amount each time by assigning the PointTransform on each stroke. float thisScale = (float)(scale / _prevScale); foreach (InkStroke stroke in myCanvas.InkPresenter

Xamarin Form - How to upload,Delete,Download Files From Google Drive in UWP

南笙酒味 提交于 2019-12-08 08:50:58
问题 Hello friend I want to upload an images,files on Google Drive. So I have installed the Google.Apis.Auth and Google.Apis.Drive.v3 nuget packages. I have also created the Client_secrete.json file by referring video https://www.youtube.com/watch?v=xtqpWG5KDXYNow . Question, how to use this Client_secrete.json file and upload, download, delete the files from the Google Drive in uwp ? :( Any idea then please share code or link. Thanks in advance :)... public static DriveService GetService() {

My UWP app won't read a txt file [duplicate]

浪尽此生 提交于 2019-12-08 06:02:30
问题 This question already has answers here : Windows 10 Universal App File/Directory Access (6 answers) Closed 2 years ago . I was wondering if anyone would know how to get an Universal Windows app to read a txt file. StreamReader lezer = new StreamReader(@"C:\Users\LotteDiesveld\Documents\Visual Studio 2015\Projects\Jaar 1\Periode 2\OIS 12\Eindopdracht\Personen.txt"); tbPersonen.Items.Add(lezer.ReadToEnd()); I've also tried this StorageFile file = await StorageFile.GetFileFromApplicationUriAsync

How to set the window's size in a Universal app?

不问归期 提交于 2019-12-08 02:45:24
问题 I use C# and XAML, and my main page begins like this : <Page x:Class="MyApp.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:MyApp" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" Height="754" Width="1018" MaxHeight="754" MaxWidth="1018" MinHeight="754" MinWidth="1018" mc:Ignorable="d"> <Grid> (...) </Grid> But

Button VisualState Focused not working

纵然是瞬间 提交于 2019-12-08 01:18:12
问题 I'm trying to change the font color of a button when the button is clicked. I have tried many different things but none have worked. This is the latest thing I tried and what I believe should be the answer but its not working. Can someone help? PointerOver isworking fine, but Focused is not doing anything when the button is clicked. <Style x:Key="ButtonStyle" TargetType="Button"> <Setter Property="Background" Value="Transparent" /> <Setter Property="Foreground" Value="Black" /> <Setter

Why is my ViewModel not found?

牧云@^-^@ 提交于 2019-12-07 20:38:44
问题 Why can't VS find my file? VS Error Image and Text: Severity Code Description Project File Line Suppression State Error CS0246 The type or namespace name 'AudioFile' could not be found (are you missing a using directive or an assembly reference?) reOrder C:\Users\kloud\Documents\Visual Studio 2015\Projects\reOrder\reOrder\ReorderPage.xaml.cs 27 Active I recreated the project to see if Visual Studio was doing something I couldn't see/understand and checked extensively with code that is working

how to change the font size of all text box within a grid, windows app uwp

爷,独闯天下 提交于 2019-12-07 20:17:36
问题 I know how to develop webpages with HTML and CSS, but I am new to the windows app development and I am trying to develop an universal windows platform (UWP) application. Lets say I have grid, <Grid Name="Grid1"> <VisualStateManager.VisualStateGroups> <VisualStateGroup> <VisualState x:Name="Normal"> <VisualState.StateTriggers> <AdaptiveTrigger MinWindowWidth="600" /> </VisualState.StateTriggers> <VisualState.Setters> <Setter Target="text1.FontSize" Value="12" /> <Setter Target="text2.FontSize"