Click here to Skip to main content
14,298,783 members

Silverlight / WPF

 
GeneralRe: WPF Expander Pin
Pete O'Hanlon12-Sep-16 2:58
protectorPete O'Hanlon12-Sep-16 2:58 
GeneralRe: WPF Expander Pin
Itamar Gigi12-Sep-16 3:09
memberItamar Gigi12-Sep-16 3:09 
GeneralRe: WPF Expander Pin
Itamar Gigi12-Sep-16 2:39
memberItamar Gigi12-Sep-16 2:39 
GeneralRe: WPF Expander Pin
Itamar Gigi12-Sep-16 2:45
memberItamar Gigi12-Sep-16 2:45 
QuestionDynamic ContentControl > Style > DataTemplate....binding problem! Pin
Jayme658-Sep-16 6:46
memberJayme658-Sep-16 6:46 
QuestionListView SelectionChanged event not firing for the first already selected row. Pin
holdorf7-Sep-16 7:40
memberholdorf7-Sep-16 7:40 
AnswerRe: ListView SelectionChanged event not firing for the first already selected row. Pin
holdorf9-Sep-16 5:52
memberholdorf9-Sep-16 5:52 
QuestionWPF Listbox - How to keep the scrolling from changing the property? Pin
dbrenth6-Sep-16 3:49
memberdbrenth6-Sep-16 3:49 
Has anyone ever seen this? I have a Listbox control:
<ListBox Grid.Row="3" Grid.ColumnSpan="3" Margin="3" SelectionMode="Multiple"
                            ItemsSource="{Binding Children}" SelectedItem="{Binding SelectedChild}"          SelectionChanged="Children_SelectionChanged">

And there is a property IsSelected in the class that selecting an item changes correctly.
I also have a "Select All" button and an "Unselect All" button which seem to work. After pressing the button and counting the selected objects I get the expected counts.

Now my listbox has more items than fit in the view area, so the scroll bars appear.

The problem comes when I press the select all button and then scroll the list box. Even though my count said they were all selected, after I scroll, the items that were not in the window at the time the button was pressed revert to their prior state. The IsSelected property is re-called by the scrolling.

I don't know if I can make it any clearer. How do I keep the scroll bar from resetting the IsSelected property? Or How can I get the listbox to keep the items outside the visual area selected or unselected?

Thanks for any help.
Brent

QuestionDoes width and height need to be explicitly defined in ControlTemplate? Pin
James J M5-Sep-16 6:35
memberJames J M5-Sep-16 6:35 
QuestionComboBox - SelectedValue and SelectedItem Pin
Mycroft Holmes31-Aug-16 14:48
memberMycroft Holmes31-Aug-16 14:48 
QuestionWPF: Reading a document's bytes into a stream to store in a database table. Pin
holdorf31-Aug-16 10:47
memberholdorf31-Aug-16 10:47 
AnswerRe: WPF: Reading a document's bytes into a stream to store in a database table. Pin
Pete O'Hanlon31-Aug-16 11:16
protectorPete O'Hanlon31-Aug-16 11:16 
QuestionUWP. How to find out size of uwp Windows.Storage element? Pin
wind te26-Aug-16 22:42
memberwind te26-Aug-16 22:42 
AnswerRe: UWP. How to find out size of uwp Windows.Storage element? Pin
Pete O'Hanlon31-Aug-16 12:29
protectorPete O'Hanlon31-Aug-16 12:29 
QuestionClosing a static WPF Window from other Window instances. Pin
holdorf23-Aug-16 3:23
memberholdorf23-Aug-16 3:23 
AnswerRe: Closing a static WPF Window from other Window instances. Pin
holdorf23-Aug-16 4:09
memberholdorf23-Aug-16 4:09 
AnswerRe: Closing a static WPF Window from other Window instances. Pin
Richard Deeming23-Aug-16 4:27
mveRichard Deeming23-Aug-16 4:27 
QuestionCommunicating Between ViewModels Pin
JBHowl18-Aug-16 2:12
memberJBHowl18-Aug-16 2:12 
AnswerRe: Communicating Between ViewModels Pin
Pete O'Hanlon18-Aug-16 3:24
protectorPete O'Hanlon18-Aug-16 3:24 
SuggestionRe: Communicating Between ViewModels Pin
AlexaGrey8628-Aug-16 2:43
memberAlexaGrey8628-Aug-16 2:43 
AnswerRe: Communicating Between ViewModels Pin
Kenneth Haugland18-Aug-16 5:07
professionalKenneth Haugland18-Aug-16 5:07 
QuestionWPF / Prism: Design decision with different views for same region Pin
SutterA17-Aug-16 2:12
memberSutterA17-Aug-16 2:12 
AnswerRe: WPF / Prism: Design decision with different views for same region Pin
Gerry Schmitz17-Aug-16 6:22
mveGerry Schmitz17-Aug-16 6:22 
GeneralRe: WPF / Prism: Design decision with different views for same region Pin
SutterA18-Aug-16 20:05
memberSutterA18-Aug-16 20:05 
GeneralRe: WPF / Prism: Design decision with different views for same region Pin
Gerry Schmitz19-Aug-16 4:44
mveGerry Schmitz19-Aug-16 4:44 

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.