Click here to Skip to main content
15,887,267 members
Home / Discussions / WPF
   

WPF

 
Answer[SOLVED] charting silverlight problem [modified] Pin
Super Lloyd15-Jun-11 20:43
Super Lloyd15-Jun-11 20:43 
QuestionHowTo? Make controls overlay Pin
samhenn14-Jun-11 22:18
samhenn14-Jun-11 22:18 
AnswerRe: HowTo? Make controls overlay Pin
SledgeHammer0115-Jun-11 6:32
SledgeHammer0115-Jun-11 6:32 
QuestionMicrosoft Expression Blend 4 Pin
εїзεїзεїз14-Jun-11 21:47
εїзεїзεїз14-Jun-11 21:47 
AnswerRe: Microsoft Expression Blend 4 Pin
Richard MacCutchan14-Jun-11 22:13
mveRichard MacCutchan14-Jun-11 22:13 
AnswerRe: Microsoft Expression Blend 4 Pin
Abhinav S16-Jun-11 21:39
Abhinav S16-Jun-11 21:39 
Questiongnn?? "To view this content, please install: Microsoft Silverlight" Pin
Super Lloyd14-Jun-11 20:36
Super Lloyd14-Jun-11 20:36 
QuestionWeird scrollbar behaviour in DataGrid when manipulating single Row Visibility Pin
Durango6613-Jun-11 23:54
Durango6613-Jun-11 23:54 
I'm using the WPF DataGrid that comes with .net 4.0.

The DataGrid's ItemsSource is bound to an ObservableCollection of ViewModels - one ViewModel for each Row. The count of rows is constant at any time. Depending on a Property in a row's viewmodel, the row has to be visible or collapsed. I do not want to manipulate the underlying itemssource because I want to keep the data in the viewmodels. I just want to set the Visibility of the rows.

So I created a style and set the DataGrid's "RowStyle" Property to it:

<Style x:Key="MyRowStyle" TargetType="{x:Type DataGridRow}">
<Style.Triggers>
<DataTrigger Binding="{Binding PropertyFromViewModel}" Value="False">
<Setter Property="Visibility" Value="Collapsed" />
</DataTrigger>
</Style.Triggers>
</Style>

This actually works, but the datagrid scrollbar's size is not constant anylonger.
When I scroll through the list, the scrollbar size changes and when I start scrolling from the top of the list, the scrollbar moves, but the list stays where it is. Only when the scrollbar reaches a certain point, the list moves as well.

I have tried filtering the list with a CollectionViewSource, this solves the problem, but makes the triggering of visible/collapsed very slow when changing the property in the view model and refreshing the filtering of the collectionviewsource.
AnswerRe: Weird scrollbar behaviour in DataGrid when manipulating single Row Visibility Pin
Mycroft Holmes14-Jun-11 1:14
professionalMycroft Holmes14-Jun-11 1:14 
GeneralRe: Weird scrollbar behaviour in DataGrid when manipulating single Row Visibility Pin
Durango6614-Jun-11 1:34
Durango6614-Jun-11 1:34 
QuestionButton in DataGridTemplateColumn throws ArgumentOutOfRangeException Pin
humble.apprentice13-Jun-11 10:13
humble.apprentice13-Jun-11 10:13 
QuestionHow to properly size ElementHost Pin
xusword13-Jun-11 8:28
xusword13-Jun-11 8:28 
QuestionProperty in ViewModel not displayed in View [modified] Pin
kurmanc13-Jun-11 5:07
kurmanc13-Jun-11 5:07 
AnswerRe: Property in ViewModel not displayed in View Pin
kurmanc14-Jun-11 2:08
kurmanc14-Jun-11 2:08 
QuestionReferencing resources in an external assembly Pin
RugbyLeague13-Jun-11 4:07
RugbyLeague13-Jun-11 4:07 
AnswerRe: Referencing resources in an external assembly Pin
SledgeHammer0113-Jun-11 10:01
SledgeHammer0113-Jun-11 10:01 
GeneralRe: Referencing resources in an external assembly Pin
RugbyLeague13-Jun-11 21:21
RugbyLeague13-Jun-11 21:21 
QuestionThe property or field has not been initialized. Pin
bhavnvyas13-Jun-11 1:21
bhavnvyas13-Jun-11 1:21 
QuestionStyle for Current Page of Datapager. Pin
www.Developerof.NET10-Jun-11 1:40
www.Developerof.NET10-Jun-11 1:40 
AnswerRe: Style for Current Page of Datapager. Pin
Mark Salsbery10-Jun-11 6:46
Mark Salsbery10-Jun-11 6:46 
GeneralRe: Style for Current Page of Datapager. Pin
www.Developerof.NET10-Jun-11 18:01
www.Developerof.NET10-Jun-11 18:01 
QuestionMoving Data from Silverlight to ASp.net via SQl server Pin
Vimalsoft(Pty) Ltd9-Jun-11 9:20
professionalVimalsoft(Pty) Ltd9-Jun-11 9:20 
AnswerRe: Moving Data from Silverlight to ASp.net via SQl server Pin
Mark Salsbery9-Jun-11 10:33
Mark Salsbery9-Jun-11 10:33 
GeneralRe: Moving Data from Silverlight to ASp.net via SQl server Pin
Vimalsoft(Pty) Ltd9-Jun-11 19:06
professionalVimalsoft(Pty) Ltd9-Jun-11 19:06 
GeneralRe: Moving Data from Silverlight to ASp.net via SQl server Pin
Mark Salsbery9-Jun-11 19:10
Mark Salsbery9-Jun-11 19:10 

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.