Skip to main content

Questions tagged [xaml]

XAML stand for eXtensible Application Markup Language. It was introduced in Microsoft's .NET 3.0 framework and is used heavily in WPF applications.

-1 votes
2 answers
1k views

Are there any true differences between XAML and XML?

When you look at products like the Razor view engine, there's a clear reason why Microsoft decided to subset another existing standard (HTML) with their own special sauce thrown in. But I cannot find ...
AlgoRythm's user avatar
  • 141
-1 votes
1 answer
280 views

How to handle "Other" option in a list of options?

This is almost everywhere. For example, I need to pick a fruit from a list of fruits from a dropdown. And the last option on that dropdown is "Other", by selecting that another text field appears to ...
SZT's user avatar
  • 109
-2 votes
1 answer
534 views

Would learning both XAML UI and XML UI be helpful in improving understanding of XML in general? [closed]

I'm familiar with HTML/CSS, and some non-UI programming using C#/node.js/Java and looking at options for building a simple mobile app. I will definitely use Xamarin, and have to choose between ...
Zach Smith's user avatar
2 votes
1 answer
2k views

Get/Set Property in a Class vs IValueConverter

So i've been going through some of my old code from the time i was learning the basics of wpf and i found something intresting. I had a class in the format below public class TempClass { public ...
AVK's user avatar
  • 73
5 votes
3 answers
4k views

Is using getters in XAML view-models a bad thing?

I've recently had an argument with a colleague about using getters (without setters) in a view-model classes used by XAML. Example: public string FullName { get { return $"{FirstName} {...
MBender's user avatar
  • 263
1 vote
0 answers
600 views

Should my combobox for boolean values be in code-behind or in my viewmodel?

I ran into a disagreement with a coworker of mine on the implementation of representing a Boolean value in a ComboBox using Xaml and MVVM. Currently, my viewmodel is very simple. I have a bool? which ...
myermian's user avatar
  • 191
0 votes
1 answer
64 views

How can I approach application programming from a database background? [closed]

I have a lot of database experience, but virtually no application programming experience. At work, we have an EDMX? model generated from entities in the database, and we transform T4 templates to ...
srbrills's user avatar
  • 103
3 votes
1 answer
909 views

What does "Stateful" means in Stateful ViewModel in MVVM

I was reading about some XAML patterns, and there was the Stateful ViewModel, according to what I read it has nothing different than what we as just the "ViewModel". Here's a description for example :...
AymenDaoudi's user avatar
3 votes
0 answers
5k views

Should UserControl's be Views in an XAML MVVM application (WPF or Store app)?

I am about to use Caliburn.Micro for a new XAML Store app (not sure what to call it nowadays - does not appear to be called a "Windows Store app" any longer). The documentation (see Simple Navigation ...
markmnl's user avatar
  • 737
2 votes
1 answer
267 views

Silverlight-based "area of influence" algorithm

I am in the process of developing a tool for a game called MechWarrior: Online which defines a map of an area of space called the Inner Sphere. Essentially, this map is a set of points (planets) on a ...
toadflakz's user avatar
  • 155
6 votes
1 answer
6k views

Wpf: Event driven vs MVVM design pattern

I'm a beginning coder and I've been working on a WPF app for several months now and struggled to implement anything in MVVM due to time constraits to learn so I coded my program the only way to knew ...
user2525395's user avatar
0 votes
1 answer
67 views

WPF4 Unleashed - how does converting child elements work?

In chapter 2 of the book WPF4 Unleashed the author shows an example of how XAML processes type conversion. He states that <SolidColorBrush>White</SolidColorBrush> is equivalent to <...
Kapol's user avatar
  • 398
3 votes
0 answers
189 views

How to use data shaped by the UI from the ViewModel while keeping concerns separated?

I'm coming from a winforms background and trying to get ahold of MVVM and XAML. Right now I'm wondering how I can take advantage from a data-shaping control (either native or provided by a third party)...
Crono's user avatar
  • 1,657
3 votes
0 answers
118 views

Performance consideration and code reduction for Templates

I'm trying to decide if this might be a good idea to help reduce the size of some of my xaml resource dictionaries on a large project. Except I'm concerned about any potential performance issues going ...
Chris W.'s user avatar
  • 131
3 votes
1 answer
429 views

xaml schedule control how to cope with items of vastly differing durations

I have to create a schedule control using WPF XAML for displaying items with duration as little as 1 seconds and potentially as large as couple of hours. First thing which seems clear is that I ...
John's user avatar
  • 133

15 30 50 per page