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
15
votes
2 answers

WinRT/Metro Animation in code-behind

The following code works fine in Silverlight: private void Button_Click_1(object sender, RoutedEventArgs e) { Storyboard storyboard = new Storyboard(); DoubleAnimation doubleAnimation = new DoubleAnimation(); doubleAnimation.From =…
MetaMapper
  • 968
  • 8
  • 22
15
votes
4 answers

How can I simulate my Metro app being terminated?

VS2012's default C# "Metro style" project templates include code in App.xaml.cs (in the OnLaunched override) to restore the application state after a suspend-and-terminate. This code only runs when LaunchActivatedEventArgs.PreviousExecutionState is…
Joe White
  • 94,807
  • 60
  • 220
  • 330
14
votes
3 answers

Position of ItemClick event on a ListView Windows Phone 8.1

I have a ListView which shows the products in a shopping cart. The datatemplate defines an increment and a decrement amount button for each product. If the user wants to tap one of these buttons, there's a chance that they tap next to the button,…
WPMed
  • 1,414
  • 1
  • 13
  • 25
14
votes
2 answers

Transparent textbox when textbox GotFocussed Windows Phone 8.1?

I need to have transparent textbox, in my WindowsPhone 8.1 Runtime application. I made Background="Transparent" to the textbox, so it is transparent when it is loaded. But on focus, background color changed to white. I write the following code, to…
user3701923
  • 195
  • 1
  • 6
14
votes
3 answers

TextBlock text doesn't wrap when placed inside a ViewBox

I have a TextBlock with a long line of text which I want to wrap. I've placed the TextBlock within a ViewBox expecting the text size to change while still wrapping, however this doesn't seem to happen. The ViewBox just resizes the TextBox so that…
Sun
  • 4,458
  • 14
  • 66
  • 108
14
votes
2 answers

WinRT (Win 8) Store App XAML Bindings RelativeSourceMode FindAncestor missing?

does anybody know what the "new way" of FindAncestor in XAML bindings is? Looking at the RelativeSourceMode (http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.data.relativesourcemode) there are only options left for referencing…
Gope
  • 1,672
  • 1
  • 13
  • 19
14
votes
3 answers

Difference between Windows 8 Store Apps And Windows Phone Apps

I know this seems basic, but I have spent hours looking at docs and videos and cant seem to find the answer. Sorry if I'm being a doof. Is there a difference between Windows 8 App Store Development and Windows 8 Phone Development? I am not sure if I…
JsAndDotNet
  • 16,260
  • 18
  • 100
  • 123
14
votes
2 answers

How to animate height of control in Windows 8 XAML

I'm having trouble performing a simple storyboard-based animation of a controls height in a Metro-style C#/XAML application on Windows 8. The following trivial XAML and code behind snippets work fine in Silverlight 5 and Windows Phone 7, yet do…
Pete
  • 155
  • 1
  • 5
14
votes
1 answer

How can I supply the 3 splash screen sizes for a Windows 8 app?

I'm trying to create a Windows 8 C#/XAML app, and the first task I'd like to do is to set up the splash screen. How can I supply the 100%, 140% and 180% versions as referenced in the Splash screen element docs? That link refers to Tiles overview,…
rob
  • 8,134
  • 8
  • 58
  • 68
13
votes
2 answers

How to Know When a FrameworkElement Has Been Totally Rendered?

For WPF there is the ContentRendered event in the Window class which let us know when the visual elements have been rendered. Is there anything that would help me achieve the same result for UWP apps? I'd like know when a FrameworkElement has been…
Roney Gomes
  • 497
  • 4
  • 13
13
votes
2 answers

How to specify Minimized Mode for BottomAppBar WP8.1

Who to set Mode="Minimized" in WP8.1 WINRT for a BottomAppBar?
Ouadie
  • 13,005
  • 4
  • 52
  • 62
13
votes
5 answers

programmatic textblock entry with linebreaks

How do I programmatically add text with line breaks to a textblock? If I insert text like this: helpBlock.Text = "Here is some text. Here is some more."; Then the linebreaks get interpreted as part of the…
micahhoover
  • 2,101
  • 8
  • 33
  • 53
13
votes
1 answer

Difference between Metro Apps written in HTML/CSS/JS vs XAML/C#

What is the difference between Metro apps written in web-development technologies and ones written in XAML/C#, etc.? Does Microsoft Metro API provide hooks for Javascript, where it's all native for C#? Should they work hand in hand, or is it the…
knownasilya
  • 5,998
  • 4
  • 36
  • 59
13
votes
3 answers

How to TILE a background image in WinRT?

With the absence of VisualBrush in WinRT, I am not sure the approach. Anyone?
Jerry Nixon
  • 31,313
  • 14
  • 117
  • 233
13
votes
2 answers

Enabling ScrollViewer HorizontalSnapPoints with bindable collection

I'm trying to create a similar experience as in the ScrollViewerSample from the Windows 8 SDK samples to be able to snap to the items inside a ScrollViewer when scrolling left and right. The implementation from the sample (which works) is like…
RajenK
  • 1,403
  • 3
  • 15
  • 25