Click here to Skip to main content
15,912,205 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Why do I need a connection string to use an Entity Framework data model? Pin
_T_C_20-Dec-15 13:04
_T_C_20-Dec-15 13:04 
GeneralRe: Why do I need a connection string to use an Entity Framework data model? Pin
Mycroft Holmes20-Dec-15 19:23
professionalMycroft Holmes20-Dec-15 19:23 
AnswerRe: Why do I need a connection string to use an Entity Framework data model? Pin
Gerry Schmitz20-Dec-15 18:07
mveGerry Schmitz20-Dec-15 18:07 
AnswerRe: Why do I need a connection string to use an Entity Framework data model? Pin
_T_C_21-Dec-15 7:18
_T_C_21-Dec-15 7:18 
GeneralRe: Why do I need a connection string to use an Entity Framework data model? Pin
Gerry Schmitz23-Dec-15 11:29
mveGerry Schmitz23-Dec-15 11:29 
QuestionHow do I bind based on the value selected in a list box? Pin
_T_C_19-Dec-15 15:45
_T_C_19-Dec-15 15:45 
AnswerRe: How do I bind based on the value selected in a list box? Pin
_T_C_19-Dec-15 17:59
_T_C_19-Dec-15 17:59 
SuggestionRe: How do I bind based on the value selected in a list box? Pin
Richard Deeming4-Jan-16 3:55
mveRichard Deeming4-Jan-16 3:55 
QuestionRequest for help with simple WPF Pin
_T_C_18-Dec-15 11:14
_T_C_18-Dec-15 11:14 
AnswerRe: Request for help with simple WPF Pin
Gerry Schmitz18-Dec-15 11:34
mveGerry Schmitz18-Dec-15 11:34 
GeneralRe: Request for help with simple WPF Pin
_T_C_18-Dec-15 11:53
_T_C_18-Dec-15 11:53 
GeneralRe: Request for help with simple WPF Pin
Gerry Schmitz18-Dec-15 12:08
mveGerry Schmitz18-Dec-15 12:08 
GeneralRe: Request for help with simple WPF Pin
_T_C_18-Dec-15 12:42
_T_C_18-Dec-15 12:42 
GeneralRe: Request for help with simple WPF Pin
Gerry Schmitz18-Dec-15 12:57
mveGerry Schmitz18-Dec-15 12:57 
GeneralRe: Request for help with simple WPF Pin
_T_C_18-Dec-15 13:01
_T_C_18-Dec-15 13:01 
GeneralRe: Request for help with simple WPF Pin
Gerry Schmitz18-Dec-15 12:51
mveGerry Schmitz18-Dec-15 12:51 
GeneralRe: Request for help with simple WPF Pin
_T_C_18-Dec-15 12:58
_T_C_18-Dec-15 12:58 
GeneralRe: Request for help with simple WPF Pin
Mycroft Holmes18-Dec-15 13:20
professionalMycroft Holmes18-Dec-15 13:20 
GeneralRe: Request for help with simple WPF Pin
Gerry Schmitz18-Dec-15 13:34
mveGerry Schmitz18-Dec-15 13:34 
AnswerRe: Request for help with simple WPF Pin
Matt T Heffron18-Dec-15 11:58
professionalMatt T Heffron18-Dec-15 11:58 
GeneralRe: Request for help with simple WPF Pin
_T_C_18-Dec-15 12:22
_T_C_18-Dec-15 12:22 
QuestionWPF - Quick Design Question Pin
Kevin Marois18-Dec-15 5:53
professionalKevin Marois18-Dec-15 5:53 
AnswerRe: WPF - Quick Design Question Pin
Joseph M. Morgan18-Dec-15 7:24
Joseph M. Morgan18-Dec-15 7:24 
QuestionUsing DataTemplates Trigger for listbox Pin
Saurabh18cs17-Dec-15 21:35
Saurabh18cs17-Dec-15 21:35 
Hello Everyone,

I am having a listbox control in my app which is also having datatemplate inside and everything is fine until here. My problem starts when i want to change border background color on different databind for tag property of checkbox [please see datatemplate trigger in below code to understand what i am trying to achieve]. Please help me out.

Comment part in below code are the options i am trying to use but unfortunately not workking

<ListBox Name="listBoxDraftVersions" Height="200" Width="250" Margin="3" ItemsSource="{Binding DraftList}" SelectionMode="Multiple" SelectionChanged="listBoxDraftVersions_SelectionChanged">
<ListBox.ItemTemplate>
<DataTemplate>
<Border x:Name="TheBorder" BorderBrush="Gray" BorderThickness="1" Padding="4" CornerRadius="4" Margin="2">
<CheckBox Name="radioButZone" Content="{Binding DraftName}" Tag="{Binding FunctionCode}" IsChecked="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListBoxItem}}, Path=IsSelected}">
</CheckBox>
<Border.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="AliceBlue" Offset="0.15" />
<GradientStop Color="White" Offset="0.85" />
<GradientStop Color="Lavender" Offset="1" />
</LinearGradientBrush>
</Border.Background>
<!--<Border.Style>
<Style>
<Style.Triggers>
<Trigger Property="" Value="CMDSDMODIFYFEATURES">
<Setter Property="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Border}}, Path=Background}" Value="Blue" />
</Trigger>
</Style.Triggers>
</Style>
</Border.Style>-->
</Border>
<!--<DataTemplate.Triggers>
<DataTrigger Binding="{Binding Tag}" Value="CMDSDMODIFYFEATURES">
<Setter TargetName="TheBorder" Property="Background" Value="Blue" />
</DataTrigger>
</DataTemplate.Triggers>-->
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
AnswerRe: Using DataTemplates Trigger for listbox Pin
Joseph M. Morgan18-Dec-15 7:27
Joseph M. Morgan18-Dec-15 7:27 

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.