Advanced Forum Search Results
-
Just wanted to chime in here that I wanted to do this as well, and found (in my opinion) a much simpler way, using a converter.
Step 1. Write your converter:
public class DayConverter : System.Windows.Data.IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo ...
-
You can only use Loaded with RoutedEvent. For any other events, you'll have to put your storyboard in a resources element, and start it via code.
-
Are you sure you're hooking it up right? I thought it was supposed to be more like
silverlight.content.Managed.ShowMessage = onShowMessage;
-
Don't put any whitespace between your run elements. That also means no carriage returns. Remember, the inner text of a textblock is also processed as a run.
-
It has worked for me in the past. Did you use the correct clientID? In your case It looks like it would be "Anthem_Panel1__" or "Anthem_Button1__", as in:
document.getElementById("Anthem_Panel1__").style.visibility = "hidden";
I'm not familiar with Anthem, but with Ajax you would be ...
-
The simplest way to do it is by manipulating CSS properties. All you need to do is get the panel's id and change its visibility. It should be something like this:
document.getElementById("Panel1").style.visibility = "hidden";
document.getElementById("Panel1").style.visibility = ...
-
You need to throw in <Canvas.Triggers> and <EventTrigger> tags:
<Canvas><Canvas.Triggers><EventTrigger><BeginStoryboard><Storyboard.......</Storyboard></BeginStoryboard></EventTrigger></Canvas.Triggers></Canvas>
-
No, Silverlight does not support 3D. You can do some stuff to make things appear 3-dimensional, like this amazing demo, but it can only go so far without perspective correction, which you can't do in Silverlight (notice everything in the demo is based on parallelograms and affine transformations). The underlying xaml elements have ...
-
Right. I wasn't saying it did. Is using the function name (not a string) the same thing as using createDelegate? They're both function pointers I guess.
-
I was thinking you would create a separate textblock just for measuring. You assign its text and styling to the text you want to measure and use ActualWidth and ActualHeight to find out its dimensions. I guess you would still have the problem of figuring out which part of your text has what font (if it's dynamic text). I ...