Good points. Thanks, Gerry :thumbsup: :)
Jakob Farian Krarup
Posts
-
WPF application displays differently in Windows 7 and Windows 10 -
WPF application displays differently in Windows 7 and Windows 10Great idea... It's off to the code-cave! :thumbsup: :-D
-
WPF application displays differently in Windows 7 and Windows 10Hi Jimmson Thank you for replying. I have been isolating diffent parts of our code, to find the culprit. We are basically building a custom WPF control runtime, to use it for printing, but since it is never shown on the UI, but sent off to the printer, the WPF framework doesn't perform lay-out on the control. I understand, that these lines in the code I am trying to get to work on WIN10, are responsible for enforcing the layout functionality in a non-visible control:
fixedPage.Measure(sizeOfCustomControlToPrint);
fixedPage.Arrange(new Rect(new Point(), sizeOfCustomControlToPrint));
fixedPage.UpdateLayout();if I comment these out in WIN10, it seems to be working, but I would really like to understand why. Maybe there is a bug in the WIN10 implementation...? :confused:
-
WPF application displays differently in Windows 7 and Windows 10Hi :) I have a WPF project working fine in Windows 7, but which has a completely changed layout, when the same project is executed under Windows 10. Do any of you have experiences with this issue? I have found out that WPF loads the current theme/skin from the OS, and that this may be the cause of the skewed layout, but I haven't been able to find any whitepapers or guides with information on how to work around this problem. It is a basic Grid with Stack Panels and Labels in it, if that helps. Any help/ideas/links would be much appreciated :thumbsup: Kind regards - Jakob
-
How do I convert iTextSharp text to outline (vectorize)?Well, I've gone with this for now: GDI+ Path to PDF[^] If anyone else has other methods, I'd still like to hear about them 👍 /Jake
-
How do I convert iTextSharp text to outline (vectorize)?Hi :) I am generating a PDF for use in a lasercutter. The printerdriver for the laser cutter takes vectors with a specific color and stroke-width, and uses them to cut all the way through the material. All rasters/bitmaps are just burnt into the surface of the material. I would like to be able to take a piece of text and convert it to a vector outline. I thought this would do it:
cb.BeginText()
cb.SetLineWidth(0.01f)
cb.SetColorStroke(BaseColor.RED)
cb.SetTextRenderingMode(PdfContentByte.TEXT_RENDER_MODE_STROKE)But apparently the stroke generated is a raster and not a vector. Any ideas? I could also go from the metods in GDI+/System.Drawing if anyone knows how to do that. Kind regards - Jakob
-
How to send MDNS Query over UDP to get Domain Name Pointer (PTR)?Thanks! I had forgotten about this one again, it's been five years :-).
Kind regards - Jakob :cool: ********************************************* Three kinds of people in the world: - Those who can count.. - Those who can't! 10 kinds of people in the world: - Those who understand binary - Those who don't
-
Help writing a SharePoint Sequential WorkFlowI am working on an assignment where a Project Manager (PM) gets the task of picking Approvers (Appr). This I could easily do with the Default Sequential WorkFlow if I was allowed to split it into two workflows: 1) PM picks Appr 2) Appr approves Unfortunately the customer insists that this should be a single WorkFlow, so it is possible to see in which of three stages the WorkFlow is: 1) Waiting for PM to pick Appr 2) Waiting for Appr to approve 3) All approved I can get the first two stages working using a While activity waiting for the PM's task of appointing to be finished. But I can't find out how to let the PM assign tasks to Apprs which also get to trigger anything on the original workflow. Any hints...?
Kind regards - Jakob :cool: ********************************************* Three kinds of people in the world: - Those who can count.. - Those who can't! 10 kinds of people in the world: - Those who understand binary - Those who don't
-
How to send MDNS Query over UDP to get Domain Name Pointer (PTR)?I am currently trying to get Axis IP cameras to identify themselves via the network using C#. I've captured the packets that Axis' own tool uses and I am trying to mimic them in .NET - without success : ( Apparently the Axis program sends out a Multicast UDP/TCP packet to 224.0.0.251:5353 with the message "_axis-video_tcplocal" Here's what I captured: 224.0.0.251 MDNS Standard query PTR _axis-video._tcp.local, "QU" question I've scoured the web looking for a method to do a Domain Name Pointer lookup without any luck. Any pointers...?
Kind regards - Jakob :cool: ********************************************* Three kinds of people in the world: - Those who can count.. - Those who can't! 10 kinds of people in the world: - Those who understand binary - Those who don't
-
Tutorial on ASP.NET 2.0 for us who know 1.1 :-)Hi Mike :) Thanks a lot - that's a great start!
Kind regards - Jakob :cool: ********************************************* Three kinds of people in the world: - Those who can count.. - Those who can't! 10 kinds of people in the world: - Those who understand binary - Those who don't
-
Access the PreRender event i VS2005Hi there :) In VS2003 whenever I wanted something done in the PreRender phase, I'd select the Page class from the control dropdown, select the events (on the lightning icon) and then double click on PreRender. Where do I access the same functionality in VS2005...? I know I could just hook up to the event in the Page_Load method, but I wanted to do it "right" :->
Kind regards - Jakob :cool: ********************************************* Three kinds of people in the world: - Those who can count.. - Those who can't! 10 kinds of people in the world: - Those who understand binary - Those who don't
-
Tutorial on ASP.NET 2.0 for us who know 1.1 :-)Hi there I am ready to throw my inhibitions overboard and dive into the 2.0 version of Asp.Net. I've got VS2005 installed, along with MSSQL2005 but I keep bumping into things that are done in another way or just isn't working like it used to. Can anyone point me to books or online tutorials that are especially built for someone like me, who is intimate with the workings of ASP.NET 1.1 - but not with 2.0...? MODIFIED:: Hm... found this http://www.codeproject.com/aspnet/ComparisonASP1xASP20.asp[^] And that's very much what I'd like, just with more details :)
Kind regards - Jakob :cool: ********************************************* Three kinds of people in the world: - Those who can count.. - Those who can't! 10 kinds of people in the world: - Those who understand binary - Those who don't
-
how to add javascript to webapplication and how to use itHi Ashrafhakiem :) Here are a couple of links: http://www.ondotnet.com/pub/a/dotnet/2003/09/15/aspnet.html[^] http://www.youcanlearnseries.com/Programming%20Tips/CSharp/ClientSideCode.aspx[^]
Kind regards - Jakob :cool: ********************************************* Three kinds of people in the world: - Those who can count.. - Those who can't! 10 kinds of people in the world: - Those who understand binary - Those who don't
-
Accessibility issue: Mouseover effect of image.What does the mouseover/mouseout achieve? If it is merely changing colors/layout then you could use CSS with a "hover" selector. If it is context-help, then you could make links beside every rollover place where the user could get the same information.
Kind regards - Jakob :cool: ********************************************* Three kinds of people in the world: - Those who can count.. - Those who can't! 10 kinds of people in the world: - Those who understand binary - Those who don't
-
Reducing time to start applicationHm.... weird! Is it a homemade icon..? There may be some bug in the icon file. Try setting the icon to the standard icon and check again for speed comparison.
Kind regards - Jakob :cool: ********************************************* Three kinds of people in the world: - Those who can count.. - Those who can't! 10 kinds of people in the world: - Those who understand binary - Those who don't
-
Reducing time to start applicationHi Hubert If I were you, I'd set the Trace.WriteLine statements at the beginning and end inside the InitializeComponent method. Then move the Trace.WriteLine "end" halfway up, then halfway again, etc. until you find THE line that takes all the time. I'm pretty sure there is one or two single lines taking up all the time. Let me know when you're closer to the problem.
Kind regards - Jakob :cool: ********************************************* Three kinds of people in the world: - Those who can count.. - Those who can't! 10 kinds of people in the world: - Those who understand binary - Those who don't
-
Reducing time to start applicationHi Hubert Could you dump the contents of InitializeComponent from NiceDialog here - so we could have a look. We should be able to find the problem ;-)
Kind regards - Jakob :cool: ********************************************* Three kinds of people in the world: - Those who can count.. - Those who can't! 10 kinds of people in the world: - Those who understand binary - Those who don't
-
PortHi mehrdadc48 I hope I am understanding you when I guess: You want to listen on port 5004 for any data sent to it? I beleive you can set up a TcpListener object to listen for any data sent to a given port on the machine you're running the program from. If you are using .net 2.0: http://msdn.microsoft.com/msdnmag/issues/05/08/HighPerformanceSockets/default.aspx[^] If you are using .net 1.0 http://www.eggheadcafe.com/articles/20020323.asp[^]
Kind regards - Jakob :cool: ********************************************* Three kinds of people in the world: - Those who can count.. - Those who can't! 10 kinds of people in the world: - Those who understand binary - Those who don't
-
ClickOnce and Security...yup that's another way of doing it :-) And - you're right - the command line parameters are tricky ;-)
Kind regards - Jakob :cool: ********************************************* Three kinds of people in the world: - Those who can count.. - Those who can't! 10 kinds of people in the world: - Those who understand binary - Those who don't
-
Deleting a fileGreat! ;-)
Kind regards - Jakob :cool: ********************************************* Three kinds of people in the world: - Those who can count.. - Those who can't! 10 kinds of people in the world: - Those who understand binary - Those who don't