Questions tagged [winrt-xaml]

This tag is for the XAML UI framework specific to Windows-Store-Apps on Windows-8. WinRT-XAML is a subset of the general XAML specification and a superset of Windows-Phone-8 XAML.

This tag is for the XAML UI framework (codename “Jupiter”) specific to Windows 8’s Windows Runtime (“WinRT”). WinRT XAML is used to build Windows Store Apps (codename “Metro Apps”). WinRT-XAML supports .Net languages and C++/CX. The WinRT 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. WinRT XAML is the superset of the XAML used for Windows Phone 8 applications.

3984 questions
21
votes
5 answers

Accessing background color of textblock

I found this example on MSDN that shows some ways to configure a textblock: A lot of it seems to work for me, but this part fails: textBlock.Background = Brushes.AntiqueWhite; The "Background" part is underscored in red and Visual Studio says:…
micahhoover
  • 2,101
  • 8
  • 33
  • 53
20
votes
4 answers

With compiled bindings (x:bind), why do I have to call Bindings.Update()?

I'm currently experimenting with the new compiled bindings and have reached (again) a point where I'm missing a pice in the puzzle: why do I have to call Bindings.Update? Until now, I thought implementing INotifyPropertyChanged is enough? In my…
ventiseis
  • 3,029
  • 11
  • 32
  • 49
18
votes
2 answers

How do I print WebView content in a Windows Store App?

I have a Metro App and I am attempting to Print the Content of a WebView control. Using the MSDN Print Sample as my source reference. I simply change the XAML in the printableArea as follows:
c0D3l0g1c
  • 3,020
  • 5
  • 33
  • 71
18
votes
3 answers

How do I de/serialize JSON in WinRT?

How do I take an object and convert it to a JSON string and then back into that object from a string, specifically, in WinRT for my Windows 8 Metro application?
Jerry Nixon
  • 31,313
  • 14
  • 117
  • 233
17
votes
1 answer

XAML error: "The property 'VisualTree' is set more than once"

I'm trying to put two Grids in a DataTemplate. I'm getting the following error with my code shown below. Error: "The property 'VisualTree' is set more than once"
John
  • 173
  • 1
  • 1
  • 5
17
votes
2 answers

How to debug VisualStateManager in runtime

There are very helpful tools out there to debug WPF applications in run-time like Snoop, WPF Inspector and Xaml Spy which allow you to sneak peek into running application and monitor property values, DataContext changes, routing events and even…
Sevenate
  • 6,221
  • 3
  • 49
  • 75
17
votes
1 answer

JavaScript error in WebView with Windows 8 Metro

I have a control on a page in my application. The user can pretty much enter whatever URL they like and have it display in this WebView. This is by design. The problem is, there are pages on the internet that throw JavaScript errors, and…
qJake
  • 16,821
  • 17
  • 83
  • 135
16
votes
1 answer

How do I declare a System data type in UWP/RT XAML?

I'm trying to access the system namespace for StaticResource variables in XAML on UWP. Here's (mostly) what I'm using:
Noppadet
  • 804
  • 9
  • 19
16
votes
5 answers

Hiding the ellipsis within an AppBar

When you create an AppBar or a CommandBar in a UWP app, there's always an ellipsis hiding near the side of the control, like so: I don't want it in my app but I haven't found any methods/properties within AppBarthat would help me get rid of it. It…
James Ko
  • 32,215
  • 30
  • 128
  • 239
16
votes
5 answers

How can I make SQLite work on Windows 10?

Yo, So I've been developing a Universal Windows Store app in Visual Studio 2013 on one machine, and wanted to continue developing it on an another machine running Windows 10 Technical Preview. The problem is that in Visual Studio 2015 Preview there…
user1930132
  • 221
  • 1
  • 2
  • 5
16
votes
2 answers

Change propety Canvas.Left and Canvas.Top in codebehind WinRT

ivamax9
  • 2,601
  • 24
  • 33
15
votes
2 answers

Change cursor in Windows Store Apps

I'm making a Windows Store app in C# and I have a normal TextBlock with a link inside it. And all I want to do it to make the cursor change into a hand when it goes over the text block, but unlike in WPF applications, there is no Cursor propriety. I…
Metod Medja
  • 768
  • 6
  • 10
15
votes
3 answers

.net WP8.1/Win10 UWP: Namespace for MapControl not found in Visual Studio Designer

Edit: the described issue below occurs also in a Win 10 UWP application (VS2015, Win10) when using the MapControl. I have a weird problem using the MapControl in a Windows Phone 8.1 (universal app) application. After adding the control to a page,…
15
votes
1 answer

Implementing DragStarted DragDelta events in windows 8 / WinRT

How I can attach DragStarted DragDelta events to a grid in windows 8 / WinRT. I did the Same in windows phone with GestureService.GetGestureListener() method. I tried to replace the code with ManipulationStarted & ManipulationDelta events in…
Stephan Ronald
  • 1,395
  • 2
  • 14
  • 39
15
votes
5 answers

Any WinRT iCommand/CommandBinding implementaiton samples out there?

Abstracting commands into the View Model is a valuable practice with XAML/MVVM projects. I get that. And, I see ICommand in in WinRT; but, how do we implement it? I haven't found a sample that actually works. Anyone know?
Jerry Nixon
  • 31,313
  • 14
  • 117
  • 233