Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Silverlight
Hello everyone i would like to create a customised button which looks like a chat dialog shape instead of the normal rectangle . May i know how would i be able to do so?
 
Would be nice if someone could show me some tutorials on how it can be done using either the current VS or expression blend which most likey is the case,
 
Most importantly how to save the button in epxression blend and import it as a library class for visual studio silverlight for windows phone
THanks in advance!
 
Regards, TransformBinary
 

Hi guys, sry that i missed this point out, its a code generated button
Meaning i'm trying to MyButton btn = new MyButton();
instead of
 
Button btn = new Button();
Posted 19-Mar-12 11:11am
Edited 19-Mar-12 18:05pm
v3
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
SAKryukov at 19-Mar-12 17:09pm
   
Looks like a useful tutorial on the problem, my 5.
--SA
Wes Aday at 19-Mar-12 19:48pm
   
Thanks
Wonde Tadesse at 19-Mar-12 22:32pm
   
5+
Wes Aday at 19-Mar-12 22:33pm
   
Thanks
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

The one problem with the above article is that the button will not change for mouse over, pushed, etc. You will probably want to include visualstatemanager XAML to change the icon slightly when this happens. Look at http://www.primordialcode.com/blog/post/silverlight-custom-buttons-with-templates[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 DamithSL 315
1 Zoltán Zörgő 170
2 OriginalGriff 150
3 Sergey Alexandrovich Kryukov 120
4 Maciej Los 115
0 OriginalGriff 7,760
1 DamithSL 5,874
2 Sergey Alexandrovich Kryukov 5,444
3 Maciej Los 5,076
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web01 | 2.8.141223.1 | Last Updated 19 Mar 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100