Print Page | Close Window

How to create a progressbar in XAML markup?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=22638
Printed Date: 25 December 2024 at 12:29am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to create a progressbar in XAML markup?
Posted By: evoX
Subject: How to create a progressbar in XAML markup?
Date Posted: 19 June 2015 at 9:04am
Is there a way to get the DC of a panel/grid or image markup and create a ProgressCtrl in that location? 

-------------
Product: Xtreme ToolkitPro 19.30
Platform: Windows 10 64bit
Language: Visual C++ (VS 2019)



Replies:
Posted By: jpbro
Date Posted: 19 June 2015 at 2:34pm
How about doing the ProgressBar in XAML?

http://forum.codejock.com/forum_posts.asp?TID=11171" rel="nofollow - http://forum.codejock.com/forum_posts.asp?TID=11171


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: evoX
Date Posted: 24 June 2015 at 6:19pm
Thanks! But you have to manually calculate the pixel positions and also update the xaml every time, which is not a very good solution.

-------------
Product: Xtreme ToolkitPro 19.30
Platform: Windows 10 64bit
Language: Visual C++ (VS 2019)


Posted By: evoX
Date Posted: 29 August 2015 at 8:18pm
So, is there any way to get the DC of a StackPanel or other Markup element? so I can place a control inside.

-------------
Product: Xtreme ToolkitPro 19.30
Platform: Windows 10 64bit
Language: Visual C++ (VS 2019)


Posted By: astoyan
Date Posted: 29 August 2015 at 10:38pm
It should be faily easy to achieve using markup scripting however it still requries some manual work to be done.
Starting from v17.0 beta 2 markup supports scripting, you can already try it out in the latest beta, but due to an issue with this release markup doesn't work in release mode, so you'll have to compile it in debug. There are several new XAML samles added that demonstrate scripting it using JavaScript, VBScript can be used as well.


Posted By: markr
Date Posted: 30 August 2015 at 6:36pm
Originally posted by astoyan astoyan wrote:

...but due to an issue with this release markup doesn't work in release mode, so you'll have to compile it in debug.

I'm using the MFC edition of XTP v17 beta 2, and markup is failing for me in debug mode as well as release mode.

- Mark R.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net