Click here to Skip to main content
15,917,538 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Have I done something REALLY dumb? Pin
Gerry Schmitz27-Nov-15 14:20
mveGerry Schmitz27-Nov-15 14:20 
Questionhow to find progress bar inside listview in wpf Pin
Member 1021435721-Nov-15 21:12
Member 1021435721-Nov-15 21:12 
AnswerRe: how to find progress bar inside listview in wpf Pin
Joseph M. Morgan18-Dec-15 7:19
Joseph M. Morgan18-Dec-15 7:19 
QuestionWPF Understanding Routed Events Pin
Kevin Marois3-Nov-15 7:12
professionalKevin Marois3-Nov-15 7:12 
AnswerRe: WPF Understanding Routed Events Pin
Richard Deeming3-Nov-15 7:29
mveRichard Deeming3-Nov-15 7:29 
QuestionHow to Change Silverlight Datepicker Format as 'dd/MM/yyyy' Pin
suchitagorivale1-Nov-15 18:18
suchitagorivale1-Nov-15 18:18 
AnswerRe: How to Change Silverlight Datepicker Format as 'dd/MM/yyyy' Pin
Mycroft Holmes1-Nov-15 22:05
professionalMycroft Holmes1-Nov-15 22:05 
QuestionListbox itemtemplate binding Pin
Saurabh18cs22-Oct-15 23:07
Saurabh18cs22-Oct-15 23:07 
I want my button to be enable only when one item in listbox is checked else disable the button. how to achieve this? Any help please

<ListBox Name="listBoxDraftVersions" Height="200" Width="250" Margin="3" ItemsSource="{Binding DraftList}">
<ListBox.ItemTemplate>
<DataTemplate>
<Border x:Name="TheBorder" BorderBrush="Gray" BorderThickness="1" Padding="4" CornerRadius="4" Margin="2">
<CheckBox Name="radioButZone" Content="{Binding DraftName}" 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>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>

<Button Content="Load" IsDefault="True" x:Name="btnLoad" Style="{StaticResource MetroButton}" Click="btnLoad_Click" />

i tried
IsEnabled="{Binding ElementName=listBoxDraftVersions, Path=IsSelected}" not working
AnswerRe: Listbox itemtemplate binding Pin
Gerry Schmitz23-Oct-15 7:55
mveGerry Schmitz23-Oct-15 7:55 
GeneralRe: Listbox itemtemplate binding Pin
Saurabh18cs23-Oct-15 16:19
Saurabh18cs23-Oct-15 16:19 
GeneralRe: Listbox itemtemplate binding Pin
Gerry Schmitz23-Oct-15 17:21
mveGerry Schmitz23-Oct-15 17:21 
GeneralRe: Listbox itemtemplate binding Pin
Saurabh18cs23-Oct-15 20:19
Saurabh18cs23-Oct-15 20:19 
GeneralRe: Listbox itemtemplate binding Pin
Gerry Schmitz24-Oct-15 5:35
mveGerry Schmitz24-Oct-15 5:35 
QuestionWPF ListBoxItem Quick Question Pin
Kevin Marois16-Oct-15 8:17
professionalKevin Marois16-Oct-15 8:17 
SuggestionRe: WPF ListBoxItem Quick Question Pin
J. Calhoun2-Nov-15 6:22
J. Calhoun2-Nov-15 6:22 
QuestionSelectionChanged event is not working Pin
Ashfaque Hussain15-Oct-15 1:52
Ashfaque Hussain15-Oct-15 1:52 
AnswerRe: SelectionChanged event is not working Pin
Richard Deeming15-Oct-15 2:48
mveRichard Deeming15-Oct-15 2:48 
QuestionCheckbox IsChecked property is not binding Pin
Ashfaque Hussain14-Oct-15 2:01
Ashfaque Hussain14-Oct-15 2:01 
AnswerRe: Checkbox IsChecked property is not binding Pin
Richard Deeming14-Oct-15 2:31
mveRichard Deeming14-Oct-15 2:31 
GeneralRe: Checkbox IsChecked property is not binding Pin
Ashfaque Hussain14-Oct-15 19:32
Ashfaque Hussain14-Oct-15 19:32 
AnswerRe: Checkbox IsChecked property is not binding Pin
Meshack Musundi14-Oct-15 23:54
professionalMeshack Musundi14-Oct-15 23:54 
GeneralRe: Checkbox IsChecked property is not binding Pin
Ashfaque Hussain15-Oct-15 1:56
Ashfaque Hussain15-Oct-15 1:56 
GeneralRe: Checkbox IsChecked property is not binding Pin
Meshack Musundi15-Oct-15 3:10
professionalMeshack Musundi15-Oct-15 3:10 
QuestionWPF Binding Issue Pin
Saurabh18cs12-Oct-15 17:55
Saurabh18cs12-Oct-15 17:55 
QuestionRe: WPF Binding Issue Pin
Meshack Musundi13-Oct-15 20:13
professionalMeshack Musundi13-Oct-15 20:13 

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.