the ListboxItems size(i.e,) Width and Height has to change with Respect to Slider value
<ListBox.ItemContainerStyle> <Style TargetType="{x:Type ListBoxItem}"> <Setter Property="HorizontalContentAlignment" Value="Stretch"/> <Setter Property="VerticalContentAlignment" Value="Stretch"/> <Setter Property="Padding" Value="0"/> <Setter Property="Margin" Value="1"/> <Setter Property="BorderBrush" Value="Green"/> <Setter Property="Width" Value="{Binding Path=Value, ElementName=sizeSlider, Mode=TwoWay}"/> <Setter Property="Height" Value="{Binding Path=Value, ElementName=sizeSlider, Mode=TwoWay}"/> <Setter Property="TabIndex" Value="1"/> </Style> </ListBox.ItemContainerStyle>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)