Switching between reports from combobox

Let's suppose that we have "bookPriceList" and "report2" reports on the server side and we need to switch between them from the client side application.
Adding combobox and "render" button sounds a good solution for the problem.
So, a little designing and our XAML will look like in the markup below:

<UserControl x:Class="SampleApplicationSL5.MainPage"
    d:DesignHeight="300" d:DesignWidth="400">
    <Grid x:Name="LayoutRoot" Background="White">
                <RowDefinition Height="20"/>
            <Grid Grid.Row="0">
                <ComboBox x:Name="comboReports">
                        <ComboBoxItem Content="bookPriceList"/>
                        <ComboBoxItem Content="report2"/>
                <Button Grid.Column="1"  Content="Render" Click="Button_Click" ></Button>
                ReportName="{Binding ElementName=comboReports, Path=SelectedValue.Content}">               

So, we have combobox with our report list and reportviewer ReportName is bounded to selected item.
In the codebehind we just need to call rendering:

private void Button_Click(object sender, RoutedEventArgs e)
    if (!string.IsNullOrEmpty(reportViewer.ReportName))

Here are you can see what we receive in the result application:

Add Feedback