silverlight-3.0

session in silverlight using Isolated Storage

in mainpage.xaml.cs (login page) I am setting up a session variable using isolted storage private IsolatedStorageSettings app = IsolatedStorageSettings.SiteSettings; app["LoginId"] = txtUname.Text; how can I get that "LoginId" in the next page. ...

Accessing element in templated column by name?

Assumning a datagrid with a templated column, like so... <data:DataGridTemplateColumn Header="Birthday"> <data:DataGridTemplateColumn.CellTemplate> <DataTemplate> <TextBlock x:Name="Foo" Text="{Binding Birthday}" Margin="4"/> </DataTemplate> </data:DataGridTemplateColumn.CellTe...

Silverlight Data problem

I have the following code, which compiles but doesn't bring back any data. Here is my point where I assign the data to the grid. The context has data in, but the grid displays nothing. Any ideas? // Load the Events this.eventsDataGrid.ItemSource = this.context.SalesActions; ...

How to use Canvas as the ItemsPanel for an ItemsControl in Silverlight 3

Hi. I am trying to set the Canvas properties in an ItemsControl DataTemplate with Silverlight 3. According to this post, the only way of doing that is to set it using the ItemsContainerStyle for the ContentPresenter type, since the Canvas properties only take effect on direct children of the Canvas. This doesn't seem to work in SL3, s...

How remove border from clicked button in silverlight?

Hi all. I have a button and image inside it in my silverlight user control. When I click to the button a border added to it. Can I remove border from button when it is pressed? Thanks. ...

Make a Silverlight 3 control transparent background

Need to make my Silverlight control transparent to the underlying HTML. Am doing it the way I've seen it done before but something's not jiving... <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="640px" height="296px"> <param name="source" value="ClientBin/slvStartPage.xa...

Image button Custom Control, silverlight

I am trying to build the Image button by setting <Button.Content> <Image Source="..."/> </Button.Content> Everything is Fine but i am not able to set the Visual States when button is clicked i wanted to something like Flash on top of button (Blue Purple Theme). One more thing I need to create around 10 such button with different Ima...

How to Debug XAML Parsing Errors in Silverlight?

I run into the following issue semi-regularly: I make changes to XAML or some resources used by it and when I go to load up the Silverlight project in debug mode it only gets as far as the spinning Silverlight-loading animation. I've tried attaching the VS08 debugger to the process but it doesn't do anything at this point (works fine on...

Using a Grid as the ItemsPanel for an ItemsControl in Silverlight 3

Is it possible to do something like this: <ListBox> <ListBox.ItemsPanel> <ItemsPanelTemplate> <Grid /> </ItemsPanelTemplate> </ListBox.ItemsPanel> <ListBox.ItemTemplate> <DataTemplate> <TextBox Text="{Binding Text}" Grid.Column="{Binding Colu...

Silverlight OutOfBrowser Problem

I am developing silverlight application. I want create the out of browser application . This is My OutOfBrowserSettings.xml <OutOfBrowserSettings ShortName="CollegeManagement Application" EnableGPUAcceleration="False" ShowInstallMenuItem="True"> <OutOfBrowserSettings.Blurb>CollegeManagement Application on your desktop; at home, at wo...

Nesting an Accordian Control has Problems Resizing Content

I am working on a site where I have an accordian control for the main content and in each is another accordian control. It worked fine so long as there were just a few items in there but once I got enough items in the child accordian they are clipped when expanding an item. It's not so bad for items near the top of the list but for ite...

XAML: make a ScrollViewer show scrollbars when the ScaleTransform of a child object gets big

Hi. I am making a sort of "print preview" control for some documents in my Silverlight 3 application. I have a Canvas (for showing the document) inside of a ScrollViewer, and I have zoom in / zoom out buttons that control the X and Y Scale properties of the ScaleTransform for the Canvas.RenderTransform property. I want the scrollbars ...

Silverlight Image element not showing up

Silverlight newbie question: I've got a small Silverlight application with the following XAML snippet: <Image Source="http://judahhimango.com/images/smileys/cool.gif" /> The image doesn't show up! I would expect the image to download asynchronously, then show up in the UI, but alas, no such luck. What am I doing wrong? Update -----...

Retrieve System.ComponentModel.DataAnnotations.DisplayAttribute properties from ViewModel-bound Controls using code

Hello, I've noticed that the SL3 Validators automatically uses the properties from DisplayAttribute when creating validation messages. I'm interested in any suggestions on how to extract this information from a control's binding using code. I've included an example: ViewModel code: [Display(Name="First Name")] public string FirstName ...

Calling Begin/EndInvoke on Action and Func in Silverlight

Does anyone know why I can't call BeginInvoke / EndInvoke on Action and Func delegates in my Silverlight app? I keep getting a NotSupportedException. Is there a workaround? ...

Element Binding Silverlight 3

I trying to use Element Binding in Silverlight 3 to SelectedItem of ComboBox in ToolTipService.ToolTip. This code works: <ComboBox x:Name="cboSource" DisplayMemberPath="Name" ToolTipService.ToolTip="{Binding ElementName=cboSource, Path=SelectedItem.Name}" Width="180" /> but this code doesn't: <ComboBox x:Name="cboSource" DisplayMembe...

How to draw spline curve in silverlight with more than one control point

Hi, How can i draw a spline curve with more than two control points in silverlight, now i am trying with only one point but its not so smooth. if i try more than one control point the curve is not coming like curve. i am drawing the curve with the help of path.data. ...

Silverlight MouseDragElementBehavior. How to rearrange items after drag and drop?

I have stack panel with custom controls in it. User can add or remove the items. I have attached MouseDragElementBehavior to each item. So now user can move them within the stack panel. However the items now are arranged on arbitrary manner. Is a mess really. They stay where the user left them. What I need now is to make them to be st...

Change Silverlight transformation height direction

Here's my xaml <Button x:Name="btnTest" Width="88" Content="{Binding Value, ElementName=slSlider}" Height="{Binding Value, ElementName=slSlider}" HorizontalAlignment="Left" ></Button> <Slider x:Name="slSlider" SmallChange="1" LargeChange="10" Maximum="100" Height="32" VerticalAlignment="Top" UseLayoutRounding="False" d:LayoutRounding="A...

LoadOperation.Completed vs. callback in DomainContext.Load()

Hi all, Using Silverlight 3 with RIA: What's the difference between the LoadOperation.Completed event and using a callback through the DomainContext.Load method? Both fire asynchronously and both provide access to the LoadOperation. When/why would I use one over the other? Thanks :-) ...