Author Topic: Tab header/title for new view in CaseContactRegion  (Read 2697 times)

Offline Gabi

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 0
Tab header/title for new view in CaseContactRegion
« on: March 13, 2017, 04:59:05 PM »
I have found a way to add a view in the CaseContactRegion, even though it is not neat and a better way to ensure the Contacts module is loaded first would be appreciated. But now I have another problem.

As shown on the following image, the new tab has no title.
[img width=640 height=410]https://s3.postimg.org/y9o188l0z/tab.png[/img]

How can I add a title to it?

Thank you in advance.

Offline PeteHoyle

  • Full Member
  • ***
  • Posts: 126
  • Karma: 13
Re: Tab header/title for new view in CaseContactRegion
« Reply #1 on: March 17, 2017, 10:00:50 AM »
Hi Gabi,

In the model of your custom view have you added and set the Header?

Have a look at the InteractionExtensionSample provided with WDE, that show how the Header is set.

[code] /// <summary>
/// Gets or sets the header to set in the parent view.
/// </summary>
/// <value>The header.</value>
public string Header
{
get { return header; }
set { if (header != value) { header = value; OnPropertyChanged("Header"); } }
}[/code]

Pete.

Offline Gabi

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 0
Re: Tab header/title for new view in CaseContactRegion
« Reply #2 on: March 20, 2017, 01:05:50 PM »
Yes, I have.

What could cause the header not to show as the title of the tab?

Offline PeteHoyle

  • Full Member
  • ***
  • Posts: 126
  • Karma: 13
Re: Tab header/title for new view in CaseContactRegion
« Reply #3 on: March 21, 2017, 09:07:47 AM »
Can you share your code, then we can have a look.

Offline Gabi

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 0
Re: Tab header/title for new view in CaseContactRegion
« Reply #4 on: April 18, 2017, 01:05:58 PM »
Sorry for the lack of response, the customer decided they didn't want it as a tab after all, so I'm putting this on hold until I need it again, if I ever do.