Linked Questions

2 votes
2 answers
930 views

I have a DataGrid with three columns. There is a delete button in the third column. Its visibility depends on boolean property called 'ControlsEnabled'. DataGrid is populated by items in '...
Jacek Wojcik's user avatar
  • 1,273
-3 votes
1 answer
960 views

Ok. I have a 'Person' class with such properties: PersonId, Name and Age. So far I've added 3 different people and set the DataContext from a List. My validation rules are working ok. What I want to ...
trinaldi's user avatar
  • 2,950
126 votes
7 answers
141k views

I have a ListBox which binds to a child collection on a ViewModel. The listbox items are styled in a DataTemplate based on a property on the parent ViewModel: <Style x:Key="...
Marius's user avatar
  • 9,754
58 votes
2 answers
137k views

We have a WPF application with a standard MVVM pattern, leveraging Cinch (and therefore MefedMVVM) for View -> ViewModel resolution. This works well, and I can bind the relevant controls to properties ...
Nick's user avatar
  • 2,355
8 votes
2 answers
6k views

Is there any way I can associate a Command with a DataGridHyperlinkColumn? I've tried this: <DataGridHyperlinkColumn Header="Client Name" Binding="{Binding ShortName}"> <...
dks1983's user avatar
  • 165
13 votes
3 answers
3k views

I have silverlight problem I'v used two days to fight: a template with a style controls a button. In the concrete button I have a canvas with paths as content. The problem is that I want the paths ...
haqwin's user avatar
  • 377
4 votes
2 answers
3k views

I have a custom control with a TextBlock inside it: <Style TargetType="{x:Type local:CustControl}"> <Setter Property="Template"> <Setter.Value> <...
rem's user avatar
  • 17.2k
8 votes
2 answers
7k views

Is it conceptually possible to have a tree where you traverse it by starting at a given leaf node (rather than the root node) and use parent pointers to get to the root? I ask this since I saw ...
user2157871's user avatar
3 votes
5 answers
4k views

I developed a user control in SilverLight that contains several child controls. Textboxes, ComboBoxes and so on. The problem is, when I include that UserControl into a parent view and set the ...
BitKFu's user avatar
  • 3,707
6 votes
3 answers
3k views

When you have a usercontrol in wpf can it reach outside to its parent elements? For instance my user control just lists some generic things which are held inside the control which is encapsulated ...
G Gr's user avatar
  • 6,070
2 votes
2 answers
3k views

I have a simple UserControl that displays an icon and text: <UserControl x:Class="IconLabel" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://...
Crusha K. Rool's user avatar
0 votes
1 answer
4k views

I have a custom control with an observable-collection of "states", sort of like a multiple-state-button. Only the necessary code is here to avoid confusion: public class MyMultiStateBtn : ...
Seb's user avatar
  • 143
2 votes
1 answer
2k views

My goal is to bind an element property in XAML to a property of the code behind class, while the DataContext still is a ViewModel. The reason is, that I have some only UI-cosmetic properties in XAML ...
user1470240's user avatar
1 vote
2 answers
3k views

Not sure how much it matters, but I am using devexpress grid and defining a celltemplate for one of the columns. The issue is that when I bind with a "slidercontrol" it works, but when I bind to a ...
Mooser's user avatar
  • 97
2 votes
2 answers
4k views

I've got a DataGrid which contains a DataGridComboBoxColumn. What I want to do is to (dis)enable other columns based on the value of this combobox. For that, I handle the SelectionChanged event via an ...
GuillaumeA's user avatar
  • 3,575

15 30 50 per page
1
2 3 4 5