Advanced Forum Search Results
-
It just feels wrong to set the "Canvas.ZIndex" attached property on an item within a Grid or a StackPanel...
If the goal is getting Silverlight closer to WPF, the property name really should be "Panel.ZIndex"
-
Oh man, did you really have to leak over the Tag property from WinForms? :)
You can easily do the same with attached properties IMO, which in addition allows you to have multiple, different kinds of properties, which are even type-safe!
I tend to register those in the App class for simpler apps.
-
Thanks Yasser. Very useful, indeed.
I'll go with that and change it to a TypeConverter, which makes more sense to me.
-
In Silverlight the Geometry defined via the Data property in XAML creates a PathGeometry, but with zero content (no PathFigures!)
This seems to be wrong to me. If there's PathGeometry, then its PathFigures should be accessible.
In WPF the content of Path.Data translates to StreamGeometry, which doesn't pretend to have content that ...
-
I was a little disappointed when I realized SL doesn't support .wav audio files.
If Silverlight supported .wav audio, you could easily implement a managed code library for sound synthesis
using MediaElement's SetSource method to pass in a .wav stream.
Creating .wma or .mp3 streams in contrast is much harder to do and also ...
-
I'm building some SL 1.0 controls that are based on images. Initially I'm using a downloader
to get a zip file with images and xaml pages.
It seems to be very convenient to keep the downloader around and access it's contents when
necessary:
...
downloaderCompleted: function(downloader, eventArgs)
{
...
-
I've started playing around with developing custom Silverlight controls
and found they work perfectly without adding any of the TemplatePart
metadata attributes.
I'm guessing these attributes are there primarily to be picked up by
tools like Blend??
cheers,
Florian
-
I assume you're applying a TranslateTransform already (or is it you've placed your control in a Canvas and want to change the Canvas.Left property?).
So, in case of the TranslateTransfrom... First you need to give the TranslateTransform a name,
then find a reference to it and set it's X property:
E.g.:
<Rectangle ...
-
Thanks, Justin. At least I'm not the only one who's wondering ;)
-
I'm trying to build a custom control library in SL2.0. The default style and control template
are defined in generic.xaml and work fine so far.
Now, I would like to get rid of the xmlns:local prefix in generic.xaml.
The generic.xaml in the MixControl set works without prefixing the custom namespace:
<Style ...