Hi ,
When I try to play a Audio file , on http severr from silverlight code behind, unable to do so:
string mediaFileName = "http://myserverIP/file.mp3";
musicPlayer.Source = new Uri("mediaFileName", UriKind.Relative);
LayoutRoot.Children.Add(musicPlayer);
musicPlayer.Play();
Now this should play the files easily. I dont understand wh...
Hi,
I am trying to set the Media Elements position by following code:
MediaElement musicPlayer = new MediaElement();
musicPlayer.Position = new TimeSpan(0, 0, 30);
musicPlayer.Source = new Uri(strMediaFileURL, UriKind.RelativeOrAbsolute);
LayoutRoot.Children.Add(musicPlayer);
To Surprise, musicPlayer.Position...
Hi,
I want to override the selection behavior of ListBox Items.
We can traverse through ListBox items using Up and Down arrows but I want to traverse the list using Left and Right arrow keys.
While I am trying to add the key down event for ListBox, It shows almost all key presses except for Arrow Keys, Home, End and similar keys.
I h...
I am writing silverlight 3 application which is working on network.
It works like client-server application. There is WinForm application for server and silverlight application for client.
I use TcpListener on server and connect from client to it with Socket.
In local network it works fine, but when I try to use it from internet it don'...
hoe can i enable scroll bars in accordion control of silverlight? I am using accordin control as menu if I am having so many accordion items i want to display with vertical scrolls bars.
...
We're trying to work out a deployment strategy for an internal tool that we're creating. It's a control that uses a set of 3rd party libraries to communication with a specific type of server. So I have a class library built that uses these libraries.
I was looking to deploy a silverlight application that uses our library, which in turn...
Hi,
I want to disable the navigation on press of UP and Down arrow keys in Silverlight.
I tried with a case statement:
void lisBox_KeyUp(object sender, System.Windows.Input.KeyEventArgs e)
{
int numberofItems = lisBox.Items.Count-1;
Keys key = (Keys)e.Key;
switch (key)
{
case Keys.LEFT...
I would like to create a button control that has a Path element as its content--an IconButton if you will.
This button should fulfill two conditions:
1. The Path element's stroke and fill colors should be available for manipulation by the VisualStateManager.
2. The Path element's data string (which defines it's shape) can be set i...
I have a Silverlight app that has to load an image dynamically, depending on the image name. The approach that im taking right now is passing the image name by query string to the page and passing that as a param to the Silverlight objet tag
This is the query string passed
Response.Redirect("Build.aspx?img=" + this.PictureUploader.Pos...
Hi I am creating a Canvas in code behind like below:
Canvas musicPlayerCanvas = new Canvas();
musicPlayerCanvas.Background = new SolidColorBrush(Colors.White);
musicPlayerCanvas.Height = 80;
musicPlayerCanvas.Width = 1018;
LayoutRoot.Children.Add(musicPlayerCanvas);
musicPlaye...
Hi, Say I had (foolishly) setup a Silverlight project in VS and failed to setup a supporting website at time of instantiation are there any steps I can take to add one retrospectively?
Many thanks.
...
The CollectionViewSource.GetDefaultView() method is not in Silverlight 3. In WPF I have this extension method:
public static void SetActiveViewModel<ViewModelType>(this ViewModelBase viewModel,
ViewModelType collectionItem,
ObservableCollection<ViewModelType> collection) where ViewModelType : ViewModelBase
{
Debug.Assert(col...
Hi,
I am getting the error "A field initializer cannot reference the nonstatic field", While My code is as below:
Object selectedItem = PageVariables.slectedItemData;
MyClass selectedItems = (MyClass)selectedItem;
But the same thing works if assign the value at the constructor or in a different method , like below:
public partial cl...
I created one WCF service
I have added the service reference as myServiceReference
But when I am trying to create service proxy ServiceClient is not coming while it should come like this--->
myServiceReference.ServiceClient proxy= new myServiceReference.Service1Client();
...
KeyDown Event is not responding till any user control is clicked or setFocus implicitly . I want to fire the key event after the page loads , anytime.
I tried like :
private void Page_KeyDown(object sender, KeyEventArgs e)
{
if (e.Key.ToString() == "Escape")
{
...
I am trying to build a Silverlight website, using standard Silverlight controls. I read that Silverlight 3 comes with 9 proffessionally design Themes. I really want to use them, but everywhere I look just talks about making you own theme, or other tangential topics. Can anyone tell me how to apply one of the out-of-the-box themes? Or...
I would like to have fuzzy looking border around my Canvas control. Basically, I am creating a Print Preview screen, and I want it to look almost exactly like the one in Word 2010. In this, there is a thin gray line, a thin orange line and then a fuzzy gradient around the outside of the page. Check it out and you will see what I mean....
Hello.
I would like to stream videos that reside at the webserver from within a ExpressionMediaPlayer control. The following results in a network error. I believe that the problem is with my Uri. I have the videos inside the 'ClentBin' folder. Can anyone tell me how this is done?
private void videoList_SelectionChanged(object sender, S...
I am writing silverlight 3 application which is working on network.
It works like client-server application. There is WinForm application for server and silverlight application for client.
I use TcpListener on server and connect from client to it with Socket.
In local network it works fine, but when I try to use it from internet it don't...
I need to fill textboxes depending on the item selected in a combobox. I fill combo async and in Completed event I have the following code
combo.ItemsSource = e.Result;
combo.DisplayMemberPath = "Name";
combo.SelectedIndex = -1;
Then in the SelectionChanged event of the combo, I catch the selected object
MyClass mc= ((ComboBox)sender...