Hello,
I have a user control called HomePage.xaml. I'm creating a model instance (using MVVM pattern) in the code behind file in the constructor of page as
MainViewModel model = new MainViewModel();
I have a button in HomePage.xaml which I want to bind to the command inside MainViewModel called GetData() and want to populate the data...
I am in the process of taking a Silverlight 4 UserControl containing a canvas which has a number of FrameworkElements on it and converting this to use databinding.
The XAML for my original canvas was:
<Canvas x:Name="panelDisplay" >
<Rectangle Width="50" Height="50" MouseLeftButtonDown="Element_MouseLeftButtonDown" Stroke="Aqua" St...
hi ,
would any one telll the syntax for setting the height and width fpr a data grid in .cs
looking forward for an solution.
thanks
prince
...
hi
i have an requirment based on the value 0,1 i am showing the image.
if the value is 0 i am not showing the image.
if the value is 1 i am showing the image.
but here when i am not showing the image for the row. i want even the button to be not shown?
now i need even the button not to be shown when image is not shown. ...
How can I programatically determine the width or height of a Scrollbar in the ScrollViewer? Not the current size based on the current state of the ScrollViewer (since I can simply test the visibility of the scrollbar and calculate against the ViewerPortWidth/Height and the ScrollViewer ActualWidth/Height).
I need to know what size th...
Hello,
I am running into issues with registering a StaticResource where the ViewModelLocator class is located in a ChildApplication that is dynamically loaded by a HostApplication.
HostApplication
ClientApplication1
ClientApplication2
...
ClientApplicationN
Each ClientApplication has a reference to HostApplication, but not the other w...
I am using following markup on Silverlight page:
<Grid x:Name="lytEmpForm" Margin="8">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<Colum...
hi,
is it possiable to set 2 data field for an image control whiling binding
**<Image Source="{Binding ItemID, Converter={StaticResource IDToImageConverter}}" Height="50" />**
now here i need to add one more value Price now. need to send even price as an paramter for IDToImageConverter function
how can i do it?
now i...
My services work on data from a database as well as a long running thread that runs during the lifetime of all other service. I need help with which way to implementing this. I can use the DomainService factory and a constructor to start the long running thread. The other choice is to have the long running thread as a separate servic...
How do I get the Silverlight Add-On for Visual Studio 2010?
And where can I find lots of example code?
When the interent and html was new, one could find examples of how to build a website on a few trusted web sites. The same web sites might not be the best choice for looking for examples for Silverlight, I guess.
What are the best w...
Ok so I had a qustion awhile back regarding Silverlight 4 Data Binding with anonymous types, one of the answers was to use [assembly: System.Runtime.CompilerServices.InternalsVisibleTo("System.Windows")] in your AssemblyInfo.cs file.
I tried this and it works!
I know I'm making all my internal properties classes and methods visible to ...
I was working with a WPF application and I decided that the controls and graphics I wanted to display on the grid might look better if it was a silverlight component.
I thought this way because of all the cool silverlight controls that look very flash-like.
But now that I have gottem my Visual Studio 2010 set up with SIlverlight, it ...
I have a 2 part question:
Is there anything more to implementing themes than simply placing a <toolkit:BlahBlahBlahTheme> tag around all your content?
What is the pattern for switching out themes at runtime? Is there such a thing?
...
Hello,
I'm trying to design a tab control which will have a tabs on left hane hand side, and will have a text displayed vertically besides it. And will have the Page displayed in the main tab control.
For reference you can visit :
http://www.nseindia.com/
and click on any tab in the main menu.
How can it be designed?
I have created ...
I have a style defined for listboxitem in a resource dictionary. I want to use this style in a cs file of listbox :
I am doing the below thing but it gives me null ,CustomListBoxItemStyle is a name of a key given to the style.
public class CustomListBox : ListBox
{
public CustomListBox()
{
this.ItemContainerStyle = ...
Hello,
I want to set background of a grid using a style.
I style I'm setting the Background Property of the grid.
But I have a border filled with LinearGradientFill and a Path which also has LinearGradientFill in it.
But I'm not able to combine both.
Below is sample code. I want to create it as a style.
<Grid>
<Border BorderBrush="B...
Trying to call a WCF with a netTcpBinding via Silverlight, I am getting the error:
"TCP error code 10013: An attempt was made to access a socket in a way forbidden by its access permissions.. This could be due to attempting to access a service in a cross-domain way while the service is not configured for cross-domain access. You may nee...
Hello,
I want to change the orientation of the datagrid to horizontal in silverlight 4.
i.e. I want to display the headers on the left hand side and the values corresponding to it on right hand side.
how can I do it?
Thanks.
...
Silverlight Chart Legend Style
With Silver Light 4 Tool Kit April 2010
Going off various examples I have found on the web, I am trying to set the legend style so the items are side by side. Error returned “cannot find Style Property ‘ItemsPanel’ on the type ‘System.Windows.Controls.DataVisulization.Legend’
<chartingToolkit:Chart.Legen...
I'm trying to build a sample game in Silverlight 4 using the MVVM design pattern to broaden my knowledge. I'm using Laurent Bugnion's MvvmLight toolkit as well (found here: http://mvvmlight.codeplex.com/ ). All I want to do right now is move a shape around within a Canvas by pressing specific keys. My solution contains a Player.xaml (...