Questions tagged [xaml]

Extensible Application Markup Language (XAML) is a declarative XML-based language used for initializing structured values and objects in various frameworks. When a question is about the usage of XAML with a specific framework a tag for the framework should also be provided e.g. [wpf] (Windows Presentation Foundation), [silverlight], [windows-phone], [windows-store-apps] (Windows 8 store apps), [win-universal-app], [xamarin.forms] or [workflow-foundation]

XAML, eXtensible Application Markup Language, is a markup language for declarative application programming (a way of representing object graphs in XML).

Its main use is for defining user interfaces in (Windows Presentation Foundation), , , store apps, and .

The last two utilize principles from Microsoft Design Language (MDL) (previously known as Metro or Modern UI), though it can also be used for other applications, notably (Windows Workflow Foundation) workflows.

References:

61979 questions
11
votes
4 answers

How to propagate errors & exceptions that occur during WPF data binding?

Every so often I find that I have accidentally broken data binding in my application. Either by renaming a property and not renaming it in the XAML or by a property throwing an exception for some reason. By default data binding errors are logged to…
Ashley Davis
  • 9,896
  • 7
  • 69
  • 87
11
votes
5 answers

How can I make my Grid Columns always be the same width?

If I set the Column's width to *, they're the same width initially but if an item is larger than the amount allowed then it will stretch the column width. How can I force my Grid to keep it's columns the same size with explicitly defining a size? I…
Rachel
  • 130,264
  • 66
  • 304
  • 490
11
votes
2 answers

XAML Binding to the opposite of another element

I am developing a simple exercise and want to know if there is a way to bind to the opposite of another element using only XAML. For example. I have two buttons on a form, Start and Stop perhaps for a timer. I dont want both to be enables at the…
Francis Rodgers
  • 4,565
  • 8
  • 46
  • 65
11
votes
1 answer

Windows phone 7 scrollviewer problem

I am not able to scroll through the page in wp7 . eventhough i have added scrollview it still doesnt work.
Confused_alot
  • 189
  • 2
  • 10
11
votes
4 answers

How to close WPF window (dialog box) when Enter key is pressed?

I have a WPF window which opens as a modal dialog. On dialog, I have OK & Cancel buttons with IsDefault & IsCancel properties set to True for them respectively. Both the buttons have Click event handlers which close the dialog box. Here is the…
Learner
  • 4,661
  • 9
  • 56
  • 102
11
votes
4 answers

How can I overwrite my ListBox's ItemTemplate and still keep the DisplayMemberPath?

I have a generic style for a ListBox that overwrites the ItemTemplate to use RadioButtons. It works great, EXCEPT when I set a DisplayMemberPath. Then I just get the .ToString() of the item in the ListBox. I feel like I'm missing something simple…
Rachel
  • 130,264
  • 66
  • 304
  • 490
11
votes
3 answers

How can I replicate 'float: right' in XAML?

I want to create a ListBoxItem with a layout that includes two areas, one 'float: left' and one 'float: right', with the item overall filling the entire width allocated to the ListBox and the ListBox filling its container (ie. expanding to fill the…
MalcomTucker
  • 7,407
  • 14
  • 72
  • 93
11
votes
2 answers

.Net Maui XAML Input field component

I can't seem to find a simple text Input field to use in a .net maui xaml app. Looking at the docs in the User interface/Controls/Views section there is a a number of components handling user interaction/input such as checkbox and slider and even a…
Gustav
  • 3,408
  • 4
  • 24
  • 41
11
votes
2 answers

Why doesn't style-setting of the window background work?

Here is the App.xaml: