Include Javascript/HTML 5 code in C# - 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.

Related

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

ASP.NET MVC drag and drop designer example?

I'm looking for an example implementation of a ASP.NET MVC-based, drag&drop designer surface. My googling skills are failing me, so I thought maybe someone has knowledge on an example implementation.
I'm not looking for a paint on canvas functionality - I'd rather have dragable and dropable shapes/images.
Ideas anyone?
William Malone has a awesome tutorial about that, int tutorial he developed many functionalities and all very much explained.
Check it out:
Create a Drawing App with HTML5 Canvas and JavaScript

Simplest DIY datepicker and timepicker for a Metro app (c# & XAML)

I am working on a Metro app, and as far as I know there is no datepicker control available ATM. In my app the user is working with dates, and I am looking for a way to make this less painfull for the user.
What would be the best way to go about it? Anybody have a nice custom control sample they would like to share?
I have the same problem with graphs, but I am hoping to get an access code to Teleriks preview to their Win8 controls, but I couldnt see any date or timepickers there.
Currently there is not a WinRT DatePicker as explained in this MSDN answer. Tim Heuer and some are working on some simple WinRT components. You can find their work, called Callisto, on Github. A DatePicker looks to be next on the list, but they could always use help as well. The best place to start would be the Windows Phone 7 DatePicker. You can download the source from Codeplex.
Telerik has now released the beta of their windows 8 controls, one of them being a datepicker! Problem solved :)

Adding a help window to an application - C#

I've already searched on SO to see if there has been a similar question but I haven't found anything so far.
I'm looking to add a help window to my application, similar to the ones found in many other applications (Example below):
As you can see the help window allows you to give plenty of instructions for particular functions of an application, as well as the ability to print it off for future reference.
How would I go about adding this to my application?
The screenshot you posted is based on Windows Help. There is an SDK available from Microsoft to generate this.
In addition, there are many commercial products that dramatically simplify help creation, such as Adobe's Robohelp.
You can also look for a CHM editors / builders.
Look into the HelpProvider class.
You're looking for MDI Forms. Printing, menu bars, etc, are done the same as any basic winforms application.

Plug Textbox to Taskbar (or Titlebar window) with C#

I'm coding a application using C# to embed textbox to Taskbar as below picture:
(Taskbar)
https://docs.google.com/leaf?id=0B-E8VK5m5ETqZTI2ZjBlODUtOGI0MC00ZDRhLThjNzItMmE2MTA5NjZlODE5&hl=en
(Title)
https://docs.google.com/leaf?id=0B-E8VK5m5ETqZWE0NzM2MjktZTc5NS00MjdmLThkMmUtMTZjODA3MWUyZTRm&hl=en
--
I downloaded Window API code pack and view some example but I still don't know how to perform my scenario.
Anyone help me for a solution or article (I searched Google but didn't find any article).
Thanks a lot !
A simple Google search revealed the following links (there are more):
1: http://www.buttonsandbars.com/OnlineHelp/ICreate.Controls.Bars~ICreate.Controls.Bars.TaskBar.html
2:
http://www.pcreview.co.uk/forums/taskbar-controls-t3330966.html
3:
http://www.buttonsandbars.com/OnlineHelp/ICreate.Controls.Bars~ICreate.Controls.Bars.TaskBarItem.html
The first URL demonstrates with full source, how to draw a hyperlink on the taskbar with an image from what I can see, so this may be worth investigating into further.
Good luck!
Please refer, http://msdn.microsoft.com/en-us/library/windows/desktop/dd378460(v=vs.85).aspx
Refer a sample.
http://www.codeproject.com/Articles/2219/Extending-Explorer-with-Band-Objects-using-NET-and

Categories