Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > MarkupLabel Control
  New Posts New Posts RSS Feed - [HELP] Button Customisation
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[HELP] Button Customisation

 Post Reply Post Reply
Author
Message
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post Topic: [HELP] Button Customisation
    Posted: 08 June 2012 at 5:56am
Hi,

I have stumbled upon yet more unsupported style properties! This time it's the BorderBrush & BorderThickness for the Button element.

The following code works perfectly in XAMLPad, but in the Codejock MarkupPad it fails.

<Page xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation'>
    <StackPanel>
        <StackPanel.Resources>
            <Style TargetType="Button">
                <Setter Property="Background" Value="#FFFFFF"/>
                <Setter Property="BorderBrush" Value="#FFFFFF"/>
            </Style>
        </StackPanel.Resources>
   
        <Button Cursor='Hand' Width='200'>
            <StackPanel>       
                <Image Source='file://C:/dilbert.bmp' Stretch='Fill' Height='160' Width='200'/>
                <TextBlock HorizontalAlignment='Center' TextAlignment='Center' TextWrapping='Wrap'>Dilbert</TextBlock>
            </StackPanel>
        </Button>
    </StackPanel>
</Page>

I am trying to display several images loaded dynamically at runtime so the user can click on these images for them to open. I found this was an easy way to do so as I can add a Button.Click event to the Button, which I have working perfectly. The only issue is I don't want the button look by default, the Background is changed to white but I am left with the bottom and right border that I can't get rid of Cry

Any ideas appreciated, or if CJ are watching... Please add the BorderBrush & BorderThickness properties!!!
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)
Back to Top
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post Posted: 11 June 2012 at 9:26am
Again I have found more properties that the CJ MarkupPad doesn't support.

This could be a very useful and powerful control if we could access the properties that we can in xaml.

Please, Please, Please CJ... Can you confirm if this control will be updated soon with the missing xaml functionality?

PS. My original post above was posted 3 days ago and has not yet been approved and displayed in the forum... What gives! This site moderation has severely dampened the spirits of many a developer who used this to get feedback and help.
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.