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
5
votes
0 answers

How do I define a constant in C# and use it in XAML?

I try to define constants for string values whenever necessary to avoid burying "magic strings" in the code. I recently found myself needing to define a custom format string for a converter, so I defined public const string MyFormat = "a"; in the…
Jeremiah Mercier
  • 451
  • 5
  • 18
5
votes
1 answer

Set UWP NavigationViewItem Icon from code behind

I want to be able to dynamically add NavigationViewItems in my UWP app, but I can't figure out how to set the icons. NavigationViewItem.Icon in XAML is formatted: Icon="Page", which looks like it's using the Symbol enum. Except C# says that it's an…
Ben
  • 394
  • 7
  • 13
5
votes
1 answer

Whats the difference in using Functions in x:Bind and a IValueConverter?

I have worked on both Functions in x:Bind (which is introduced in windows 10 build 14393) and IValueConverter to bind converted values to a property of an UI element. But, I would like to know which is right or efficient procedure to bind the…
Vignesh
  • 1,824
  • 2
  • 10
  • 27
5
votes
1 answer

UWP listview load more data when listview scrolling reaches to last item / infinite scrolling listview

I have a listview in my UWP (Windows 10) application. Ideally it will load 100 items when application starts. When list is scrolled to bottom i.e. to the last item in listview, API call will go & will load another 100 items & so on.. Here is my code…
ace
  • 225
  • 4
  • 18
5
votes
1 answer

UWP Image sometimes not visible until after page resize

I've got a pretty standard UWP xaml windows 10 app which contains several images on the main page about 50 i'd say. I've defined the images in the normal way using the Image xaml tag and specifying the source property of the image to reference…
Matt
  • 53
  • 4
5
votes
3 answers

NavigationView and additional settings button

I would like to add new item right before settings item (button) in NavigationView (https://learn.microsoft.com/en-us/windows/uwp/design/controls-and-patterns/navigationview). I have no idea how to add such functionality I've tried to modify style…
Artur Siwiak
  • 352
  • 3
  • 14
5
votes
2 answers

How to extend a XAML control with new properties properly?

I have a new philosophic question, which aims at underline differences between old WPF patterns and the new UWP ones. I would like to extend a standard control (e.g. a Button) with new properties, in UWP environment, not WPF. In WPF, I noticed that…
Luca Lindholm
  • 813
  • 1
  • 9
  • 23
5
votes
1 answer

UWP - Reference StaticResource from different style resource dictionary: Failed to assign to property 'Windows.UI.Xaml.ResourceDictionary.Source'

Hello my team and I recently started developing an win10 uwp application. Application will have a lot of views and components so heavy use of styles is expected, so we need to organize our styles through file/folder structure we did this using…
ivke
  • 536
  • 8
  • 18
5
votes
2 answers

Application title bar disappeared - UWP app

I have na uwp app (published in Windows/Microsoft Store), and the app title bar is normally this: I was doing some tests in my app (to test the fluent design system) and I made some changes and I did not notice, because now it appears like…
Fernando Sousa
  • 255
  • 2
  • 8
5
votes
2 answers

How to pass progress reports from inner function to main function?

I am currently trying to pass progress (Using Iprogress and Progress) from a inner function to the main function. Everything works after the inner function completes. However, I am retrieving/downloading some data using EBay's API's (EBay's finding…
jeffery
  • 322
  • 4
  • 19
5
votes
2 answers

Alternate color for listview item UWP

I have a class to color alternate the background of item, but if I delete a item, the background color does not update. Is there a way to refresh the background color after deleting an item? The code for alterante color. class listview: public class…
Res
  • 115
  • 1
  • 3
5
votes
1 answer

UWP ComboBox SelectedItem does not bind as expected in flyout

I fail to use the SelectedItem property of the Combobox. An item is correctly bound and displayed, but can not be changed to another one. If one tries to select an other item, the item list is correctly closed, but SelectedItem is not called (nor…
Florian Moser
  • 2,583
  • 1
  • 30
  • 40
5
votes
2 answers

How to change amount of scroll through Scroll Viewer in UWP XAML/C#?

I am using ListView to display some items, let say of height 100. In case of many items, the Vertical scroll bar is displayed with ScrollViewer properties. However, when a user scrolls through the list, it is getting scrolled half of screen at times…
Chirag Rupani
  • 1,675
  • 1
  • 17
  • 37
5
votes
1 answer

Centering RelativePanels in UWP C#

I'm trying to set HorizontalAlignment and VerticalAlignment to Center so that the RelativePanel will be right in the middle of the UWP app. There are children items inside the RelativePanel, and the children are supposed to be centered inside the…
Alsan Ali
  • 187
  • 2
  • 10
5
votes
1 answer

Button VisualState Focused not working

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?…
Gema Beltran
  • 171
  • 9