Advanced Forum Search Results
-
I recently posted an example of how to capture touch events on individual elements, plus simple gesture support:
http://www.jebishop.com/2009/11/05/multi-touch-gesture-recognition-in-silverlight-3/
-
This should be possible by changing the ZIndex on MouseEnter/MouseLeave, using ListBoxItem.SetValue(Canvas.ZIndexProperty, x).
One thing to note, the ZIndex must be applied to the containing ListBoxItem itself. If it's instead applied to, for instance, an Image - the Image (or any other element that's not a ...
-
Correct, the ToolTipService.ToolTip attached property is not valid for System.Windows.Document.Run since it does not derive from UIElement.
However, a tooltip can be set on a TextBlock directly. Therefore, one possible way to achieve the effect of multiple Runs with different tooltips would be to place TextBlocks inside a ...
-
Do you need the absolute positioning functionality of Canvas as well? You can set the Canvas.ZIndex attached property on elements that aren't in a Canvas, and it will still change the rendering order.
If you do need a Canvas, this thread may be a good starting ...
-
Is the HorizontalContentAlignment property useful for your scenario?
Otherwise the approach to customizing ListBoxItems is generally as you describe - creating a custom DataTemplate for the items and setting the ListBox's ItemTemplate to this.
-
I believe it's a lambda expression with an empty parameter list.
More info can be found here: http://msdn.microsoft.com/en-us/library/bb397687.aspx
-
One way to approach this would be to create two storyboards that reverse each other without specifying a "start state" (i.e., KeyTime of 0) for either:
<Storyboard x:Name="rollin">
<ColorAnimationUsingKeyFrames BeginTime="00:00:00"
...
-
If you're binding to a list of strings, this may be related to your binding path - try using Text="{Binding}" for the textbox inside your datatemplate:
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBox Foreground="White" ...
-
Is the target object's opacity set to 0 (not just in the storyboard - in the object XAML itself)?
-
It sounds like these examples might be helpful:
http://silverlight.net/forums/t/12664.aspx
http://blogs.msdn.com/sburke/archive/2008/03/22/tutorial-writing-a-templated-silverlight-2-control.aspx