Using an SVG and be able to click and highlight the part? - c#

I am using forms application to import a SVG to a picture box and I am trying to find if it is possible to click a certain part/section of the SVG to highlight the clicked "segment".
If not possible in forms, is it possible with asp.net?
Update:
I follow the example on this site: https://www.codementor.io/#lasithapetthawadu/using-vector-svg-graphics-in-c-net-k9y1ybc8a
the sample code is in a download link on that site.
Thanks in advance
Beest, Marcus

Related

How to add file path to custom control through [...] button of properties in design time in WPF

I am trying to develop a wpf custom control component, where in i need to browse files from my local machine through property and need to select the file at design time. To do this we would need a button (...) and textbox to to hold the file path. File browsing and selection is done at design time and in run time the file should be displayed on the WPF form. I am able to achieve this Winforms (using UItype Editor ) however i am not able to do this in WPF as there is UItypeeditor is not available in wpf.
I [1]: https://i.stack.imgur.com/Lam5a.png attached One Sample Property Image, Expected output in design time of Custom control properties for your quick reference.
I am a new bee in WPF, request you to help with a sample code or link.
Thank you for helping me in Advance.
Please check out might help you this..
Hi Please have a look at this link. it has a sample project with implementation.

How to add button in Content Page to Capture Image using Custom Renderer- View

I wants to develop a Xamarin.Forms mobile app to capture image using native camera with Overlay. I am new in xamarin.forms. i have found below link-
https://learn.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/custom-renderer/view
but there is no capture button. i want to add capture button in Content Page (Xaml page/Shared code) not in xml page.
Please help..
thanks in advance
You can try with Xam.Plugin.Media

Winforms control for displaying html text

I am coding a Windows Forms Application in C#, and one of the requirements is to display some html code in a control, with the correct colors that correspond to the relevant tags.
E.g. When right clicking on a webpage in Google Chrome, then selecting View Page Source, a form is shown with all the html, correctly formatted, with tag colors and each line of code's line number.
Is there a free, reliable control that can do this? Is there an inbuilt Microsoft control that does this?
As I am new to this area of coding, can someone please provide me with some useful names, and some resource links if possible? I am not sure of the correct name for a control that does this, and as such, my Google searches have not come up with what I am looking for.
Also, the control needs to be trustworthy.
Thanks
You can try ScintillaNET control. It's open source and has HTML syntax highlighting as well as many other features.

Create a toolbar in c# that analyzes webpage text

I wanted to know if this was at all possible before I started researching. We have phones that come equipped with a javascript dialing api. Basically we open a webpage that is
phone.htm?ip=xxx&dialNumber=xxx
Is it possible to create an internet explorer toolbar to scan all the text on a webpage and either: show the phone numbers on the webpage in the toolbar, so they can click and delete them OR replace all the phone numbers on the webpage with links? Which would be more practical?
Seems like, what you are trying to do is similar to the Skype's Click-To-Call
http://www.skype.com/en/download-skype/click-to-call/
I advice you to follow the same thing that they did where the numbers in webpages turns into links

Image Thumb Previews for SharePoint

Is there a way to generate an image preview of images added into a SharePoint list?
The scenario is the following:
For image files (.jpg, .tif, .png) that are added into a SharePoint document library which are then listed or viewed via "list view web part on another page" when the user hovers over any of the image files a popup window or anything similar should be displayed showing a preview of the image. Is this possible to achieve in SharePoint and how would this be done.
Would css alone achieve this, or will it require c# code behind.
Many thanks,
Why not use SharePoint picture libraries ? There you got thumbnails, preview and so on.
Or you could make an custom solution using ex. jquery fancybox .
I would suggest that you use standard SharePoint or connect the hover effect on the picture library on your own list.
see
http://office.microsoft.com/en-us/windows-sharepoint-services-help/working-with-sharepoint-picture-libraries-HA001123335.aspx
http://www.youtube.com/watch?v=olaGyX4g2Cc

Categories