Click here to Skip to main content
15,915,328 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Exporting Grid to PDF Pin
Braulio Dez1-Apr-09 5:59
Braulio Dez1-Apr-09 5:59 
QuestionTreeview Pin
Ch.Gayatri Subudhi18-Mar-09 18:32
Ch.Gayatri Subudhi18-Mar-09 18:32 
AnswerRe: Treeview Pin
Pete O'Hanlon18-Mar-09 23:01
mvePete O'Hanlon18-Mar-09 23:01 
GeneralRe: Treeview Pin
Ch.Gayatri Subudhi19-Mar-09 0:02
Ch.Gayatri Subudhi19-Mar-09 0:02 
GeneralRe: Treeview Pin
Pete O'Hanlon19-Mar-09 0:57
mvePete O'Hanlon19-Mar-09 0:57 
GeneralRe: Treeview Pin
Ch.Gayatri Subudhi19-Mar-09 1:57
Ch.Gayatri Subudhi19-Mar-09 1:57 
GeneralRe: Treeview Pin
Pete O'Hanlon19-Mar-09 2:46
mvePete O'Hanlon19-Mar-09 2:46 
GeneralRe: Treeview Pin
Ch.Gayatri Subudhi19-Mar-09 19:35
Ch.Gayatri Subudhi19-Mar-09 19:35 
GeneralRe: Treeview Pin
Pete O'Hanlon19-Mar-09 22:39
mvePete O'Hanlon19-Mar-09 22:39 
General[Message Deleted] Pin
Ch.Gayatri Subudhi19-Mar-09 23:06
Ch.Gayatri Subudhi19-Mar-09 23:06 
GeneralRe: Treeview Pin
Pete O'Hanlon19-Mar-09 23:32
mvePete O'Hanlon19-Mar-09 23:32 
GeneralRe: Treeview Pin
Ch.Gayatri Subudhi20-Mar-09 19:33
Ch.Gayatri Subudhi20-Mar-09 19:33 
GeneralRe: Treeview Pin
Ch.Gayatri Subudhi24-Mar-09 18:06
Ch.Gayatri Subudhi24-Mar-09 18:06 
QuestionSilverlight 3 Beta Released Today! Pin
Mark Salsbery18-Mar-09 9:27
Mark Salsbery18-Mar-09 9:27 
AnswerRe: Silverlight 3 Beta Released Today! Pin
Abhishek Sur19-Mar-09 22:10
professionalAbhishek Sur19-Mar-09 22:10 
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 

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.