Questions tagged [uwp-xaml]

This tag is for the XAML UI framework specific to Windows-Store-Apps on Windows 10, part of the Universal Windows Platform (UWP).

This tag is for the XAML UI framework (codename “Jupiter”) specific to Universal Windows Platform (UWP - see ). UWP XAML can also be used to build Windows Store Apps. UWP XAML supports .NET languages, C++/CX and C++/WinRT. The UWP XAML API is an evolution of Silverlight XAML API which targets cross-browser applications, which in turn is an evolution of WPF XAML which targets desktop applications. It has formerly been sometimes called WinRT XAML until the term was succeeded by "UWP" in Windows 10.

3049 questions
32
votes
7 answers

Maximum number of lines for a Wrap TextBlock

I have a TextBlock with the following setting: TextWrapping="Wrap" Can I determine the maximum number of lines? for example consider the following string TextBlock.Text: This is a very good horse under the blackboard!! It currently has been shows…
MBZ
  • 26,084
  • 47
  • 114
  • 191
25
votes
2 answers

When to use a templated control over a UserControl?

I was looking some tutorials on how to create custom controls in WinRT, and I have a question. Let's say I want to create a simple control that contains some stuff, like a Grid with an image on the left and a couple of TextBlocks on the right. I…
Sergio0694
  • 4,447
  • 3
  • 31
  • 58
24
votes
1 answer

UWP xaml: How to display a button with icon and text in it?

How can I display an image/icon AND text in a button?
24
votes
2 answers

Trigger element (XAML) is not supported in a UWP project

I'm developing a Universal Windows application for Windows 10 and one of the first things I found is that the Trigger element (XAML) is not supported when styling images. Here is the code I am trying to implement: Sorry I had to use an image here,…
Ray
  • 4,679
  • 10
  • 46
  • 92
22
votes
1 answer

UWP: ListView ItemClick not work

I have to do a Master/Detail in UWP 1- If you're in Laptop: The responsible GridView of show the data of this person appear. So when you select a item is binded to ViewModel.
user7332139
17
votes
4 answers

UWP Button Changes Colors when Mouse hovers over

I am trying to create a UWP button which will change background color when the mouse pointer hovers over it. The trouble I am having is that by default, it seems to already do this, but not to the color I want. When I hover over my button, which is…
Guy Cassetta
  • 171
  • 1
  • 1
  • 3
17
votes
5 answers

How to make scrollviewer work with Height set to Auto in WPF?

I have learned that if the height of a grid row, where the ScrollViewer resides, is set as Auto, the vertical scroll bar will not take effect since the actual size of the ScrollViewer can be larger than the height in sight. So in order to make the…
tete
  • 4,859
  • 11
  • 50
  • 81
16
votes
1 answer

UWP PDF printing

Is there a way to print PDF from UWP application? Other than rendering it as png or BitmapImage. I had look at Microsoft printing sample and pdf rendering sample to achieve printing pdf by rendering it into bitmapimage. But, it looses the quality of…
Vignesh
  • 1,824
  • 2
  • 10
  • 27
16
votes
4 answers

Remove Underline from HyperlinkButton in UWP XAML

I need to remove the underline in the content of HyperLinkButton. TextDecorations does not exist in this XAML element.
fipcurren88
  • 701
  • 5
  • 26
15
votes
2 answers

Is there a good overview of the differences between the various XAML dialects

While developing a universal windows app (uwp) I frequently need to look up how to do different things in XAML. One problem is, that all too often I end up with a solution for WPF or Silverlight or Windows Phone which is not applicable to an UWP…
stefan.s
  • 3,489
  • 2
  • 30
  • 44
13
votes
4 answers

Missing definition for UseSqlite in DbContextOptionsBuilder class of Microsoft.EntityFrameworkCore.Tool

I'm trying to write a simple phone app using UWP that will insert an image from a Windows folder location into a table on SQLite and view it on the Windows phone. I found this article on technet forum that I am using for a…
M.Ridha
  • 483
  • 1
  • 6
  • 21
13
votes
5 answers

How to ensure UWP app is always full screen on launch?

Is there a way (either C# or XAML) I can maximize a UWP app window even after I resized and closed it previously on desktop? I have tried with ApplicationViewWindowingMode.FullScreen but this makes the app go entire full screen and covers the…
Jessica
  • 2,057
  • 1
  • 15
  • 24
13
votes
8 answers

Bind UWP ComboBox ItemsSource to Enum

It's possible to use the ObjectDataProvider in a WPF application to bind an enum's string values to a ComboBox's ItemsSource, as evidenced in this question. However, when using a similar snippet in a UWP application, the ff. error message is…
miguelarcilla
  • 1,426
  • 1
  • 20
  • 38
13
votes
3 answers

UWP: Compile error when using x:DataType property on DataTemplate

I'm creating a new UWP Blank App project targeting the Anniversary Build of Windows. Here's the markup of my only page (which is named MainPage.xaml by the default…
Jammer
  • 441
  • 5
  • 15
12
votes
1 answer

broadFileSystemAccess UWP

I'm trying to use broadFileSystemAccess Capability for UWP apps, But broadFileSystemAccess capability is not listed in my list of capabilites in Package.appxmanifest. My min and max target version is 1803, build 17134, Please help me with this.
Saravana Kumar
  • 341
  • 3
  • 14
1
2 3
99 100