How to scroll to a specific position into Xamarin Forms WebView? - c#

I'm using Xamarin Forms for displaying a huge html document. I want to open my page from the position which is stored in a database. Are there any ways? Thanks.

Maybe this will work:
MyWebView.Eval("window.scrollTo(0, 0)");
If not I would suggest using a Custom Renderer or
https://github.com/XLabs/Xamarin-Forms-Labs/wiki/HybridWebView
Hope this helps.

Related

Horizontal selector for Xamarin Forms

I am trying to implement a Horizontal selector for selecting notes for my notes app as indicated in the attached image on Xamarin Forms and don't know the way.
Please help!
I tried to do it using list view or layouts but its not working.enter image description here

Parse Markdowns in TextBlock in UWP .NET C#

I Want to parse a string which contains markdown and I also want to display the parsed markdown in the TextBlock of UWP App.
Some of the markdowns I want to parse :-
__bold__
_italic_
~!spoiler!~ - Here the text "spoiler" will be hidden and when I click it, it will show up the text.
youtube("https://youtu.be/aUnak1") - This will embed a youtube video.
[hyperlink](https://google.com) - Hyperlink.
Anyone has any idea how to achieve this in UWP App. If Someone knows please help me.
Thanks in Advnace...
You can take a look at the Windows Community Toolkit
it actually features a MarkdownTextBlock:
https://github.com/CommunityToolkit/WindowsCommunityToolkit/tree/rel/7.1.0/Microsoft.Toolkit.Uwp.UI.Controls.Markdown/
You can also take a look at the Windows Community Toolkit sample app:
https://www.microsoft.com/en-us/p/windows-community-toolkit-sample-app/9nblggh4tlcq

How to insert graph in windows form using .net C#?

I want to insert a live graph in my bandwidth monitor tool. Can any one help me to insert a simple graph in my form using .net C#?
Thanks in advance
The Chart control visualizes your data. It displays data in your Windows Forms program as a bar graph or chart.
Please refer these link i think it will help you.
http://www.codeproject.com/Articles/2210/Tracker-A-Windows-Form-graph-control
http://www.dotnetperls.com/chart
http://www.daniweb.com/software-development/csharp/code/451281/simple-line-graph-charting

Include Javascript/HTML 5 code in C#

Apologize if am wrong, i am developing metro apps using C# am stuck with Flyout,from below links i came to know that Flyouts are not possible in C# and XAML
link and
link
So, is there any way that i can develop flyout in JS/HTML5 and include them in my C# project.
Please Help me, Thanks in advance
Popup is a control in XAML that is very similar to a Flyout. You can just use that instead.
If I am understanding you right then please try this link:
http://blogs.msdn.com/b/eternalcoding/archive/2012/07/03/tips-and-tricks-for-c-metro-developers-the-flyout-control.aspx
I don't know what you want to do with the control - so detailed information would be helpful.

Slideshow with music Control photoalbum like Asp.net

I am searching for an Asp.net control like this one ,that can animate and make dynamically a slideshow with photos from database and music and then show in my asp.net page
Link here:
http://doctorbilic.com/cartea/
The above is coded in PHP
If you want to use Silverlight, then here is what you need:
These links are to source code to make a slideshow
http://www.codeplex.com/SlideShow
http://www.codeplex.com/SlideShow2
This link is to a blog entry on how to add sound to your Silverlight application
http://blogs.silverlight.net/blogs/msnow/archive/2008/07/25/tip-of-the-day-22-how-to-add-sound-effects-music-and-video-to-your-silverlight-app.aspx
Using those together will get you what you want.
Also look at this page. They have a product that will do it for you (also in silverlight) for about $50
This was done in Flash, actually. But you can try using jQuery with all its effects to achieve something close to that.

Categories