Trying to write Unit test for Silverlight 4.0 using Moq 4.0.10531.7
public delegate void DataReceived(ObservableCollection<TeamPlayerData> AllReadyPlayers, GetSquadDataCompletedEventArgs squadDetails);
public interface ISquadModel : IModelBase
{
void RequestData(int matchId, int teamId);
void SaveData();
event DataReceived...
I have a very critial business application presently running using Winforms.
The application is a very core UI shell. It accepts input data, calls a webservice on my server to do the computation, displays the results on the winforms app and finally send a print stream to the printer.
Presently the application is deployed using Click-o...
Hi there,
Im building an Silverlight Application (Silverlight 4, Visual Studio 2010), in which the user can generate Charts (line-Charts, Bar Chart) dynamically, by entering a specific time period.
At the Moment i have no idea how to import the data to Silverlight, to generate the Charts.
My data is stored in 4 Excel Tables and i have ...
I've set only one region in Shell "LoginRegion"
<!-- Login Region -->
<Border Grid.Row="0">
<ContentControl x:Name="LoginRegion" Regions:RegionManager.RegionName="LoginRegion"
VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"/>
</Border>
And after login succeeded, I need to remove "Log...
I had project in VS2008 with Silverlight 3.0 but when i installed 4.0 and uninstalled 3.0 its not working "Its not loading the project in solution explorer " [I hav installed both SDK and Tool Kit]
...
Hi,
I am creating a new Silverlight 4 business application using RIA services. This will be using a SQL-Server 2005 DB. There is no AD setup so I am required to use SQL Server Authentication. The details that the user uses to login to the system will be used to hit the SQL Server.
E.g., if username="TestUser" and password="Password"...
This is for Silverlight 4, I want to create a new button class for a close/cancel button to use on dataentry screens. The aim is to move the "confirm cancel" interaction to the control rather than having it in the ViewModel. Functional outline:
1) Have a property IsDirty, needs to support binding
2) Has two "states", controled by IsD...
Todays cause of hair loss has been the following scenario:
I have a service that takes 2 strings and returns another. This service uses basicHttpBinding
<basicHttpBinding>
<binding name="basicHttpNoSec">
<security mode="None" />
</binding>
</basicHttpBinding>
Anyway, it works fine from a console test app.
I have a silverlig...
Take this scenario where I am working with a grid like control:
<RadGrid DataContext={Binding someDataContextObject, Mode=OneWay}>
<RadGrid.columns>
<RadGrid.Column Header="Column Header"
DataMember="{Binding dataContextObjectProperty, Mode=OneWay}">
[...]
<DataTemplate>
...
I am using a common Silverlight DataGrid to display results from a search. The "schema" of the search can vary from query to query.
To accommodate this, I am trying to dynamically populate the DataGrid. I can set explicitly set the columns, but I am having trouble setting the ItemSource. All of the MSDN examples set the ItemSource ...
Hi,
I have a DLL of the Silverlight 4 Datagrid control. How can I see the source code?
Any help would be greatly appreciated.
...
Hi,
I have a data grid, in each row I have one cell which needs to have a very lengthy text which is about 1000 characters long. So I decided to put the text in the expander control keeping the cell width fixed, when the user wants to read the text, he clicks on the expander to open and reads it.
The row height automatically grows whe...
Hi,
is there any site where we can talk to microsoft people and report an bug .
so that we can tell that there is bug of the datagrid control in Sl 4
(row height does not shrink back).
please let me know how i can communitae with them.
thanks
prince
...
The setting:
I got a silverlight application and a webservice both want to use the same code.
Here my problem:
If make an normal dll the silverlight
Application say's it can not
reference it.
If I make an Silverlight dll the
Webservice can not reference it.
I don't like duplicate code how can I share code between my Silverlight ap...
Hi,
I was wondering if it's possible to use the FilterDescriptor control from code behind?
On the page load of my form I set the datasource of a grid in the code behind, not using a DomainDataSource control, like:
TestDomainContext context = new TestDomainContext();
dataGridEmployees.ItemsSource = context.EmployeePositions;
context.Lo...
Hi!
I want to create a custom tabcontrol class which has an icon before the text, and I want to be able to change the icon in the constructor of the new tabcontrol.
I use implicit styles in Silverlight 4, and the custom tabcontrol should not have any xaml of its own, just the class and the implicit xaml style in my App.xaml.
I cannot...
My MSBuild command line is as follows:
msbuild e:\code\myProject.csproj /p:Configuration=Debug /p:OutputPath=bin/Debug /p:Platform=x86 /p:PlatformTarget=x86
The project builds fine on my development machine in VS2010 but not with the command above. I am running Win 7 64 - Bit. I'm getting an error that says I don't have the Silverli...
At the last PDC (can't remember which talk it was) they gave us the information that it will be possible to share assemblies between regular .Net 4 and Silverlight 4.
Unfortunately I can't find anything on this. Was this feature dropped? What options/limitations are there?
(There are similar questions on SO but they don't say if they a...
Hi,
I'd like to change the ContentTemplate of a ContentPresenter in the CodeBehind file.
But if I run the Silverlight 4 application a XamlParseException with the error code 2260 occures.
foreach (ContentPresenter item in Headers)
{
item.ContentTemplate = Parent.UnselectedHeaderTemplate;
}
if ((index >= 0) && (index < Headers.Count...
Hi to all,
I want to save the contents a user puts in a richtext box to a database. Currently it is just text with formatting (bold text etc). I know there is a xaml property with all the formatting which I could store, however other users who use the database directly may want to have access to only the text that was input by the user...