Hi,
i found this example to change the CellTemplate. This works fine, but how do i insert a "Passwordbox"?
<
telerik:RadGridView
x:Name
=
"RadGridView"
AutoGenerateColumns
=
"False"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Name}"
Header
=
"Select hobby"
/>
<
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
telerik:RadComboBox
ItemsSource
=
"{Binding AvailableHobbies}"
>
<
telerik:RadComboBox.SelectionBoxTemplate
>
<
DataTemplate
>
<
TextBlock
Text
=
"{Binding Owner.Choices}"
/>
</
DataTemplate
>
</
telerik:RadComboBox.SelectionBoxTemplate
>
<
telerik:RadComboBox.ItemTemplate
>
<
DataTemplate
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
CheckBox
IsChecked
=
"{Binding IsChecked, Mode=TwoWay}"
Content
=
"{Binding Description}"
/>
</
StackPanel
>
</
DataTemplate
>
</
telerik:RadComboBox.ItemTemplate
>
</
telerik:RadComboBox
>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Choices}"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
With Passwordbox:
<
DataTemplate
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Passwordox
Name
=
"Password_txt"
Password
=
"{Binding Password}"
/>
</
StackPanel
>
</
DataTemplate
>
binding does not work, but why? A simple Textbox ist working fine with this Binding!
Thanks Best Regards
Rene
<
telerik:GridViewDataColumn
Width
=
"10*"
Header
=
"Enabled?"
Background
=
"White"
DataMemberBinding
=
"{Binding IsEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
UniqueName
=
"IsEnabled"
IsReadOnly
=
"False"
/>
<
telerik:RadMaskedTextInput
x:Name
=
"VersionText"
Width
=
"Auto"
Grid.Row
=
"4"
Margin
=
"5"
HorizontalAlignment
=
"Stretch"
Height
=
"Auto"
Mask
=
"####_##_###"
EmptyContent
=
"Version: z.B.: 2008_r4_n10"
UpdateValueEvent
=
"LostFocus"
/>
i want to display image in each item on VirtualizaingWrapPanel.
I try to modify the sample code VirtualizingWrapPanel.WPF Example.xml
by adding a line (bold below) to show a image
< DataTemplate x:Key="dataTemplate">
..........................
< TextBlock FontWeight="Bold" Text="Discontinued:" Grid.Row="4"/>
<TextBlock Text="{Binding Discontinued}" Grid.Row="4" Grid.Column="1" />
<TextBlock FontWeight="Bold" Text="Image:" Grid.Row="5"/>
<Image Source="{Binding Image}" Grid.Row="5" Grid.Column="1" />
</Grid>
the Image is a property with BitmapImage Type.
After recomplie the sample and i can see the image shown.
However,when i resize the sample window.the app seems hang.
I would like to known the properly way to display a image in VirtualizingWrapPanel?