Tagged Questions
0
votes
0answers
22 views
How to retrieve content from textblock that is inside a ToggleButton?
I have been scouring over Stackoverflow for some time now, and can't get this to work the way I intend.
I have a ViewModel for my WPF application, and I'm using a ItemsControl.ItemsTemplate to ...
0
votes
1answer
23 views
WPF datatemplate polymorphism in listbox
`I have a listbox that contains items that represent results from various tasks. They each extend a common base class "ResultsViewModel" so share certain attributes that the displayer needs.
What I ...
0
votes
1answer
31 views
Find the content of a TextBox inside a DataTemplate with multiple rows
I have this code:
<StackPanel>
<ItemsControl ItemsSource="{Binding Position}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid>
...
0
votes
1answer
20 views
WPF hyperlink in datatemplate listboxitem
I have a data template in WPF that is attached to a ResultsViewModel class and renders the VM in a table format. A bunch of these make up ListBoxItems in a ListBox. What I want is in each individual ...
0
votes
3answers
34 views
How do I set a DataTemplate for a WPF TreeView to display all Elements of an List?
I'd like to visualize the following data structure using TreeViews in WPF:
class MyDataContext
{
ICollectionView Outers {get;set;}
//...
}
class Outer
{
string Name {get;set;}
...
0
votes
0answers
35 views
WPF ListBoxItem storyboard animation on mouseover
I have a custom ListBox which defines DataTemplates for the ListBoxItems depending on a boolean flag which is a dependency property on the viewmodel behind each listbox item. At the moment I get the ...
1
vote
1answer
29 views
WPF data template dynamic switching
I have a class that represents an asynchronous result. There will be an exposed boolean dependency property called "IsCalculating". If that value is true, I want the visualiser to show template A - ...
0
votes
1answer
28 views
WPF listbox OO data template
This is a basic question but I'm just coming back to WPF after a long break and can't remember how to do this. I've tried looking around but can't find exactly the answer I'm looking for.
I have a ...
1
vote
1answer
32 views
WPF DataTemplate using same DataContext like parent control
I am getting crazy about a DataContext problem in WPF. I read the comments here in StackOverflow, but I can't fixed it.
I have the following data template :
<DataTemplate x:Key="TodoTemplate" ...
0
votes
2answers
38 views
How come left-click on the TreeViewItems that are created with DataTemplate does not select them?
<TreeView Name="MyTreeView" VirtualizingPanel.IsVirtualizing="True" VirtualizingPanel.VirtualizationMode="Recycling">
<TreeView.ItemsPanel>
<ItemsPanelTemplate>
...
0
votes
2answers
58 views
ComboBox Item Selection Works With Keyboard But Not Mouse
I have a combo box that is not working as I expect at runtime. I can use the mouse to expand the drop-down window, but clicking an item does not seem to select it. The dropdown goes away, but the ...
0
votes
2answers
49 views
Combobox binding using DataTemplate of ItemsControl
I have searched for a solution for a day and a half. Most examples that I get that explain / semi explain the situation relate to a combobox with "static" type items. I have the following structure.
...
0
votes
1answer
15 views
How to get DataTemplate to Recognize GenericType
I am displaying nodes in a TreeView control, and I am having issues with getting the data to display correctly with generics. More specifically, it seems that WPF is having trouble locating the data ...
0
votes
0answers
32 views
RichTextBox with dynamicresource with button event
here
I have one extended richetextbox. where you can find textbox with button on datatemplate wich bind dynamically,
the problem when i click on delete button it is not working.
help me where it is ...
1
vote
1answer
14 views
How to get ContentControl to resolve DataTemplate
Why does this not resolve the datatemplate?
<Window.Resources>
<DataTemplate DataType="system:DateTime" >
<Grid Background="Aqua">
<TextBlock ...