Hi,
I'm new to silverlight and trying to read a silverlight tutorial that uses HitTest method to know when the mouse is over a control.
But unfortunately i cant see any method with this name.
Where is the HitTest method? is that because i'm using silverlight 4? is there any replacement method ?
...
How to use a common TabControl in Silverlight 4 Navigation Application?
For example, It would be kept at same position in all views like here the Manu bar is kept which has Questions,Tags,Users etc. as headers.
When the user clicks on any TabItem I want to load the respective page in the frame provided by default. I also want the back/f...
I am developing a silverlight 4 application so to start with I created a silverlight test project. I compiled and ran without any code change and it worked just fine. Now I added a test, which reads xaml data and spit out a result. So I added system.xml and system.xml.linq but when I ran the test with these references, i am getting an er...
I'd like to configure a NetTcpBinding programatically for a silverlight 4 client. (NetTcpBinding is now supported)
Here is the code I use to do this for a Windows Forms client:
EndpointAddress endpointAddress = new EndpointAddress(uri);
NetTcpBinding netTcpBinding = new NetTcpBinding();
MyServiceClient agentClient = new MyService...
Has anyone solved this: displaying graphical resources within a button
create a resource, for instance a rectangle
<UserControl.Resources>
<Rectangle x:Key="myRectangle" Fill="Red" Height="100" Width="100"/>
</UserControl.Resources>
then set the content of the button to the resource
<Button Content="{StaticResource myRectangle}...
How to check if a javascript function exists from silverlight
...
I have a collection of Departments, which has collection of Teachers and which has collection of all the classes they teach. I was able to create a collection of collection of collection from the data source. Now I want to bind the data to datagrid. What I want to bind is the classes taught in the school group by teachers by department.
...
<Border BorderBrush="#C4C8CC" BorderThickness="0,0,0,1">
<TextBlock x:Name="SectionTitle" FontFamily="Trebuchet MS" FontSize="14" FontWeight="Bold" Foreground="#3D3D3D" />
</Border>
I have to use the same above format at many places in a single xaml page, so for this i created a usercontrol and defined the above code insid...
I am using the Silverlight 4 RichTextBox control which works really well. The problem I have is that the paragraphs are displayed within the control with no spacing between them, so it just looks like a newline.
I've tried setting some styles on the Paragraph type but the Silverlight version seems to have no Margin or Padding properties...
We currently have a user control which displays a dynamic matrix of other user controls. Since it's dynamic, the view can become large, requiring the user to scroll up/down & left/right in the browser to view everything.
I would like to give the users one view of the user control with the ability to pan & zoom on it, much like the fe...
I have a datagrid in silverlight with child datagrid nested in it. Also I have a DataPager on the outer datagrid.
The code looks like this:
<data:DataGrid x:Name="dgData" Width="600" ItemsSource="{Binding}" AutoGenerateColumns="False" IsReadOnly="True"
HorizontalScrollBarVisibility="Hidden" CanUserSortColumns="Fa...
I've installed vs2010 on my machine now it seems that I can't debug\run my silverlight 3 app in vs2008. The debug play button (F5) is grayed out. And when an exception is throw it says "Debugging resource strings are unavailable".
I feel like I read something about this somewhere but can't seem to find it now. Also I can't just us vs...
Some Background
I have noticed that setting the EditTemplate of a DataForm (from the Silverlight Toolkit) can cause the DataForm to not be garbage collected. Consequently, the parent control of the DataForm cannot be garbage collected either, causing a very significant memory leak.
Here's some XAML which demonstrates the case.
<to...
Subj.
I am using Silverlight 4 with VS2010, here is a source code:
<ComboBox Grid.Row="4" Grid.Column="1" Name="Player2All" MinWidth="50" ItemsSource="{Binding PlayersAll}" SelectionChanged="Player2All_SelectionChanged">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Bi...
Few days ago all was ok: when I started my web-site with Silverlight 4.0 application with F5 in Visual Studio debugger was connecting to Silverlight automatically, but now it doesn't.
I've tried to attach manually from "Debug"->"Attach to process" with "Attach to" option set into "Silverlight code" value. But my breakpoints are still "d...
Hello everyone,
I'm building a software using silverlight 4 RIA enabled. The question is I don't know what is the best way to consume data from a MS SQL SERVER.
The best way of consuming data might mean the following:
the code is clean
the development time is quick
maintenance is quick
...
I have a datagrid which is grouped on a column. It does grouping properly but it shows column name + column value. But I want to show only the column value but not the column name. I remember reading there is a method I can overwrite which will allow me to create custom column headers. Could someone point me to the link?
Thanks,
...
Is there any possibility to display selected item of the ComboBox (after popup closing) in a way that is different from its displaying in DropDown List (There are players number and name in the dropdown list, but after list closing I want to see only its number).
How can I change a background for the player with some Flag?
As far as I...
I have datagrid with list of MyPlayer objects linked to ItemsSource, there are ComboBoxes inside of grid that are linked to a list of inner object, and binding works correctly: when I select one of the item then its value is pushed to data model and appropriately updated in other places, where it is used.
The only problem: initial sele...
It is necessary to implement the following functionality:
There is a rectangle "field", its size is 150x100 pixels. Field is split to locations, each location is 10x10 (totally 15x10 locations on the field).
There are few "coins" (5, for example), each of them can be dropped into any location.
The list of text messages should be displ...