Scott Gu SilverLight 2 Tutorial Part 7(weblogs.asp.net)

submitted by EtienneTremblayEtienneTremblay(5008) 3 years, 11 months ago

Using Control Templates to Customize a Control's Look and Feel

1 comment |category: |Views: 33

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by sillysallysillysally(0) 2 years, 10 months ago 0

Hello Sco
I tried to build a small Silverlight sample application with the control template and buttons like the way you have described. But I get the error cannot find resource with the Name/Key RoundButton

I had the RoundButton.xaml in the Application directory, and set the Build Action to Resources. When that did not work, I moved it as part of Resources to Application.Web (and set the file's Build Action to Resources). Still same results. I tried having it in both Application directory and Application.Web and still the same result.

What am I doing wrong? Please help!

Thanks in advance

Reply

information Login or create an account to comment on this story