Skip to main content

Microsoft Silverlight

Advanced Forum Search Results

  • Re: Inserting text value in the slider at equal interval

    As Jonathan said, you can place a TextBlock next to the slider to indicate the current value. A good technique for doing that is to use data binding. With data binding it's possible to do this without any code in the code behind. Here is an example from one of my projects:<StackPanel Orientation="Vertical"> ...
  • Re: silverlight chart control in 2.0 beta 2

    I would also recommend checking out the open source Visifire chart component. It can produce a good variety of very nice looking charts. The API for integrating it directly into your Silverlight application is still a little clumsy, but they have mentioned that they will be improving that in future versions. Hope this ...
  • re: Web Cast and Digging Deeper

    Hi Jesse, I just posted a question in the forums the other day asking if there was a way to reuse a control template for a button (very similar to yours here) where I could pass in both the text content and the image source. I was afraid it was going to require a custom control, but I was hoping that wasn't the answer. :-) I guess I'll be looking ...
  • Re: ControlTemplate/VSM question

    Hi Kieren, Thanks for the reply. I see what you're getting at, and it makes sense, but it presents me with another problem. I should have explained a little more in the original post. The reason I put both an image control and a ContentPresenter in the control template is because I wanted the button to contain an image, as well as text. So I ...
  • ControlTemplate/VSM question

    Hi, I've used Blend to template a standard button control with the VSM. I started with a new (empty) template and simply added a StackPanel containing an Image control and a ContentPresenter. I added some transforms for the various states and it all works very well and looks nice. But I'm having trouble figuring out one thing. If I now ...
  • Re: Styleless ListBox

    I didn't know about the ItemsControl - thanks for pointing that out! I'll give it a try as it looks like exactly what I wanted to do originally. Although the technique I discovered with the ListBox template is also working out. But it's good to know - I suspect the ItemsControl would be the "recommended" approach to doing ...
  • Re: Styleless ListBox

    Hi John, No I didn't try that - I don't think you can bind to a StackPanel (at least as far as I know). But I did figure out how to do what I wanted. I was actually making it a lot more complicated than it actually is. The trick is not to mess with trying to change the default style, but instead to just make an empty control template, and ...
  • Styleless ListBox

    Hi, I'm trying to figure out how to create a "styleless" ListBox. I've been reading about control templating and have been able to define and apply simple styles for things like buttons and textblocks. But I've having trouble trying to achieve something more complex with a listbox. Basically, I want a listbox where all of ...
Microsoft Communities