Requirements to render properly any html ( CSS , tables and etc... ) either from url or string and possibility to intercept click on custom hyperlinks ( looking like usual ones ) and do something else instead of navigation ( navigation silently suppressed , because url may be a fake , but information from "a" tag - id attribute , fake...
I am using generic data classes, so I can't use ria services attributes to control my validation - so I am looking for a way to manualy set up validation to work in a DataForm.
public partial class DataValue
{
private Dictionary<string, string> _errors = new Dictionary<string, string>();
public Dictionary<string, s...
This looks a bug to me.. Using Silverlight 3 and i have a user control defined in XAML and trying to access the object during runtime returns a null.
<Grid>
<common:CommonGridEditPanel x:Name="scannerParameters" Grid.Row="0" DataContext="{Binding Parameters}">
<common:CommonGridEditPanel.Columns>
</Grid>
scannerParameter variable...
Hi all,
I have a slide show of some images in my silverlight application.
When user clicks on any Image I want want to redirect to a different page.
How to implement this.
Please help.
...
Hi,
I keep getting a strange error inside my App.xaml file: Element is already the child of another element.
My App.xaml file looks like this:
<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="Celerior.Annapurna.SL.A...
Hi,
It should be possible to add a code behind file for a resource dictionary in Silverlight, but I keep getting the same error, thrown from the InitializeComponent method of my App.xaml constructor: XamlParseException: AG_E_PARSER_BAD_TYPE.
The resource dictionary xaml file looks like this:
<ResourceDictionary
xmlns="http://schem...
Hello,
I need to retrieve some control values from the MainPage to an UserControl.
In this UserControl I need to be able to get the Frame.ActualWidth & Frame.ActualHeight values (in this case, the Frame element is in the MainPage and the UserControl is loaded inside a MainPage's Grid via xaml).
Does someone have a sample?
Thank you
Josi...
I need to determine whether the mouse cursor is over a given UIElement. The method should work even if another element is placed on top of it (because it has a bigger Zindex).
I tried using MouseEnter/Leave events but mouseenter does not trigger if the element is not the top most element.
Any ideas ?
...
Hi,
I have a small silverlight app, where i have a list of objects with a Name and a Description. I databind them to a listbox, and show them, no problems.
However i want to be able to change the name or the description from my codebehind (updated through a webservice) and make the UI update, how to make the ui reflect the change of e.g...
Hi i have a List where myclass have a name property, nothing fancy (for now). I have two way binding on the name and want the same on the list, that means that if i remove or add a new item to the list i want my ui to reflect this, how to do this?
...
Hi,
I have a simple silverlight multifile upload application, and i want to provide the user with some feedback, right now its only in a test phase and i dont have the webservice. Somehow i cant get the ui to update:
private void DoUpload()
{
foreach (UploadFile file in fileInfos)
{
int BUFFERSIZE = 1024;...
I want to make a Style that can be applied to a TextBlock to create a loading text control. All I want is for the text's opacity to pulse from 0 to 1 and back until I hide the control.
I know how to set up the double animation on the opacity, but I don't know how to attach the storyboard to the textblock in a style.
Can this be done? ...
Does anyone know where to find a list of controls that you can set the template on in Silverlight? I've wasted several hours now trying to create control templates only to find that the control doesn't support the template property.
By "doesn't support" I mean:
<Style x:Key="blah" TargetType="Border">
<Setter Property="Template">
...
I'm processing large files after they are selected by the user. My code looks like the following:
if (FileDialog.ShowDialog() == true) {
// process really big file
}
This freezes up the UI so I tried to display a loading message first before a user selected the file to give them a visual cue that something was happening:
loadi...
Good Day,
I have a combo box on a form and when I rollover the combo box with my mouse, the OnMouseOver event causes a graident view to appear. How would I go about ensuring that it doesn't do that. What I want is for the combo box to remain white.
TIA,
coson
...
I'm trying to find a definitive "no", but have been unsuccessful. Ideally, I'd like to have my Silverlight applications pawn additional windows. I don't mean ChildWindows that are limited to the boundary of the host Silverlight window, but a truly separate window that could even appear in the taskbar. In WPF, you use System.Windows.Wi...
If I've got a Silverlight Image control that downloads from a full URL, how can I get the size (in bytes) of the downloaded image without making another web call?
I can't find anything on the Image or the BitmapImage source behind it that would tell me. And even the DownloadProgress event on the BitmapImage only gives a percentage.
...
I'm trying to add an image to a Pushpin instance from the Silverlight Bing Map Control, but I can't seem to get it to render (the pushpin renders fine). This is probably a general WPF question rather than anything specific to the Pushpin object.
Pushpin pp = new Pushpin();
...
Uri imageUri = new Uri(@"myImage.png", UriKind.Relative);
...
Dear ladies and sirs.
We have some .NET client side code, which we would like to port to Silverlight. However, the current .NET code simply does not compile on the Silverlight platform. Along with some subtle issues, there are many simple issues, like:
- some exceptions have less constructors in SL
- Debug.Fail does not exist in SL
-...
Hi,
I have this class:
public class UploadFile : INotifyPropertyChanged
{
private string name;
public string Name
{
get
{
return name;
}
set
{
name = value;
OnPropertyChanged("Name");
}
}
private FileInfo fileInfo;
public FileI...