Questions tagged [itemtemplate]

A WPF/Xaml DataTemplate used to display each item in an ItemsControl.

A WPF/Xaml DataTemplate used to display each item in an ItemsControl.

555 questions
-1
votes
1 answer

WPF Tab Control to use different ItemTemplate for the first tab only

I'm using WPF with a TabControl. I've defined an ItemTemplate that sets a TextBlock for the title and a button to close the tab. I would like for the first tab to not have the close button visible. I've tried to set Visiblity of the button using…
RaKer
  • 279
  • 1
  • 5
  • 18
-1
votes
1 answer

WPF ItemList ItemTemplate Border issue

I have an ItemList with an implemented ItemTemplate that looks like this: Now this works perfectly fine as expected. The problem occurs when i try to add a Border with a curved…
AlvinfromDiaspar
  • 6,611
  • 13
  • 75
  • 140
-1
votes
1 answer

i cant set command argument to an img, but when i change it to imgbtn, it cant take my onclick jquery

I am displaying a collapsible grid view, when the user clicks the img, the 2nd nested grid view collapses. It works perfectly, except the grid 2 takes a parameter of grid view1 id, to keep the rows unique to each row. The img code works (without the…
Von Kelly
  • 3
  • 6
-1
votes
1 answer

How to change path property inside DataTemplate ListBox SelectedItem

I use a listbox to show image data. i want to animate path property inside data template on the listbox when its selected pretty much like on this video https://vine.co/v/On03bWIEPJ6 I saw many question similar with this and the manipulation from…
-1
votes
1 answer

How can you you add a span in a itemtemplate (code behind)

I want to add a span with code behind to a itemTemple (inside a gridview) // Here i want a span build up with code behind # Is this even posible…
-1
votes
1 answer

Change LongListSelector's SelectedItem's ItemTemplate

I'm new to Windows Phone and writing an application that uses LongListSelector with group to display data. What I can't implement is, I'm trying to change LongListSelector's ItemTemplate from code by selecting an item of LLS. I tried lots of things…
-1
votes
2 answers

Wait for itemcontrol to render

My ItemControl is binded via ItemsSource to an ObservableCollection<...>. When I fill the collection, the program needs some (a little, but still some) time to create right ItemTemplate objects and render them in my ItemsControl. Is there any way to…
-1
votes
1 answer

ComboBox ItemTemplate does not support values of type 'Image'

I'm trying to bind a WPF combobox to an observable collection of images. Here is my collection: public class AvatarPhoto { public int AvatarId { get; set; } public BitmapImage AvatarImage { get; set; } } public…
Charlie
  • 764
  • 2
  • 13
  • 24
-2
votes
2 answers

Image Control dosen't work

I have the Following ASP code:
Michael
  • 13,950
  • 57
  • 145
  • 288
-2
votes
1 answer
-2
votes
1 answer

C# Eval not displaying value within Div tag

I am using an eval statement to display a string from a column value. Everything is setup fine in that regard, but when I put it into a bit of HTML, my text vanishes. Any ideas?
Connor Mackay
  • 77
  • 1
  • 1
  • 11
-2
votes
1 answer

Dynamically change the class of a div nested in a gridview item template from code behind c#

I need to change the class of a div nested inside a gridview item template, i have given the runat="server" tag and an id for the div. How can we change the class of that particular div upon gridview databind based on each row conditions.
midhun
  • 39
  • 4
-2
votes
1 answer

Looping on gridview from last row in c#

I am creating groups of students .I have a Gridview in c# asp.net.It contain one item template field label.I have one dropdownlist from which i am selecting no. of groups i want to made.I want to apply loop on the gridview in such a way that when I…
-4
votes
1 answer

How can I access a dependency property of a user control that was defined in code behind from a ItemTemplate in xaml?

I have a ListBox whose ListBoxItems are a control derived from UserControl. Each of these controls contain a UserControl derived from Button and some TextBoxes. I want to bind these to elements in my model by using an ItemTemplate in the ListBox,…
-4
votes
2 answers

C# - Array of String to Comma Separated in Item Templete

I want to change string to comma in Eval function inside Repeater -> item templete When i use it Eval("RoleName").ToString().Replace(" ", ", ") it only shows comma on first string word not all of them Memeber, Admin SupuerAdmin User But i…
1 2 3
36
37