Linked Questions

0 votes
0 answers
84 views

I have the following custom UserControl: <UserControl ... x:Class="Controls.CurrentUser"> <Border Background="#253f95" Margin="5"> <StackPanel ...
codenamezero's user avatar
  • 3,119
5 votes
3 answers
9k views

My UserControl requires binding to the ancestor (the ancestor being the MainWindow) and to itself (it's code behind). To bind to the ancestor, I'm using DataContext="{Binding RelativeSource={...
Dave's user avatar
  • 8,502
0 votes
2 answers
18k views

Can not do Binding Random (MyViewModel) -> VMTestValue (MyViewModel) -> TestUserControl (MainWindow) "MyViewModel" is ViewModel for "MainWindow" All project: http://rusfolder.com/32608140 ...
Ivan's user avatar
  • 173
7 votes
3 answers
12k views

I'm trying to bind element's property in a child control to an element's property ina parent window, it doesn't work.. Here is png of what I'm trying to do: Here is the xaml that doesn't work: ...
Slime recipe's user avatar
  • 2,283
4 votes
2 answers
5k views

I got some problem with custom dependency property binding. We have: Custom user control with one dependency property and binding to self: <UserControl x:Class="WpfApplication1.SomeUserControl" ...
kirilljk's user avatar
4 votes
3 answers
5k views

I have a C# WPF 4.51 app. As far as I can tell, you can not bind to a property belonging to an object that is the child of a WPF WindowsFormsHost control. (If I am wrong in this assumption please ...
Robert Oschler's user avatar
0 votes
3 answers
2k views

Basically I'm new to WPF. I have a user Control - A. Inside A, I have another user Control B. When a button on B is pressed, a value is to be passed to A. I`m trying WPF MVVM. Kindly help me. //------...
B.K.N's user avatar
  • 11
2 votes
2 answers
2k views

I am trying to create a usercontrol in WPF that includes a content collection and struggling to get the binding to work correctly on the sub elements. I already looked at this example, but I'm one ...
djm181's user avatar
  • 106
0 votes
2 answers
2k views

I need some help! I have build a custom control and added to it a DependencyProperty of type: Dictionary<string,int> and from the XAML where the control is held I do a data binding to bind to ...
Jay Arbiv's user avatar
1 vote
1 answer
2k views

I have a Page which contains a ListView of users : <ListView ItemsSource="{Binding UserList}" SelectedItem="{Binding SelectedUser}"> <GridView> <GridViewColumn ...
Farmer's user avatar
  • 11k
0 votes
1 answer
2k views

I have a user control of a Line Series Chart and created a bunch of dependency properties for items on the chart; title, x-axis label, the data itself, etc... The data is an observable collection of ...
DJD's user avatar
  • 236
0 votes
2 answers
254 views

I have a control: DailyHours. That has a collection of custom TimeEdit controls I created. Each control is supposed to bind to the DailyHours view-model class. Instead it tries to find the values I ...
Tjaart's user avatar
  • 4,181
1 vote
1 answer
651 views

I have an application with two DataGrid controls. And although their ItemsSource are bound to different collections, their item type, columns, styles and event handlers are exactly the same. As their ...
Daniel Möller's user avatar
1 vote
1 answer
379 views

I my project, I want to use a user control which is the combination of a textblock and a textbox. I can create some custom properties for the usercontrol like public string Caption { ...
sony's user avatar
  • 1,523
0 votes
3 answers
431 views

Please help me I have public partial class OrderControl : UserControl { private OrderHeader orderHeader; public Customer selectedCustomer { get; set; } private Customer[] allCustomers; ...
artos's user avatar
  • 771

15 30 50 per page