DCSIMG
Silverlight - Justin myJustin = new Justin( Expriences.Current );

Browse by Tags

All Tags » Silverlight (RSS)

Question from the Silverlight forums: Limiting TextBlock text rendering to a specific region

Question: I've got this XAML code in my application: < Canvas Height ="25" Width ="75" Canvas.Top ="250" Canvas.Left ="250" Background ="LightGray"> < TextBlock Width ="75" FontSize ="12" Text ="This is a long line"></ TextBlock > </ Canvas > Problem is eventually the text goes beyond border of canvas. Ideally I want text string be cut right by canvas border. I though about using text wrapping...

Question from Silverlight forums: Custom Context menu and Mouse Right Click Event

Question: Is possible to create a context menu with Silverlight 1.1 and override or extend the currently context menu with Silverlight configuration? Answer: First let's explain the problem further. Silverlight doesn't have an event to catch a mouse right click. Here's the official list of Mouse events in Silverlight (from the SDK): And if we right click on a Silverlight application we'll get this normal context menu: There are occasions where we would need to use our own context...