Questions tagged [itemtemplate]
A WPF/Xaml DataTemplate used to display each item in an ItemsControl.
itemtemplate
557
questions
1
vote
0
answers
20
views
How to get the project name when creating an item template in Visual Studio?
I want to create a project template in Visual Studio. The $rootnamespace$ and $safeitemname$ parameters work fine, but I also want to access the project name. I do it as follows, but instead of ...
0
votes
0
answers
25
views
VS error on aspx file Eval(), expecting semi-colon
I am suddenly getting a CS1002 error on an aspx page when it was working fine. The code:
<asp:DataList ID="StdColorGrid" runat="server"
EnableViewState="false&...
0
votes
1
answer
61
views
WPF ContextMenu ItemTemplate - dynamic submenu issue
<ContextMenu x:Key="OverviewListViewSingleSelectionContextMenu">
<MenuItem Name="ViewPhotosMenuItem" Header="View Photos" Click="...
0
votes
0
answers
13
views
MVVM dynamic view with different controls
I am very new to MVVM development and I am create a small project for some home gardening project using ESP32.
My intention is to design an GUI will minimalist rework and changes just by updating a ...
0
votes
1
answer
52
views
UWP - the order will be wrong on GridView when the column counts be changed
I encounter a problem that the order will be wrong on Gridview when the column count be changed.
Could someone help to solve, please?
MainPage.xaml
<Page
x:Class="DragDropTestApp.MainPage&...
0
votes
1
answer
29
views
WPF: Unchecking all other CheckBoxes in a templated ListBox
The Goal:
I'm trying to create a ListBox bound to an ObservableCollection that features a CheckBox for each item, but only allows one item to be checked at a time.
The Problem:
I'm very close to ...
-2
votes
1
answer
81
views
WPF: Trouble getting user changes in a ListBox template back to the Collection it's bound to
I have a standard ListBox with a template:
<ListBox Name="statBox" ItemsSource="{Binding Path=p_statList}">
<ListBox.ItemTemplate>
<...
0
votes
0
answers
204
views
.NET Maui Access underlying data model in collectionview itemtemplate
Is there any way, to access the underlying object (item) when using contentview as itemtemplate, or when the contentview is used this way, it is just a tool to display bound properties from particular ...
1
vote
1
answer
480
views
How to use a Wizard Extension for Item Templates
I am trying to setup an Item Template where the .vstemplate file contains a reference (WizardExtension) to a .DLL that implements a form to collect custom parameters for the template. I used a ...
0
votes
2
answers
58
views
Listbox items not wrapping, tried almost everything. it might be due to ItemTemplate
**Tried adding wrap panel as parent, as child, as item template parent, but didn't work
**
<UserControl.Resources>
<DataTemplate x:Key="CredentialTemplate" DataType=&...
0
votes
1
answer
50
views
Using ItemTemplate and DataTemplate creates a button within ListView. Why?
I have a situation with a ListView. Inside the item template there is a DataTemplate and inside the DataTemplate there is a ListViewItem and it's content is bound. When I click I want to select the ...
0
votes
0
answers
20
views
Navigate to a new window on item click in ItemTemplate in WPF [duplicate]
I have created a Grid with ItemTemplate and now on click of any item I want user to navigate to new screen. I have added ICommand function in ViewModel for this but I am not able to handle the Command ...
0
votes
0
answers
126
views
Extra Whitespace with ListBox and UniformGrid
I'm making a calendar as an exercise, and I get the Listbox Items to generate correctly. However, I don't want any spaces in between the borders. I have set HorizontalContentAlignment to stretch, and ...
0
votes
1
answer
116
views
ASP.Net Passing a Variable from VBA on HTML Listview Item template when loading a web page
I have the below code on my aspx page, where a listview is being formed on HTML
´´´
<asp:ListView runat="server"
ID="VistaVehiculos"
...
1
vote
0
answers
53
views
Change value of data in my KendoGrid filter
I want to change the value of the data on my filter. Using the example code provided by telerik, i want to use a short country´s name (substring) on my filter, so i can use USA, CAN, MEX or else.
Some ...