Print Page | Close Window

[HELP] Button Customisation

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: MarkupLabel Control
Forum Description: Topics Related to Codejock MarkupLabel Control
URL: http://forum.codejock.com/forum_posts.asp?TID=19845
Printed Date: 05 May 2024 at 7:13pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [HELP] Button Customisation
Posted By: Xander75
Subject: [HELP] Button Customisation
Date 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)



Replies:
Posted By: Xander75
Date 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)



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