CRVS2010 Beta - WPF Viewer and ReportSource

I have been using the ReportSource from the viewer pre 2010 of visual studio.  Now that i upgraded and using the new crystal reports the ReportSource doesnt seem to be included with the WPF Viewer.  How do i bind my ReportDocument to the viewer.  I'm stuck cause their arent allot of examples out their and not sure what to do.
Thanks
Edited by: Don Williams on Jun 9, 2010 8:08 AM

Also, see [this|http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/a09f7025-0629-2d10-d7ae-df006a51d1a8] demo.
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup

Similar Messages

  • CRVS2010 Beta - WPF Viewer, how to hide the GroupTree control?

    All,
    I would like to turn off the display of the GroupTree for my reports using some property or function call? 
    I would also like to hide the text "Main Report" displayed in the status bar.  This is for the WPF viewer, not the WinForms viewer.
    Thanks,
    Stan

    For those who are using the WinForms viewer you can use the following code to hide/show the grouptree control.   Add this property to the class that is hosting the viewer.
    public bool ShowGroupTree
        set
              Control control = null;
              for (int i = 0; i < m_Viewer.Controls.Count; i++)
                  control = m_Viewer.Controls<i>;
                  if (control is ReportGroupTree)
                   {  //Hide the Group tree by default.
                       control.Visible = value;
                      continue;
    Edited by: Stan Harris on Aug 4, 2010 3:12 PM
    Edited by: Stan Harris on Aug 4, 2010 3:13 PM

  • CRVS2010 Beta - WPF CrystalReportsViewer

    Hello,
    I am having the following problem.
    In my application, I have the need to change the reportSource for the viewer at some times.
    I used to have a code like this, for it:
                    ViewerCore view = ReportsViewer.ViewerCore;
                    view.ReportSource = EditingReport.ReportDocument;
    What happened is that right now I am using a MVVM framework and I don't have access to my CrystalReportsViewer in the ViewModel.
    I tried to bind the ReportSource of the ViewerCore in the xaml, but I cannot cause the ViewerCore is read-only.
    I also tried to extend the CrystalReportsViewer control but an exception is launched saying that the component does not have a resource identified by the URI '/SAPBusinessObjects.WPF.Viewer;component/viewershell.xaml'
    Does anyone has a solution for this?
    Thanks a lot!

    What about:
    crReportDocument.Load("C:\Crystal\crnet\vbnet_win_simplepreviewreport\World Sales Report.rpt")
            crConnectionInfo = New ConnectionInfo()
            With crConnectionInfo
                .ServerName = "Server1"
                .DatabaseName = "Pubs"
                .UserID = "myuser"
                .Password = "mypassword"
            End With
            'Get the tables collection from the report object
            crDatabase = crReportDocument.Database
            crTables = crDatabase.Tables
            'Apply the logon information to each table in the collection
            For Each crTable In crTables
                crTableLogOnInfo = crTable.LogOnInfo
                crTableLogOnInfo.ConnectionInfo = crConnectionInfo
                crTable.ApplyLogOnInfo(crTableLogOnInfo)
            Next
            myCrystalReportViewer.ViewerCore.ReportSource = "crReportDocument"
    I know you're trying to use C#, but this is what I had handy...
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Connectivity Problem with WPF Viewer and Oracle based imbedded reports

    I've been using code to modify the Database, Username and Password in imbedded reports for quite a few years.  Whether I was using C++ V6 or C# in VS2008, the process has been basically the same.  Now I am trying to use the WPF Viewer in VS2010 and am getting an "ORA-00942: table or view does not exist" error.  I perform a successful Connectivity Test and receive the error when I'm trying to view the report. 
    If I comment out all of the code that sets the source of the data and performs the connectivity test, the report shows up in the viewer and I'm presented a logon window similar to what I see when i design the RPT file in Crystal Reports. i.e the "Server Name:" shows the name of the Oracle Database I used when I designed the report; the "Database: " is empty; the "Login ID:" displays an edit box and contains the User ID I used when designing the report; and the "Password: " displays an edit box in which I type the password.  Once I click on the OK button, the report is displayed in the WPF viewer.
    Here is the code starting after I have loaded the report into a ReportDocument:
    if(report.IsLoaded)
      CrystalDecisions.Shared.TableLogOnInfo crTableLogonInfo;
      CrystalDecisions.CrystalReports.Engine.Tables crTables = report.Database.Tables;
      foreach(CrystalDecisions.CrystalReports.Engine.Table crTable in crTables)
        crTableLogonInfo = crTable.LogOnInfo;
        crTableLogonInfo.ConnectionInfo.LogonProperties.Clear( );
        crTableLogonInfo.ConnectionInfo.Attributes.Collection.Clear( );
        crTableLogonInfo.ConnectionInfo.DatabaseName = null;
        crTableLogonInfo.ConnectionInfo.ServerName = MyDatabase;
        crTableLogonInfo.ConnectionInfo.UserID = MyUsername;
        crTableLogonInfo.ConnectionInfo.Password = MyPassword;
        crTable.ApplyLogOnInfo(crTableLogonInfo);
      report.SetParameterValue("StartingCPID", "AAAAAA");
      report.SetParameterValue("EndingCPID", "ZZZZZZ");
      if(report.Database.Tables[0].TestConnectivity())
        reportViewer.ViewerCore.ReportSource = report;
        reportViewer.ToggleSidePanel = SAPBusinessObjects.WPF.Viewer.Constants.SidePanelKind.None;
      else
        MessageBox.Show("Unable to Connect to Database in report.");
    Any idea what I'm doing wrong or what is different in this version?

    See if the KB [
    [1448013  - Connecting to Oracle database. Error; Failed to load database information|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333433343338333033313333%7D.do] helps.
    Also the following may not hurt to have a look at (if only for ideas):
    [1217021 - Err Msg: "Unable to connect invalid log on parameters" using Oracle in VS .NET|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313337333033323331%7D.do]
    [1471508 - Logon error when connecting to Oracle database in a VS .NET application|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333433373331333533303338%7D.do]
    [1196712 - Error: "Failed to load the oci.dll" in ASP.NET application against an Oracle database|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333133393336333733313332%7D.do]
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • CRVS2010 Beta - WPF / Entity Framework example?

    Has anyone been successful integrating Entity Framework objects into the CR WPF viewer?  The designer seems to work, but all we get is a blank page.  Trying to load the entities directly runs into trouble from the "not-nullable" problem and the nullable custom entities don't shoe up in the field selector (not sure why). 
    If you can share a positive experience, we'd appreciate it.

    I've been able to produce a report of our Entity Framework data by moving the data into local objects.  The WPF Report Viewer seems incapable of referring to classes in other projects of the solution.  More importantly when I try to use the Database Expert to use certain objects (tables) which link to each other through foreign keys, I am unable (because of viewer errors) to display the report.  Is anyone else working in a similar environment?

  • CRVS2010 Beta - Report Viewer Errors for Crystal Reports in VS 2010

    I have a project that was written in VS 2008 targeting the 3.5 framework which contains a ton of Crystal Reports.  I recieved my new license for VS 2010 and did the install along with the Crystal Reports for Visual Studio 2010 Beta 2.  I converted my project over successfully.  I am able to open up the reports on their own.  When I try to save them they want to be converted to the new format.  This also works fine.  My problem is the Crystal Reports Viewer.  I am not able to add any reports to the viewer without receiving error messages.  I have tried using the 10.5 and the latest version of the viewer, but receive errors everytime that I try to add a report to it.  I always recevie the following error:
    "Error invoking 'Choose a Crystal Report...'. Details: Invalid Report Source"
    I have also tried just creating a brand new report from the Crystal Report Viewer Tasks window.  When I do that I get this error:
    "Unable to find the report in the manifest resources. Please buld the project, and try again."  "Error invoking 'Create a New Crystal Report...'. Details: Unable to find the report in the mnifest resources. Please build the project, and try again."
    I have tried changed the framework target to 4.0, but this has not helped.  I have tried using the 14.0 versions of the references and the 10.5 versions.  I have searched all over the internet for a resolution, but can't seem to find one.  Any help would be greatly appreciated.

    I am having the same problem. You say make sure all of my assemblies are version 14. Three questions:
    1. Now that I have removed all of the old Crystal assemblies from my project, what are the assemblies that I need to add back?
    2. My VS 2010 "add references" popup shows me many crystal assembles (Crystal XI is also installed) which ones to I need to install now?
    3. If I don't know what they are, or where to find them, how do I determine their version?
    You solution reminds me of the old saying "If I had ham, I could make ham and eggs. If I had eggs!"
    More information please,
    J Rich
    Edited by: JosephRich on Nov 6, 2010 5:36 PM
    Edited by: JosephRich on Nov 6, 2010 5:39 PM

  • CRVS2010 Beta - Crystal reports and VS2010

    I wanted to ask you whether is it possible in any case to use crystal reports 10/11 with visual studio 2010. Is the only option to upgrade to crystal reports for vs2010?
    As I tried both versions I'm getting red cross on all of my crystal reports, and the crystal viewer could not be of course edited from vs2010 because there is no such component in the toolbox.

    Hello,
    Yes, no other versions of CR are supported in VS 2010 and currently there are no plans to support anything other than CR 2010 in VS 2010. They may work but if any issues we can't escalate them to R&D.
    CR4VS2010 is beta, so do not distribute to a production system if you plan to upgrade your app. And it is currently only supported on Clean PC's, no other versions of CR installed.
    Thank you
    Don

  • CRVS2010 Beta - Report viewer design mode problems

    When editing an aspx page that hosts a CrystalReportViewer and CrystalReportSource control, the viewer appears momentarily, then disappears (return to the 'Loading ...') display.
    This process cycles indefinitely (without crashing). I cannot close the aspx page as it appears the foreground thread is blocked.
    If I attach a debugger to VS, and break on CLR exceptions, I get a few that appear related to monitoring folders.
    Any suggestions?

    Can you run [Process Monitor|http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx], see what it tells you?
    Ludek

  • CRVS2010 - Hide Group Tree and Parameter Panel

    When I load a report into the CrystalReportsViewer:
    crViewer.ViewerCore.ReportSource = document;
    the viewer show by default the Group Tree and the Parameter Panel.
    I don't want this, I want by default these panels not shown.
    Is it possible?
    I tried with:
    crViewer.ViewerCore.ToggleGroupTree = false;
    crViewer.ViewerCore.ToggleParameterPanel = false;
    crViewer.ViewerCore.ToggleSidePanel = false;
    but it doesn't work. And I don't want to use the ToggleSidePanelButton.
    Thanks.
    PaoloB

    See [this|CRVS 2010 BETA - WPF Viewer - How to hide SidePanel?] forum thread.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • CRVS2010 Beta - How do i use CR2010 with MVVM

    Hi,
    How do i bind an property of type ReportDocument to Crystal Report Viewer (WPF) trough XAML ?

    See if this thread helps:
    Re: CRVS2010 Beta - WPF CrystalReportsViewer
    Ludek

  • CRVS2010 Beta - Error in report with currency field in WPF viewer

    When using CRVS2010 with one of my applications I discovered that an InvalidOperationException happens everytime I try to load a report that contains a Currency Field database entry in the WPF viewer.
    To be sure, I made a simple report just with the Currency field and the error happens the same way.
    The exception that I receive is:
    This Pop operation has no corresponding Push to remove from the stack because the stack depth of the DrawingContext is zero.
    And the Stack trace is:
    at System.Windows.Media.RenderDataDrawingContext.Pop()
       at SAPBusinessObjects.WPF.ViewerShared.PageRender.drawFieldObjectInstance(FieldObjectInstance fieldObjectInstance, VisualCollection visuals)
       at SAPBusinessObjects.WPF.ViewerShared.PageRender.drawReportObjectInstance(ReportObjectInstance instance, VisualCollection visuals, Rect sectionClipRect)
       at SAPBusinessObjects.WPF.ViewerShared.PageRender.drawSectionInstance(SectionInstance section, VisualCollection visuals)
       at SAPBusinessObjects.WPF.ViewerShared.PageRender.Render(VisualCollection visuals)
       at SAPBusinessObjects.WPF.ViewerShared.PageView.Render()
       at SAPBusinessObjects.WPF.ViewerShared.PageView.set_PageObj(PageObject value)
       at SAPBusinessObjects.WPF.Viewer.DocumentView.ShowNthPage(Int32 PageNumber, Boolean hasAnimation)
       at SAPBusinessObjects.WPF.Viewer.ReportAlbum.OnCreateNewDocumentViewComplete(CreateNewDocumentArgs args)
       at SAPBusinessObjects.WPF.Viewer.DelegateMarshaler.<>c__DisplayClass6`1.<Invoke>b__4(Object )
    This problem happens in the WPF viewer, but not in the WinForms viewer.
    Please, if you know, tell me what I am doing wrong.

    This seems to be a bug in the software.  We will provide a fix in the final release. 
    -Mandeep

  • CRVS2010 Beta - Fit to Width WPF Viewer in code-behind

    Does anyone know if there is a method that I can use in code behind
    to make the report in the WPF Viewer fit to width??
    I need this cause I want the report to fit to Width every time I resize my window.
    Thanks

    Hello,
    Try following
    CrystalReportViewer1.BestFitPage = true;
    Thanks,
    Saurabh

  • Performance problem with WPF Viewer CRVS2010

    Hi,
    We are using Crystal Reports 2010 and the new WPF Viewer. Last week when we set up a test machine to run our integration tests (several hundred) all report tests failed (about 30 tests) with a timeout exception.
    The testmachine setup:
    HP DL 580 G5
    WMWare ESXi 4.0
    Guest OS: Windows 7 Enterprise 64-bit
    Memory (guest OS): 3GB
    CPU: 1
    Visual Studio 2010
    Crystal Reports for Visual Studio 2010 with 64 bit runtime installed
    Visual Studio 2008 installed
    Microsoft Office 2010 installed
    Macafee antivirus
    There are about 10 other virtual machines on the same HW.
    I think the performance problem is related to text obejcts on a report document viewed in a WPF Viewer. I made a simple WPF GUI with 2 buttons and the first button executes a very simple report that only has a text object with a few words in it and the other button is also a simple report with only 1 text object with approx. 100 words (about 800 charchters).
    The first report executes and displays almost instantly and the second report executes instantantly but displays after approx. 1 min 30 sec.
    And execute in this context means that all VB.Net code runs in the compiler without any exception or performance problem. The performance problem seems to come after viewer.Show() (in the code below) has executed.
    I did another test on the second report and replaced the text obejct with a formula field with the same text as the text object and this test executed and displayed the report instantly.
    So the performance problem seems to have something to do with rendering of textobjects in the WPF Viewer on a virtual machine with the above setup.
    I've made several tests on local machines with Windows XP (32 bit) or Winows 7 (64 bit) installed and none of them have this performance problem. Its not a critical issue for us because our users will run this application on their local PCs with Windows 7 64-bit but its a bit problematic for our project not being able to run all of our integration tests but I will probably solve this by using a local PC instead.
    Here is the VB.Net code Im using to View the reports:
    Private Sub LightWeight_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs)
            Dim lightWeightReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument
            lightWeightReport.Load(Environment.CurrentDirectory & "\LightWeight.rpt")
            ' Initialize Viewer
            Dim viewer As LF.LIV.PEAAT.Crystal.Views.ReportViewer = New LF.LIV.PEAAT.Crystal.Views.ReportViewer()
            viewer.Owner = Me
            viewer.reportViewer.ViewerCore.ReportSource = lightWeightReport
            viewer.Show()
        End Sub
        Private Sub LightWeightSlow_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs)
            Dim lightWeightReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument
            lightWeightReport.Load(Environment.CurrentDirectory & "\LightWeightSlow.rpt")
            ' Initialize Viewer
            Dim viewer As LF.LIV.PEAAT.Crystal.Views.ReportViewer = New LF.LIV.PEAAT.Crystal.Views.ReportViewer()
            viewer.Owner = Me
            viewer.reportViewer.ViewerCore.ReportSource = lightWeightReport
            viewer.Show()
        End Sub
    The reports are 2 empty default reports with only 1 textobject on the details section.
    // Thomas

    See if the KB [
    [1448013  - Connecting to Oracle database. Error; Failed to load database information|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333433343338333033313333%7D.do] helps.
    Also the following may not hurt to have a look at (if only for ideas):
    [1217021 - Err Msg: "Unable to connect invalid log on parameters" using Oracle in VS .NET|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313337333033323331%7D.do]
    [1471508 - Logon error when connecting to Oracle database in a VS .NET application|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333433373331333533303338%7D.do]
    [1196712 - Error: "Failed to load the oci.dll" in ASP.NET application against an Oracle database|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333133393336333733313332%7D.do]
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • "CRVS2010 Beta - viewer size issue

    Hello,
    I'm having an issue with the Crystal Reports viewer in a web application. I'm using visual studio 2010 with CRVS2010 Beta 2 installed. In design mode, the web form shows the report in full size as expected, but when I run the application and pull up the report, all I see is the Group Tree icon.
    I've tried setting the height and width on the viewer, but it doesn't seem to have any effect. I placed a border around the viewer so I could be sure it wasn't resizing, and it wasn't.
    I also have a button outside of the viewer that saves the report off as pdf, and that seems to be working just fine. The report saves with all the data and looks perfect.
    I've installed both the 32 bit and 64 bit runtimes on my development machine, but it did not help. I set the application to target 32 bit only, but no help. I set IIS App Pool to Classic mode, no help.
    This is an app that was converted from VS 2008 / .NET Framework 3.5 on a new development machine running VS 2010 & 4.0, so there was no previous version of CR installed.
    I'm running Windows 7 Ultimate N 64bit as OS.
    Here is the code for the viewer.
    <CR:CrystalReportViewer ID="crvPrintPOC" runat="server" AutoDataBind="true"
            BorderStyle="Inset" BorderWidth="2" BestFitPage="True" SeparatePages="True"
            DisplayToolbar="True" HasPageNavigationButtons="True"
            PrintMode="Pdf" HasCrystalLogo="True"
            ReportSourceID="CrystalReportSource1" Height="705px" Width="900px" />
    <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
            <Report FileName="reports\CPRPT-201 CB_Proof_Claim.rpt">
            </Report>
    </CR:CrystalReportSource>
    Thank You!

    Thank you for the suggestions Ludek and Adam,
    I tried deleting the viewer and adding it again, but still get the same result. You can view a screen capture at http://www.flickr.com/photos/54613233@N07/
    I also removed the property BestFitPage, but it didn't make any difference.
    Here is how the code looks now
    <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
         <Report FileName="reports\CPRPT-201 CB_Proof_Claim.rpt">
         </Report>
    </CR:CrystalReportSource>
    <CR:CrystalReportViewer ID="crvPrintPOC" runat="server"
            AutoDataBind="true" ReportSourceID="CrystalReportSource1" />
    Edited by: dav1_1 on Oct 6, 2010 8:56 PM

  • Month view, week view and working week view in outlook calendar in wpf

    Hello everybody!
    i was posted
    http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/7d927ca0-a110-4ede-bb2c-fa0070625722/ here how to make Outlook calendar sheet view , and tried
    http://www.codeproject.com/Articles/30881/Creating-an-Outlook-Calendar-Using-WPF-Part-2 this sample now i wanted it in Week view ,month view and working week(without sat & sun) , anybody knows any idea for this further requirement.
    Thanks & Regards dhampall

    Hi dhampall_79,
    Ok, you could open the project you shared, and open RudiGrobler.Controls/Calendar/Themes/Generic.xaml file, and then you could find below part of code:
    <Style TargetType="{x:Type local:Calendar}">
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="{x:Type local:Calendar}">
    <Border Background="#E3EFFF"
    BorderBrush="#6593CF"
    BorderThickness="2,2,2,2">
    <Grid>
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="50" />
    <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
    <RowDefinition Height="38" />
    <RowDefinition Height="22" />
    <RowDefinition Height="*" />
    </Grid.RowDefinitions>
    <StackPanel Orientation="Horizontal" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Margin="5,0,0,0">
    <Button Content="Previous" Height="25" Command="{x:Static local:Calendar.PreviousDay}" Background="{x:Null}" BorderBrush="{x:Null}">
    </Button>
    <Button Content="Next" Height="25" Command="{x:Static local:Calendar.NextDay}" Background="{x:Null}" BorderBrush="{x:Null}">
    </Button>
    </StackPanel>
    <Border BorderBrush="#6593CF" BorderThickness="0,0,1,1" Grid.Column="0" Grid.Row="1" />
    <local:CalendarDayHeader Grid.Column="1" Grid.Row="1" x:Name="PART_DayHeader"/>
    <ScrollViewer Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" x:Name="PART_ScrollViewer">
    <Grid>
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="50" />
    <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>
    <local:CalendarLedger Grid.Column="0" x:Name="PART_Ledger"/>
    <local:CalendarDay Grid.Column="1" x:Name="PART_Day" />
    </Grid>
    </ScrollViewer>
    </Grid>
    </Border>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>
    Above code is the appearance of the View, you could create your own view and replace
    <local:CalendarLedger Grid.Column="0" x:Name="PART_Ledger"/>
    <local:CalendarDay Grid.Column="1" x:Name="PART_Day" />
    You could change above two lines to your control, and then you could get what you want.
    best regards,
    Sheldon _Xiao[MSFT]
    MSDN Community Support | Feedback to us
    Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Maybe you are looking for