Hi folks,
I have a function in my silverlight app, that takes one or two seconds to finish. While executing this function, I want to show my "just loading" UC to the user:
private void ComboBoxGranularity_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
{
WaitScreenObject.Visibility = Visibility.Vi...
Lets say you have this text
"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere, magna sed pulvinar ultricies, purus lectus malesuada libero, sit amet commodo magna eros quis urna."
put in a textblock with TextWrapping="Wrap", the textblock only supports 2 lines, so how do I add the...
I am having difficulty dynamically compiling a DLL for use with Silverlight 3.0. My goal is to take some rules provided by my users and compile them into a DLL for custom editing purposes.
I created a Silverlight class library project in Visual Studio to get the command line for compiling a Silverlight class library. Based on that an...
So, I am working with an ellipse on a drawing surface, and I need to know the shortest distance from the ellipse path (center of the line thickness is fine) to a given point.
I can do this with raw math, if I need to, since I know Major and Minor axis of the ellipse. As far as I can tell, this will be rather complex.
I was wondering i...
I have a the following code for a ScrollViewer in my Silverlight app. The BasketSymbolsView control contains controls that have custom double click triggers applied to them. For some reason the ScrollViewer is preventing the child controls from triggering an action when I double click the BasketSymbolsView controls.
<ScrollViewer x:Na...
Hi. Is there a way to bind to the instance of another control? Something like this:
<Button x:Name="Foo" Content="Foo" />
<local:CustomControl OtherControl="{Binding Foo}" />
I've tried setting DataContext to "this" in the constructor of MainPage but it doesn't seem to work.
CustomControl is defined something like this:
class Custom...
What is considered the best way of enabling or disabling multiple controls in Silverlight at the same time (textbox, combobox, autocompletebox and the like)?
I suppose I could bind the "IsEnabled" property of each control to a boolean property. That property only exists for interactive controls and not textblocks.
I could loop through...
Hi,
I just started playing around with Silverlight and a supposedly simple thing like binding a Combobox is driving me nuts. I read a bunch of articles now but none really address the issue that I'm after or were made for Silverlight 2 and don't seem to work.
Let's say I have an entity object "User" which has a "UserStatus" field. In t...
Hi folks,
I am getting the following error message on a call to WCF Service (Published IIS) from a silverlight application,
"The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error."
However it works fine when i used the local (dev server) end...
I am trying to embed a video on a website. The website cannot host .xap files because the bandwidth is too expensive. For security reasons, the website does not allow iframe or .html so the traditional, src="http://silverlight.services.live.com/invoke/10xxx/Test/iframe.html" will not work.
And free hosting servers or sites like Google d...
Lets say I have an AutoCompleteBox with 1000 items.
A user first types two characters returning a broad result set (for example, 100 items).
They then scroll to the bottom of the list and...
They then select the last item which closes the dropdown.
The user then returns to the AutoCompleteBox and enters a more refined search returni...
For you wpf silverlight people who are working with source control that allows merging. What is the best software to use for merging? I am more worried about the xaml then I am the code because this has the potential to change the most during a merge.
ie beyond compare, kdiff etc...
...
Is there a way to associate a file type (i.e., extension) with a silverlight application that has been installed as an out-of-browser application?
I would like to associate a particular file extension with my app and allow double-clicking on those files to open them in the silverlight application.
...
ScottGu indicated in an admittedly old post that databinding to anonymous types "just works" because anonymous types are just "syntactic sugar" (whatever that means) and from the CLR perspective they are every bit as real a type as anything I would write up.
However Mike Hillberg posts that such is not the case with silverlight, and i...
I have a TextBlock bound to a property on my view model. I have a StoryBoard with fades the text in and out using the Opacity property. I am using this text to give the user feedback after they have performed an operation(success, error etc). How can I start the StoryBoard when the property changes from my view model? Is there a better w...
I am working on a proejct which involve selection of technology as the first criteria.
The client is interested in web technology and is not in favour of ASP.NET.
I want to understand how good Silverlight is in following terms:
· Scalability
· Cost
· Security
· Compliance
· Performance
· Fl...
We have a languaging mechanism that recurses through our XAML pages when they load, examines each element for a Tag property and uses its value to retrieve a string resource to apply to the element. It doesn't currently support tooltips and we have to have specific code on each page to apply the languaged resources to them. I'm trying to...
Hi,
I have a scenario where I want to pass data from controls on the silverlight page to controls on the asp.net page.I tried to search on it and found example of javascript but that is not helpful for me. I read about the WCF also but since I am new this world of silverlight I not able to produce result from it. So please if anyone have...
I have 2 UserControls: uc1 and uc2
On uc1.MouseOver, uc2 increases in size. On uc1.MouseLeave, uc2 returns to the original size.
On uc1.MouseLeftButtonUp, a popup is opened. However, when the popup is then closed, uc1.MouseLeave is not triggered, so uc2 doesn't return to it's original size.
A solution would be to have uc2 also subscr...
Hi
I am building an application to display a datagrid bound to an ObservableCollection of Records, where each record has a Course Object and an ObservableCollection of Results Objects.
The course is changed using an autocomplete box.
The results collection is displayed in a Listbox with an IValueConverter implementation to change the c...