Hi Jose,
Thank you for your interest in Wisej.NET!
Unfortunately, WinForm controls are not compatible with Wisej.NET itself, since all of our components are javascript web controls.
You can get around that by using the ASP.NET Core or ASP.NET MVC components, if you went the ASP.NET MVC route, you’ll need to use our ASP.NET Wrapper extension to implement it with Wisej.NET!
We do offer custom implementation services, if that interests you, please contact us at sales[AT]iceteagroup.com for more info.
Best,
Alaa
Hi Devin,
I’m putting your answer above to close this issue 🙂
<PropertyGroup>
<ActiveDebugFramework>net6.0</ActiveDebugFramework>
</PropertyGroup>
Best,
Alaa
Hello,
we’re using Visual Studio 2022 version 17.7.1 along with Wisej 2.5.35.
For the designer, we’re using the NuGet package provided by Wisej-2-VisualStudioDesigner 2.5.20.
Will this NuGet package also be updated?
We’re encountering the issue described in this post related to the Edge/Chrome renderer.
Thanks in advance.
I’ll answer my own question here,
It appears you cannot, however for a workaround and it’s a bit tedious
I have opened the .csproj file and commented out the 4.8 target <ItemGroup> sections for my forms I want to edit, and unload and reload the project. Then I can edit the forms in the designer. However of course it will not compile now, so before I can run in the debugger I have to remove my comments for the 4.8 Item Group so it will compile again.
I am really looking forward for the .net core designer 🙂 cause this is a pain.
To anyone who’s still having designer issues, I have updated the original post with new VSIX links.
Please give them a try and let us know if anything is not working as expected!
Best,
Alaa
Hello,
we’re using Visual Studio 2022 17.7.1.
We have deinstalled the old extension (Designer 3.2.4) and installed the new one. No changes at all after complete system reboot, same results for IE or Edge Renderer.
Some simple forms (no subclasses) are displayed correctly with IE Renderer.
Screenshots attached.
Thank you
You can use Application.ActiveProfile
https://docs.wisej.com/api/wisej.web/general/application#activeprofile
For example, this code snippet would set the text of a button to be the name of the active profile when the button is clicked.
private void button1_Click(object sender, System.EventArgs e)
{
button1.Text = Application.ActiveProfile.Name;
}
Application.ActiveProfile
is a ClientProfile object, so you might find the ClientProfile documentation helpful as well:
https://docs.wisej.com/api/wisej.web/general/application/wisej.core.clientprofile
-Julie
Hello,
You can’t do that out of the box. There’s not a property or method for it in the PDFViewer documentation
The pdf viewers use the URL as the file name- they don’t care about the filename field in the header response.
Check out this forum post for a workaround- you can override the IWisejHandler interface in a subclass of PdfViewer.
-Julie
Please note that this preview build of the VSIX is only available through the links that Alaa posted
and not in the Visual Studio Marketplace.
Thus you need to deinstall your exiting Wisej.NET version in Visual Studio
(Extensions – Manage Extensions – Select Wisej.NET from the Installed Extensions – Uninstall)
Then install the downloaded version.
When Wisej.NET 3.2.5. is officially released, it will be back into the Visual Studio Marketplace and you can directly update it in Visual Studio.
Sorry for any inconvenience.
Best regards
Frank
This has been answered in the original forum post.
Please don´t post multiple threads on the same topic, thanks.
Best regards
Frank
Hi Christian,
The issue was due to a version mismatch of the WebView2 native library that was updated by Wisej, and the one we ship with the Designer.
We fixed it and we are still testing it internally!
An update to the extension will be shipped as soon as possible.
Best,
Alaa
Wisej refers to the fullcalendar implementation. Whatever their license requirements are you have to follow up with them. There are also many other scheduler implementations that we provide using DevExpress, Syncfusion, Telerik components. All requiring a license. Note: We are not related to VWG in any way.
Please use the IE renderer instead of Edge as a workaround while we investigate the issue.
You might find this forum thread helpful: wisej.com/support/question/wisej-form-freeze-after-update-visual-sudio-2022-v-17-6-2
-Julie
Ciao Tiziano, here is the explanation.
What you see with the base64 image is the local javascript image cache implemented in Wisej client side components. There is also a bit more complexity to this related to using images in cells because cells in a datagrid are not components, they don’t exists as javascript components since they are rendered on demand when scrolling. So:
But:
Additionally, looking at the sample:
Your sample could be
dataGridView1.Rows.Add(row1);
dataGridView1.Rows.Add(row2);
dataGridView1[0, 0].Value = “resource.wx/Wisej.Ext.MaterialDesign/android-logo.svg?color=#fca326”;
dataGridView1[0, 1].Value = “resource.wx/Wisej.Ext.MaterialDesign/android-logo.svg”;
Or
dataGridView1.SetValue(0, 0, “resource.wx/Wisej.Ext.MaterialDesign/android-logo.svg?color=#fca326”);
dataGridView1.SetValue(0, 1, “resource.wx/Wisej.Ext.MaterialDesign/android-logo.svg”);
Using SetValue() prevents the forced creation of a row when the grid is data bound.
HTH
First of all, thank you for your help.
I attach the project, and I think I understand one more detail.
In the project I load a DataGridView with two rows. The first column will contain the images whose render of our discussion.
The first row has an image with the color changed ( directive ?color=#…).
“resource.wx/DG.Ext.Font/lock.svg?color=#fca326”
The second row has a natural unmanipulated svg image (black)
“resource.wx/DG.Ext.Font/fax.svg”
It appears that color modification excludes from simple cashing.
In fact, by pressing F12 and hovering over the respective images, the first one is inline with many fonts, the second one has been downloaded to the browser’s source folder.
In fact, going to “Sources” and expanding the folders in the subfolder of “localhost:5000” > “resource.wx > DG.Ext.Font” we find the image of the second row of the table “fax.svg” (see the attachment Screenshot.png)
I wanted to ask you if you think the problem doesn’t exist, so should I ignore the inline of the first immegine because the browser will take care of it or should I pose the problem in pages where colored .svg’s are used to save having to load them in the resource file.
Bests Regards
Tiziano
Hi Andrew,
We have identified an issue similar to this one and fixed it.
The fix will be released with the new 3.2.4 release of Wisej.NET.
Best,
Alaa
Thanks!
We don’t produce any HTML. The html you see is Chrome’s representation of the DOM. Base64 sources are used routinely by our local image caching system and improve performance by a lot. Wisej doesn’t assemble or concatenate HTML, it uses dom elements directly (through a shadow fast dom system). When you inspect the HTML chrome rebuilds the HTML representation. Otherwise our HTML is simply the empty Default.html page.
Can you attach a small runnable sample project so we can give you a better explanation on why the URL is used in one case and why the base64 is embedded in another?
Hi Jun,
All Widgets / Containers have the “ShowLoader” property, you can control the “Spinner” that way.
There are a lot of samples in the forum, as a starting point please visit https://wisej.com/support/question/asyncawait-best-practices-in-wisej for more info!
Best,
Alaa
Hi Alaa,
There is no requirement, I can just use
Application.Session.MyVar = “value”;
But I saw this example in your migration documentation like this:
// Session is a dynamic object
Application.Session.MyVar1 = 1;
Application.Session.MyVar2 = “Test”;
// Statics moved to session
MyClass.Static1 = “Hello”;
// Becomes
Statics.MyClass.Static1 = “Hello”;
// It’s an easy search/replace.
Statics {
MyClass { get {
return Application.Session.MyClass; }}}
Wrapping your Session variables in a static class is just a little easier as the Variables are type casted and you don’t have to remember what they were you cant just type “Statics.” in VS and all your Session variables show up.
But since it’s a static class I was wondering about thread safety, maybe bad idea.
Thanks,
Devin