Extensible Application Markup Language (XAML) is an XML language used for defining user interfaces in WPF and Silverlight.

learn more… | top users | synonyms

11
votes
2answers
476 views

MVVM data binding for a video encoding form

I am creating a C# WPF application. I am intending to bind all of the GUI controls via data binding to my ViewModel, rather than code behind - as per MVVM. I have ...
4
votes
1answer
94 views

Insert String array as label content in datagrid row through radio button

I have written some code for inserting a label at runtime that has its content set to a string array into a datagrid row. All of this will initiate when certain radio buttons are checked. The code is ...
0
votes
0answers
30 views

ControlContent navigation within wpf mvvm application

I have a wpf&&MVVM application, in which I have a problem in responsiveness: I have a ContentControl to be changed in the click into a menu In The view ...
4
votes
1answer
50 views

Link to WinRT XAML code optimization

I need a method which will parse text to RichTextBlock-compatible XAML markup with clickable links. Example: Input: ...
0
votes
1answer
23 views

Prefered Style Container for the Components in the DataTemplate

The following XAML is a close (tidied up) version of what I have use in my WPF application. If you have noticed there are two Styles applied to the same component ...
5
votes
2answers
63 views

The cycle continues - VM's part 4

So, this is my refactored VM: ...
5
votes
1answer
65 views

Dynamic display of number converted to different numeral system

The program is displaying given number (right now it is only signed int) converted to different numeral system (binary,octal and hexadecimal for now). Number can be input in the text box and the ...
2
votes
1answer
95 views

Creating automatic resizing of subelements in WPF

I currently have this code: ...
5
votes
1answer
66 views

Handle Settings in Windows App

So, I fixed my problem with a public ViewModel for my MainPage like this: MainPage.xaml.cs: ...
4
votes
2answers
87 views

MVVM, Navigation, and More - Part 3

This is actually a second follow-up to Correct MVVM format, but I have made different changes. This is my ViewModel.cs class for my MainPage.xaml: ...
4
votes
1answer
104 views

MVVM, Navigation, and More

Continuation of Correct MVVM format. This is what I have done so far, and of course it works: To start with, this is my MainPage.xaml: ...
4
votes
1answer
105 views

Correct MVVM format

I have a Windows-Runtime app (very similar to WPF), and I am using (at least I think I am!) the MVVM style. I want to make sure I am doing this the proper way, and not just a working way. This is my ...
5
votes
2answers
653 views

WPF UserControl

I wrote my first WPF UserControl today, and I would like you to review it. Its purpose is to have images by default resize with the page, but expand to full size with a double-click: ...
4
votes
2answers
86 views

Display submenus

I am displaying menus and submenus in my WinRT app, and I think I am doing it wrong. I have thought I was doing it wrong for a long time, so here it is for review. This is the section in my ...
4
votes
1answer
111 views

XAML Markup Improvements

I have a Windows Store and Windows Phone app, and in this app I have many pages like this: ...
17
votes
1answer
223 views

Simon Says: “Make me a circular window”

This is my first time messing with non-rectangular windows and animations in WPF, so while I'm working on all the bugs I'm having with the actual game code, I'm submitting the XAML for review - I ...
12
votes
2answers
673 views

Understanding the MVVM concepts and validation of my code

I have been learning MVVM concepts and trying to implement it in my new project. I want to validate my work that I have been doing these past days. I want to know if I follow correctly the MVVM ...
6
votes
2answers
571 views

Noughts and Crosses WPF app

I've been learning C# and was looking for some feedback on my latest project, which is a standard Noughts and Crosses game. Two people are required to play (no AI yet). MainWindow.xaml.cs ...
2
votes
1answer
1k views

Access View from current/corresponding ViewModel

Sometimes when developing a WPF application, I need to access a certain Window (View) from the corresponding ...
2
votes
1answer
207 views

ViewStateManager for more than just Controls?

Okay - so basically I have a login form that has a couple of 'states' it needs to display (connecting, input credentials, authenticating, invalid credentials, etc...etc...) - in the past I've ...
2
votes
1answer
179 views

Rewriting WPF GridViewColumn alignment in a less verbose way

I wanted just to right align one column in WPF and I found out that the syntax is not exactly syntetic... Is there a way to make it more syntetic? Consider that this one colum, but I have 20 columns ...
5
votes
1answer
163 views

Justification of my current approach and possible suggestions about alternative to a Grid in a StackPanel form for an easier way of inserting new rows

In my real life example I am at a layout stage and before I actually move any further I would like to review my current approach. I am still learning about UI, XAML on WPF technology and I guess I ...
10
votes
1answer
3k views

Is there a better way to get a child?

I have written the following code to get ImageColorPicker child: ...
10
votes
1answer
497 views

Lots of Storyboards in XAML, huge file

After spending a few ages writing out every combination of triggers, bindings and storyboards, I finally managed to get my program working. First time working with WPF, so I made a big mess. Now it's ...
1
vote
1answer
693 views

MVVM implementation using C# and XAML

I have used INotifyPropertyChanged for both Model and ViewModel. Is it correct? First of all I was trying to use ...
10
votes
1answer
174 views

TicTactics Presentation

This is my take at the current code-challenge, Ultimate Tic-Tac-Toe, at least the presentation part. As I chose to write a WPF application for my game, and this is my very first time fiddling with a ...
3
votes
1answer
368 views

Is this a good user control layout for WPF?

Below is a code snippet of how I have been laying out my WPF control XAML. I do it mainly because I get intellisense in the editor and I can change the implementation of the viewmodel and push the ...
5
votes
2answers
4k views

WPF Window with different DataTemplates

I have to do a task hard for me and maybe you can help me. I've tried to design a window dialog to update data from a database view. This database view contains integer, DateTime, string, Time, ...
3
votes
1answer
1k views

WPF Load boolean values in combobox

I have a Combobox and I want to edit a boolean value. ...
2
votes
1answer
168 views
4
votes
1answer
5k views

WPF circle and line drawer solution

I've created a WPF program which can draw lines and circles on a canvas. It works well, but I don't think it's the best solution. How can I make it work better? How would you create this program? ...
11
votes
1answer
399 views

Does my code conform to modern conventions?

I've spent a few days making the transition from WinForms to WPF, and do not have much time for tutorials as the work needs to be done quickly. I was wondering if anyone could take a look at a sample ...
10
votes
2answers
4k views

Is nesting grids a good idea?

I find myself nesting a lot of grids inside grids in WPF. I just found myself 3 Grids deep, and stopped to think: "Should I be doing this?" Is there some kind of performance cost? Is it ...
4
votes
1answer
882 views

Putting items next to each other

So I want to put some text next to it's lable. (both of which are text blocks - which are faster than lables as I understand it) The best way i've found for doing this is a strack panel. So I have, ...
5
votes
1answer
799 views

View Model Base

I needed to write code in WPF for a client. The application is done with prism (not my decision, they already had people working on it), so I got a sparkling clean new module to work in. Since this ...