datatemplate
Selected Item of ComboBox is displayed wrong by using of DataTemplate?
I have a problem with the ComboBox. The items are displayed when the ComboBox is opened. When I select an item and the ComboBox is closing, the ComboBox displaying Model.Person instead of Name, Vornam[详细]
2023-03-24 08:10 分类:问答Set MaxHeight of textblock embedded within data template of ListBox
how do i access a textblock inside a data template, within a ListBox & set the textblock\'s \'MaxHeight\'?[详细]
2023-03-23 19:16 分类:问答UserControl with Dependancy Properties to replace repetative set of similiar controls
Sorry for the terrible Question Title, I don\'t know how to phrase this, feel free to comment. I am working on a WPF desktop app using the MVVM pattern. I have a great number of text fields on my Vie[详细]
2023-03-23 18:41 分类:问答Fade out removing item from itemscontrol
I have a WPF-View with an ItemsControl that binds an ObservableCollection from the ViewModel. Now i want to fade out slowly items which i remove from the ObservableCollection.[详细]
2023-03-23 00:19 分类:问答Set the datacontext of the context menu with in a data template
Below is the code snippet: <ResourceDictionary> *** <DataTemplate x:Key=\"xyzTemplate\" DataType=\"arguments\" PresentationTraceSources.TraceLevel=\"High\">[详细]
2023-03-23 00:05 分类:问答Composite WPF: Data Template vs. View Model Injection
Here is the simple question: what do you use to l开发者_如何学Cink your views to your view models?[详细]
2023-03-20 12:39 分类:问答WPF: How can I get current inheritor ListView from DataTemplate
I have 2 inheritors of ListView: public class FileListView : ListView public class ThumbnailListView : ListView[详细]
2023-03-19 09:50 分类:问答WPF implicit DataTemplate declared in App.xaml won't take effect
In the MainWindow.xaml, I set: <Window.DataContext> <vm:MainViewModel/> </Window.DataContext>[详细]
2023-03-17 23:42 分类:问答Setting the objectinstance to the current data item
I am fairly new to WPF, have been working on finding an answer to this for a couple days without much luck, it seems like there should be a way.I have set up a DataTemplate whose DataType is a custom[详细]
2023-03-17 23:37 分类:问答WPF DataTemplate and usercontrol lifetime
I have a tab control with a few tabs.When a tab is selected, I set the content of the tab to its corresponding view model.[详细]
2023-03-17 22:44 分类:问答