Is it possible to write unit test against the VirtualQueryableCollectionView? I tried to write a unit test to verify the VirtualItemCount, but it seems that the collection is tightly coupled to the UI components and therefore requires tests to run on a STA thread. Is this correct?
<telerik:GridViewDataColumn Header="Available Amount" UniqueName="Amount" DataMemberBinding="{Binding Amount}" > |
<telerik:GridViewDataColumn.AggregateFunctions> |
<telerik:SumFunction Caption="Sum: " ResultFormatString="{}{0:0}" SourceField="Amount" /> |
<telerik:AverageFunction Caption="Average: " ResultFormatString="{}{0:0}" SourceField="Amount" /> |
</telerik:GridViewDataColumn.AggregateFunctions> |
<telerik:GridViewDataColumn.Footer> |
<StackPanel Orientation="Vertical" Margin="5,0"> |
<telerik:AggregateResultsList ItemsSource="{Binding}" VerticalAlignment="Center" Grid.Column="4"> |
<ItemsControl.ItemTemplate> |
<DataTemplate> |
<StackPanel Orientation="Horizontal" VerticalAlignment="Center"> |
<TextBlock VerticalAlignment="Center" Text="{Binding Caption}" Width="100"/> |
<TextBlock VerticalAlignment="Center" Foreground="Blue" Text="{Binding FormattedValue}" /> |
</StackPanel> |
</DataTemplate> |
</ItemsControl.ItemTemplate> |
<ItemsControl.ItemsPanel> |
<ItemsPanelTemplate> |
<StackPanel Orientation="Vertical" /> |
</ItemsPanelTemplate> |
</ItemsControl.ItemsPanel> |
</telerik:AggregateResultsList> |
</StackPanel> |
</telerik:GridViewDataColumn.Footer> |
</telerik:GridViewDataColumn> |
<telerik:GridViewDataColumn Header="Available Amount" UniqueName="Amount" DataMemberBinding="{Binding Amount}" > |
<telerik:GridViewDataColumn.AggregateFunctions> |
<telerik:SumFunction Caption="Sum: " ResultFormatString="{}{0:0}" SourceField="Amount" /> |
<telerik:AverageFunction Caption="Average: " ResultFormatString="{}{0:0}" SourceField="Amount" /> |
</telerik:GridViewDataColumn.AggregateFunctions> |
</telerik:GridViewDataColumn> |
Hi,
First I apologize if the following issues are already replied.
I am using the WPF Calendar and I have the following issues:
calendar starts again from current month (June in our case).
How is it possible to show calendar starting from the right month?
In my example I use the following dates:
SelectableDateStart: 20 May 2011
SelectableDateEnd: 26 October 2011
I also calculate the DisplayDateStart to be the first day of SelectableDateStart,
and DisplayDateEnd to be the last day of SelectableDateEnd.
I get an ArgumentOutOfRangeException:
Invalid DisplayDateStart value.
Parameter name: sender
Thanks in advance