Click here to Skip to main content
15,886,724 members
Home / Discussions / WPF
   

WPF

 
QuestionWPF StackPanel/ListView problem Pin
marca29218-Mar-09 1:22
marca29218-Mar-09 1:22 
AnswerRe: WPF StackPanel/ListView problem Pin
ABitSmart18-Mar-09 1:40
ABitSmart18-Mar-09 1:40 
GeneralRe: WPF StackPanel/ListView problem Pin
marca29218-Mar-09 2:26
marca29218-Mar-09 2:26 
GeneralRe: WPF StackPanel/ListView problem Pin
ABitSmart18-Mar-09 3:22
ABitSmart18-Mar-09 3:22 
GeneralRe: WPF StackPanel/ListView problem [modified] Pin
marca29218-Mar-09 22:13
marca29218-Mar-09 22:13 
GeneralRe: WPF StackPanel/ListView problem Pin
ABitSmart18-Mar-09 23:59
ABitSmart18-Mar-09 23:59 
GeneralRe: WPF StackPanel/ListView problem Pin
ABitSmart19-Mar-09 2:40
ABitSmart19-Mar-09 2:40 
GeneralRe: WPF StackPanel/ListView problem Pin
marca29219-Mar-09 3:21
marca29219-Mar-09 3:21 
My datasource is a generic List.



<DataTemplate x:Key="PhoneBookPostTemplate">
<Grid Name="grid" Margin="0,5,5,5" Width="200" KeyboardNavigation.TabNavigation="Cycle">
<Rectangle Name="background" Stroke="Gray" Fill="{Binding Customization.SMSPhoneBookContactColor}" Opacity="0.4" RadiusX="10" RadiusY="10" />
<StackPanel Margin="5" >
.....
</StackPanel>
</Grid>
<DataTemplate.Triggers>
<DataTrigger Binding="{Binding IsEditing}" Value="true">
<Setter TargetName="noEdit" Property="Visibility" Value="Collapsed" />
<Setter TargetName="isEdit" Property="Visibility" Value="Visible" />
<Setter TargetName="editButton" Property="Visibility" Value="Collapsed" />
<Setter TargetName="saveButton" Property="Visibility" Value="Visible" />
<Setter TargetName="cancelButton" Property="Visibility" Value="Visible" />
<Setter TargetName="deleteButton" Property="Visibility" Value="Collapsed" />
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>



<Style x:Key="ListViewItemStyle1" TargetType="{x:Type ListViewItem}">
<Style.Triggers>
</Style.Triggers>
<Setter Property="Template" Value="{DynamicResource ListBoxItemControlTemplate1}"/>
</Style>

<ControlTemplate x:Key="ListBoxItemControlTemplate1" TargetType="{x:Type ListBoxItem}">

<Border Focusable="False" SnapsToDevicePixels="True" x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
<Grid>
<Rectangle Name="selectedBoreder" Stroke="{x:Null}" Fill="{Binding Customization.SMSSelectionBorder}" Margin="1" Opacity="0.4" RadiusX="10" RadiusY="10" Visibility="Collapsed" />
<ContentPresenter Focusable="False" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Visibility" TargetName="selectedBoreder" Value="Visible"/>
<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}"/>
</Trigger>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsSelected" Value="True"/>
<Condition Property="Selector.IsSelectionActive" Value="False"/>
</MultiTriggerrvfbis.Conditions>
<Setter Property="Visibility" TargetName="selectedBoreder" Value="Visible"/>
<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
</MultiTrigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
GeneralRe: WPF StackPanel/ListView problem [modified] Pin
sivaddrahcir23-Mar-09 12:59
sivaddrahcir23-Mar-09 12:59 
QuestionSearchable Mutli Column Combo Box in WPF Pin
bindasrakesh14518-Mar-09 0:17
bindasrakesh14518-Mar-09 0:17 
AnswerRe: Searchable Mutli Column Combo Box in WPF Pin
ABitSmart18-Mar-09 1:13
ABitSmart18-Mar-09 1:13 
QuestionPaint Brush in Silverlight Pin
logicon18-Mar-09 0:03
logicon18-Mar-09 0:03 
QuestionRe: Paint Brush in Silverlight Pin
Mark Salsbery18-Mar-09 5:52
Mark Salsbery18-Mar-09 5:52 
AnswerRe: Paint Brush in Silverlight Pin
Braulio Dez1-Apr-09 6:01
Braulio Dez1-Apr-09 6:01 
QuestionSingle Sign On In WPF Pin
GomathiR17-Mar-09 21:48
GomathiR17-Mar-09 21:48 
QuestionRe: Single Sign On In WPF Pin
Mark Salsbery18-Mar-09 6:27
Mark Salsbery18-Mar-09 6:27 
AnswerRe: Single Sign On In WPF Pin
GomathiR18-Mar-09 18:17
GomathiR18-Mar-09 18:17 
QuestionMediaElement does not work Pin
Christian Graus17-Mar-09 21:05
protectorChristian Graus17-Mar-09 21:05 
QuestionRe: MediaElement does not work Pin
Jeremiah Morrill22-Mar-09 18:05
Jeremiah Morrill22-Mar-09 18:05 
QuestionWPF event binding Pin
thangavel198717-Mar-09 21:04
thangavel198717-Mar-09 21:04 
AnswerRe: WPF event binding Pin
GomathiR17-Mar-09 21:52
GomathiR17-Mar-09 21:52 
GeneralRe: WPF event binding Pin
thangavel198717-Mar-09 22:53
thangavel198717-Mar-09 22:53 
GeneralRe: WPF event binding Pin
GomathiR18-Mar-09 18:19
GomathiR18-Mar-09 18:19 
AnswerRe: WPF event binding Pin
Ian Shlasko19-Mar-09 3:47
Ian Shlasko19-Mar-09 3:47 
QuestionHow to set the image inside a datagrid Pin
salon17-Mar-09 20:45
salon17-Mar-09 20:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.