I have written a method that downloads some files, and now I'm trying to make it download up to 5 files in parallel, and for the rest to wait for the previous ones to finish.
I am using a ManualResetEvent for this, but when i include the syncronisation part it doesn't download anything anymore (without it it works).
Here is the code of ...
i am developing a video player i silverlight
i wanna something to prevent recording or screen capturing
i thought about hacking the windows APIs and stop my program from running if there was any of those capturing software asking the user to close it first but i donno how to do this
is there another solution ??!!!!
...
I have some issues with using databinding in silverlight 4 xaml pages, this is my problem:
I have two data grids:
<sdk:DataGrid x:Name="dgCodeCountry" Height="144" Margin="41,56,39,0" VerticalAlignment="Top" AutoGenerateColumns="False" ItemsSource="{Binding Collection}" >
<sdk:DataGrid.Columns>
<sdk:DataGridTextColumn Binding=...
Ive been staring at my code too long and need a kick in the right direction please.
In my poker chip calculator I have multiple pages (currently only "Chip Calculator" is visible on that link). Each page has a menu at the top (the one on the top left below the nav tabs) which has actions local to that page (e.g. Load/Save chipset on the...
I need something like ListBox scrolling in iPhone OS (iOS).
How can you implement flick/smooth/kinetic scrolling in Silverlight?
...
I have a silverlight stackpanel and i want to set its width to 100%.
i'm adding the stackpanel dynamically (C#)
...
I am putting a silverlight 3 video to practice in silverlight 4 as my pc doesnt have SL 3.
This however doesnt seem to work the same way for Silverlight4.
1.) I couldnt find the dataform control in the same namespace System.Windows.Controls as mentioned in the video, had to get it by drag-dropping from exp. blend 4.
2.) The dataform ...
I create a VM based on MVVM light toolkit.
In VM, there is a simple ICommand(RelayCommand)
private RelayCommand _myCommand = null;
public RelayCommand MyCommand
{
get
{
if (_myCommand == null) //set break point here for debug
{
_myCommand = new RelayCommand(() =>
...
hello all,
Is there a way to bind an image into a button so that the users sees an image and then the text. In the past I have done this using templates within the xaml however this time I have built the button using styles defined within a resource dictionary. I did this mainly because I wanted to content presenter text to change color ...
I would like to build a TabControl in Silverlight which is driven by a collection of objects. I'll show the code below of a VERY basic setup that I'm trying to prototype.
MainPage.xaml
<UserControl x:Class="DataDrivenTabControl.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.micros...
Hopefully someone can help me...
I've developed and tested an SL4 application that connects to a non-IIS / self-hosted WCF enabled windows service. Everything is working great on localhost. However, when I move the service to its production server, I need to obviously update the service references in the SL App. When I click on the "...
I have an ItemsControl:
<StackPanel>
<ItemsControl x:Name="TopicList">
<ItemsControl.ItemTemplate>
<DataTemplate>
<local:TopicListItem Title="{Binding Title}" LocationCloud="{Binding Locations}" TagCloudData="{Binding TagCloudData}" SparklineData="{Binding SparklineData}"/>
</DataTempl...
I have changed DataGrid's DataGridRowGroupHeader's controltemplated and have placed 1 checkbox and 1 textblock instead of content presenter.
now when i do grouping... in some cases if i click on checkbox of one group... it automatically selects another group also.
can anybody please give some advice for this?
...
Hi...
i have implemented zooming and panning on a canvas. i also implemented zoom animation on the canvas. But when i begin zoom animation then i'm not able to pann canvas.
please have a look at the following XAML for Zoom Animation.
<Canvas x:Name="cnVProductMain" Background="#FF0CE836">
<Canvas.Reso...
SL4 provides following items for datapaging:
DataPager control, PagedCollectionView to wrap data for datapager, DomainDatasource for paging, sort and filter in xaml.
Question:
1.With Datapager, data only loaded for specific page, no more data cached, no more extra code
needed, rightt?
Even data come from SP with EF, if the data wrapp...
Hello,
I'm creating a silverlight 4 application (using the Business Application template). I generated Linq to SQL classes for my tables in the .web project and want to use RIA services. When I add the domain service class to the .web project the data context for the Linq to SQL classes isn't available to choose.
According to the doc...
Hi,
I am creating a silvelight 4 application and I have a requirement to create views at the forth level folder. For example my Analysis.Xaml in silverlight project is as following.
Department/Region/Product/Analysis.xaml. Here "Department/Region/Product" will be changed dynamically. based on department,region and product.
How can I a...
in VM, set ICommand like:
private RelayCommand<EventArgs> _myCommand = null;
public RelayCommand<EventArgs> MyCommand
{
get
{
if (_myCommand == null)
{
_myCommand = new RelayCommand<EventArgs>((e) =>
{
//....
}
...
Hi,
I am using a BackgroundWorker thread to do some work outside of the GUI thread in Silverlight 4. I would like to update widgets in the GUI context from the background thread, but have read warnings about doing so from Microsoft documentation. I understand that communicating from one thread to another throws an exception as only th...
I have a textblock bound to an object. The 2-way binding works well and as expected.
In the code-behind:
txtNumberOfPlayers.DataContext = tournament.ChipSet;
In the .xaml:
<toolkit:NumericUpDown x:Name="txtNumberOfPlayers" Value="{Binding NumberOfPlayers, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true}" />
...