Advanced Forum Search Results
-
Further work today revealed the following. If I try and specify a Bitmap image UriSource to a resource assembly from the App.xaml.vb code behind, it will fail. If I use the exact same Uri and read the assembly resource image out as a stream, it works. I'm using the exact same Uri... How could one be ...
-
Well it appears the forums jacked up the code I previously posted. Let's see if this works...
<tools:HtmlHost Name="htmlHost" SourceHtml="&lt;object width=&#39;425&#39; height=&#39;344&#39;&gt;&lt;param name=&#39;movie&#39; ...
-
Pass in the sourceHtml (convert the HTML to an XML compatible string). This should work.
<tools:HtmlHost Name="htmlHost" SourceHtml="<object width='425' height='344'><param name='movie' ...
-
1) Download the assembly (dll) and add it to your Silverlight Application project as a reference (Project >> Properties >> References >> Add >> Browse to the DLL)
2) Use the control like the following:
<UserControl x:Class="SLTools.Page"
...
-
(Silverlight 2) - I have an assembly which I have a library of images. I'm trying to download/load this assembly before the application initializes (InitializeComponent or LoadComponent) because the Application.Resources (App.xaml) references the images within the assembly.
I've loaded the on-demand ...
-
Here are solutions that I've found. The last link is free. They basically float a div over your Silverlight application. The solutions do not work in Opera or Safari last time I ...
-
Hey Jeff,
I'm glad my retry workaround helped you out. I'm still having this issue myself occasionally. I can go days without the error then suddenly my SL app crashes with the "AG_E_RUNTIME_MANAGED_UNKNOWN_ERROR". Reloading the SL application clears it up. Its very random.
The solution is very ...
-
Below is a generic EnumTypeConverter class i wrote.
Here's a property using it:
<TypeConverter(GetType(EnumTypeConverter(Of Vehicle.VehicleType)))> _
Public Property Type() As VehicleType
...
-
I'm sure you could create a generic enum converter. M$ may have one out there that I'm not aware of. I've not done a lot of searching on it. Please post if you find one.
-
You will need to create a TypeConverter for your property so that it will know how to convert from a string to your enumerated type. I wrote a quick demo for you on my blog. The link is below:
http://www.mostlydevelopers.com/blog/post/2009/04/23/Set-an-Enum-Dependency-Property-with-XAML.aspx