Gradients, Styles and StaticResource Programatical |
Post Reply |
Author | ||
gibrael
Groupie Joined: 17 March 2009 Status: Offline Points: 18 |
Post Options
Thanks(0)
Posted: 12 April 2009 at 8:31pm |
|
Hi, I'm new to XAML and i have a few questions.
How can i create styles and gradients using xaml programmatically in VB6. For example I have this:
How do i code this in VB6 so that i can use it as a style? I was assuming it would be something like:
but I don't see any objects like MarkupLinearGradientBrush or MarkupGradientStop or Style in the manual and there are no samples available. Any information will be appreciated. Thank you very much. |
||
JantjeKeizer
Groupie Joined: 12 February 2008 Status: Offline Points: 70 |
Post Options
Thanks(0)
|
|
Yeah I'd like to know that too
I want to build markup in code with the markup objects, but I can't find a way to use styles and triggers that way or set gradients.
For now I reverted to having a textual template where I modify certain parameters, but it's not the prefered way.
|
||
JantjeKeizer
Groupie Joined: 12 February 2008 Status: Offline Points: 70 |
Post Options
Thanks(0)
|
|
Bump
|
||
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
|
Unfortunteally there is no class model for styles/resources now :(
|
||
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
||
BobWansink
Groupie Joined: 24 January 2008 Status: Offline Points: 59 |
Post Options
Thanks(0)
|
|
hi oleg,
I'll ask the default question in response to your answer: Will it be implemented, and if so: when will it be made available? After working with Parse() and large pieces of CString, I'd come to the conclusion that creating the objects at runtime is much more efficient and cleaner programming. Being able to create styles for objects and attaching/detaching them to and from MarkupObjects would really make CXTPMarkup a much more elegant UI solution. thanks in advance. Bob |
||
Product: Xtreme ToolkitPro (MFC) version 13.0.0
Platform: Windows (32bit) - XP - Vista Language: Visual C++ |
||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |