datatemplate
MVVM DataTemplate and non-empty view model constructor
I have the below DataTemplate: 开发者_JAVA百科<DataTemplate DataType=\"{x:Type vm:MyViewModel}\">[详细]
2023-03-17 04:29 分类:问答How to edit/use xaml datatemplate in code
In XAML, I have: <DataTemplate x:Key=\"AgeItemTemplate\"> <Border BorderThickness=\"0,0,0,0\" BorderBrush=\"#6FBDE8\">[详细]
2023-03-15 10:03 分类:问答UserControl instead of DataTemplates - is there a way for big collections?
There are two ways. May be both are stupid... I have to display some collections of items. First one. I use DataTemplate for ListBoxItem.[详细]
2023-03-15 07:53 分类:问答Arranging ItemsControl items within a DataTemplate
For some reason, Items added witin a dataTemplate will not do what I tell them to do!! I am trying to put a number of images horizontally within a stackpanel, but no matter how I try, they only go ve[详细]
2023-03-13 23:31 分类:问答GridViewColumn CellTemplate Code Behind
I have a listView that I construct at run-time, i.e. the columns are not known at compile-time. I would like to apply a DataTemplate to the cells such that the TextAlignment property is TextAlignment[详细]
2023-03-13 11:53 分类:问答Vertical alignment in DataGrid RowHeaderTemplate
Here is the code I used. I tried setting VerticalAlignment to Top, but when the row details are shown (expand to show), the button moves to the center of the row.[详细]
2023-03-13 00:22 分类:问答Silverlight 4: image in datatemplate not appearing on design surface
I\'m trying to bind an image\'s source to a string in a listbox with a data template. When I run the application, I see the image in the browser, but I cannot see it on the design surface.[详细]
2023-03-12 07:35 分类:问答Creating DataTemplate and DataTrigger in the code
I\'m trying to create DataTemplate in code-behind. And I have a problem with DataTrigger in it. Here is DataTemplate as written in xaml:[详细]
2023-03-12 06:20 分类:问答WPF Telerik RadGridView - compare startDatePicker EndDatePicker and display error if there is one
I have the current code where 2 DatePicker are in a templeted cells of a RadGridView. <telerik:RadGridView AutoExpandGroups=\"True\" AutoGenerateColumns=\"False\" ColumnWidth=\"Auto\" HorizontalAl[详细]
2023-03-11 21:57 分类:问答WPF - How to get SelectedIndex of a ComboBox defined in a DataTemplate?
In my WPF app I have a data import function which imports data from an Excel file into a database. In order to allow user to map the columns from their Excel file to the columns in my database table[详细]
2023-03-11 19:36 分类:问答