Hehe, Silverlight is a buzzword... first you have to understand what is Silverlight, a quick and dirty definitions (please Ms guys don't read this)... it's like flash but with .net, that is a plugin for IE / FireFox...
You can download Silverlight plugin from the silverlight official site.
To Develop, you will need Visual Studio 2008 + .net fx 3.5 SP1 + SL tools for VS 2008 (you can just go to the silverlight.net getStarted option).
Free Silverlight based DB Schema Modeling Tool
Hi Azad, u need to have .Net framework 3.5 and u'l need to install silverlight tools from the official microsoft website which are free.
u'l also need to install silverlight plugin again from microsoft's site....
Use the following link.........
Can WPF applications can have their appearance change at runtime? I understand, through styles, that one can change the appearance of controls and UI elements, but I was envisoning something more along the lines of having two applications: one "editor" application and a "game" application, both running essentially the same code but having a totally different UI layout (the latter having fewer buttons, simpler controls, menu items, etc). The layout of the "game" UI could be designed by an artist, generally someone who doesn't have access to the underlying code.
How do I go about doing something like that? I'd just need a starting point.
The first thing I'd suggest here would be that this is a perfect candidate for applying an MVVM pattern to an application. The second thing I'd suggest is that you might want to look into Prism[^] the Composite WPF/Silverlight P and P from Microsoft.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
I want to print a simple visual to a printer (some lines and some text, rendered as an image that is then printed).
On my local printer this works perfectly, sharp lines and text. But on another printer, a label printer, the output looks fuzzy, the lines are ragged but only on one side.
A printed test page (via the printer settings dialog from Windows) looks fine, so the printer is capable of printing high resolution. I tried to set some job properties, print quality and so on but no effect.
Has anyone an idea here? Thank you!
Now the tricky part, if it ever can be solved?
How can I use an XmlDataProvider to populate Image source?
The Listbox contains a lot more products than necessary amount of pictures. Same picture for several products. The xml file:
The Expander header binding and textbox binding works fine, binds to a data class.
Can't figure out how to do it Anyone? Do you get the idea? Let's say that the expanders header result in a string "W705", then I want to use the xml file as a lookuptable and load the expanders image with "graphics/W705.png". But it doesn't seem to work with a mix of binding like that?
This might offer some ideas:
If PicDb is a separate data struture, maybe binding to a method and passing the name could work. In that case:
If you don't want to go the whole MVVM route, a simple fix is to use a ValueConverter here. Consider the following sample converter code:
publicclass SimpleImageConverter : IValueConverter
#region IValueConverter Members
publicobject Convert(objectvalue, Type targetType, object parameter, System.Globalization.CultureInfo culture)
Uri uri = new Uri(value.ToString(), UriKind.Absolute);
BitmapImage img = new BitmapImage(uri);
publicobject ConvertBack(objectvalue, Type targetType, object parameter, System.Globalization.CultureInfo culture)
To use the converter, you add a reference to it in your Resources
If you see Pete's post, you could just read your XML file in the converter and get the image name for the passed in header string. This will avoid you having to bother about multiple datasources in XAML.
If you still want to use XMLDataProvider, you could use a MultiValueConverter. Passing in the XMLDataProvider and the Header string to the converter.
I am sure that decision made sense to somebody - I have just spent ages messing around with my layout wondering why on earth a textblock wasn't showing - I mean everything compiled, there was no output messages so it had to be layout right? I will know better next time I suppose.
I am facing problem with using .XAP file in ASP.Net Website. I have written the following code to use .XAP in .Aspx page
<form id="form1" runat="server">
<div style="height:100%; background-color:#282828;" align="right">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<div style="height:100%; background-color:#282828;" align="right">--%>
<asp:Silverlight ID="Xaml1" runat="server" Source="~/ClientBin/SilverlightApplication.xap" MinimumVersion="2.0.31005.0" Width="100%" Height="100%" />
If i write like that is only assigned to particular row but i want it for whole page. If I write <asp:silverlight> control after form tag then the silverlight content is assigned above the table and the table data seperated from silverlight content.
Please see the below link to drag and drop videos but that drag and drop videos is not working outside that row only within that row.
Can you please guide me how to user .XAP file to whole aspx page.
I use adorners to move elements in a canvas but I want that those elements stay in the canvas bounderies. So when I drag an element over one of the bounderies, it should stay against that boundery and not cross it.
Now I only check the top and left bounderies with the Canvas.GetLeft and Canvas.GetTop. The width and height of the canvas is variable. Anybody has an idea how I can prevent the elements to cross the right and bottom bounderies?