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
9
votes
1 answer

Why is my Grid Tapped event not being called?

It's true that I'm not actually tapping in the simulator - as my dev machine is not touch-enabled - but I don't think that's the problem, as my clicking within the grid should fire the event. Here's my xaml:
9
votes
1 answer

XAML Primitives in WinRT / Win8 Metro

Has anyone been able to add primitives in XAML in WinRT? I'm trying to run the following, which is standard in all XAML-based technologies except for WinRT:
Laith
  • 6,071
  • 1
  • 33
  • 60
9
votes
2 answers

Let ListView scroll to selected item

I have a WinRT/C#/XAML app with a view that has a vertical ListView of items. Depending on the amount of items the ListView shows a vertical scrollbar. Here's the XAML definition:
Matthias
  • 3,403
  • 8
  • 37
  • 50
9
votes
4 answers

Windows 8 WrapPanel

I've got problem with automatically breaking StackPanel into next line. Here's the sample code: ... Now I…
Krzysztof Kaczor
  • 5,408
  • 7
  • 39
  • 47
9
votes
1 answer

In WinRT XAML, how to reference images in outside/separate assembly/project?

Seems to be different in WinRT (Windows 8). Anyone figure it out yet? My experiments. Of course: File Build Action == Content && Copy to Output Directory == Copy always These don't seem to work:
Jerry Nixon
  • 31,313
  • 14
  • 117
  • 233
9
votes
3 answers

how to calculate the textbock height and width in on load if i create textblock from code?

TextBlock tbl= new TextBlock(); tbl.text="Kishore"; double x=tbl.ActualHeight; double y=tbl.ActualWidth; If i execute the code from the loaded event in Metro - winRT will return 0 for both. How can I get the ActualWidth in the Loaded or…
Kishore Kumar
  • 21,449
  • 13
  • 81
  • 113
8
votes
1 answer

Winrt Dependency Property Visual Studio XAML error.

This is my Dependency property: public static readonly DependencyProperty ButtonTapSoundProperty = DependencyProperty.RegisterAttached("ButtonTapSound", typeof (Uri), typeof (ButtonDependencyObject), new PropertyMetadata(default(Uri),…
Cool Breeze
  • 1,289
  • 11
  • 34
8
votes
2 answers

Convert a BitmapImage to byte array in UWP

How can I convert a BitmapImage object to byte array in UWP ? in .Net it is easy to achieve, even in previous WinRT versions, looked all over the internet but without success, one of the solutions was to use a WriteableBitmap like mentioned in this…
AymenDaoudi
  • 7,811
  • 9
  • 52
  • 84
8
votes
2 answers

UWP ContentDialog Invocation

I am using UWP and Template 10 to build a GUI app by following MVVM pattern. As a part of application I need to invoke a content dialog by pressing button on Main Page. So separate ContentDialog was created in standalone .xaml file for that…
Dmytro
  • 196
  • 1
  • 8
  • 19
8
votes
3 answers

Build Problems with SQLite-WinRT Wrapper

I am having trouble getting my app to build for ARM target after adding the SQLite-WinRT database wrapper. I could reproduce this with a simple test app as follows: (This is done in Visual Studio 2013.) Create an empty Windows 8.1 universal app…
user3386180
8
votes
2 answers

WebView inside ScrollViewer with XAML element header

In WebView I load HTML elements with WP 8.1. Whenever content exceeds the WebView height there is scroll without issues. My problem is that I have XAML elements in the top of the WebView, which have to scroll along with the WebView…
Ganapathy
  • 4,594
  • 5
  • 23
  • 41
8
votes
2 answers

Clipping a low resolution image using Transforms and assigning it to my user control

I have been working on a Windows 8.1 RT app where the user loads an image with Stretch=Uniform. The image can be as small as possible and as big as possible. The clipping happens in my user control and my user control appears when I tap/press and…
Apoorv
  • 2,023
  • 1
  • 19
  • 42
8
votes
2 answers

ManipulationMode explained

Can someone explain the meaning of manipulation modes such as TranslateX, TranslateRailsX, TranslateInertia ? What is a rail mode? And what inertia they are talking about?
TOP KEK
  • 2,593
  • 5
  • 36
  • 62
8
votes
3 answers

How can i bind a button in listviewitem to a Command in ViewModel in Winrt

I have a NavigateToAccountsCommand RelayCommand property in the ViewModel. When I bind the same to a button on the page anywhere outside the ListView the command binding is working. However as soon as I move this to a ListView's DataTemplate its…
Drunkenelf
  • 123
  • 1
  • 6
8
votes
3 answers

Microsoft.Windows.UI.Xaml.Common.Targets not found

I have a problem when I try to compile a Windows Store App in C#/XAML. Every time that I try to compile I receive this error: Error 1 The system cannot find the file specified. (Exception from HRESULT: 0x80070002) App1 and C:\Program Files…
cjgaliana
  • 168
  • 2
  • 10