WPF custom control

Discussion forum about all things Team Developer 7.x
Igor Ivanovic
Site Admin
Site Admin
Croatia
Posts: 769
Joined: 05 Mar 2017, 12:37
Location: Zagreb, Croatia

WPF custom control

Post by Igor Ivanovic » 12 Jun 2018, 14:15

Hi,

Does anyone of you guys use an WPF custom control in your apps and is willing to share some code?
I am trying to implement a richtextbox from Syncfusion, but without success.
All I get is a black box (literally) and no error at all.

Cheers,
Igor
Igor Ivanovic
Image

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 1137
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

WPF custom control

Post by Dave Rabelink » 13 Jun 2018, 08:12

Igor Ivanovic wrote:
12 Jun 2018, 14:15
I am trying to implement a richtextbox from Syncfusion, but without success.
All I get is a black box (literally) and no error at all.

This was some extra info given by OpenText engineer:
GMap.NET.WindowsPresentation is old and does not work at all. It also throws Exception if it run from Win32 application (it's easy to fix but still does not work).
In this case now SalMessageBox showing message from Exception appears.

Another issue on this samples is you cannot run Win32 application from IDE because of assemblies loading issue. But it works from generated executable.
TD IDE can load .NET assemblies from TD installation folder or Global Assembly Cache but not from application folder even though you add application folder to PATH.
This is default .NET runtime behavior and we cannot change it.
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Igor Ivanovic
Site Admin
Site Admin
Croatia
Posts: 769
Joined: 05 Mar 2017, 12:37
Location: Zagreb, Croatia

WPF custom control

Post by Igor Ivanovic » 15 Jun 2018, 08:35

Thanks Dave for stepping in.

I actually opened a ticket for the TD7.1 WPF documentation (a white paper JM wrote some times ago) and the management decided to simply withdraw it from the docs as it is misleading and the samples are missing/not working .
It seems to me that we have a WPF container only, some SalWPF functions to Invoke methods and Set/Get properties, but there are no interfaces exposed and we are left to ourselves to dig thru the WPF control docs to find out how to use it.
It was too good to be true that I will have a quick and good solution for displaying/simple editing of word docs or html without using MS Interop.
Not the first time though...
Igor Ivanovic
Image

Nicolas D
France
Posts: 7
Joined: 25 Jun 2018, 12:24
Location: St Pierre, France

WPF custom control

Post by Nicolas D » 25 Jun 2018, 14:08

Hello Igor,
I was able to implement cefSharp wpf browser in win32 TD 7.1 app.
In this sample, WpfApp1.exe has been build from C# code and WebBorwser.exe from TD WebBorwser.apt
For this to work I had to build an exe in a folder with the cefSharp runtimes.
If it can help ..
Chears
Nicolas
Everything here:
http://jmp.sh/4wXwNiq

Igor Ivanovic
Site Admin
Site Admin
Croatia
Posts: 769
Joined: 05 Mar 2017, 12:37
Location: Zagreb, Croatia

WPF custom control

Post by Igor Ivanovic » 27 Jun 2018, 10:46

Hello Nicholas,

Thanks for the sample, will try it.
Igor Ivanovic
Image

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 0 guests