I have a TreeView that the user navigates to select an item for display in a grid. Briefly the XAML looks like this:
<local:TreeViewEx x:Name="theTreeView" ItemsSource="{Binding theData}">
<local:TreeViewEx.ItemTemplate>
<sdk:HierarchicalDataTemplate ItemsSource="{Binding theChil...
Hi. My 1st question here on stackoverflow.
I am trying to print a long grid, which was dynamically generated.
pdoc.PrintPage += (p, args) =>
{
args.PageVisual = myGrid;
args.HasMorePages = false;
};
When I use args.HasMorePages = false;, it prints the first page of the grid as it should (althoug...
Suppose I have VM with some entities as property. Say People, Addres, Phone, ....
Then I want to implelemt IEditableObject on VM so that user have undo functionnality.
What's the best way to implement request?
Demo code please.
...
I have a main datagrid, then an accordion control below it. In one of the accordion items I have another datagrid that binds to the selected item of the first datagrid. Simple xaml is:
<sdk:DataGrid Name="dgMain" ItemsSource="{Binding SomeSource}" />
<toolkit:Accordion>
<toolkit:AccordionItem Header="Details">
<sdk:DataGrid ...
I'm just beginning Silverlight, yet I thought this would be easy to do. I simply add a button to a new Silverlight 4 application but no matter what I change the Background property to (SolidColorBrush, any color), only part of button's gradient changes, I can never get a solid, flat color fill.
This shows what I mean:
Why the red gra...
I get this using SL 4 and RIA Services trying to save images to SQL Server using the Entity framework. The first few SubmitChanges() works then it fails with the above.
Using fiddler I get the following:
System.ServiceModel.CommunicationException: Unrecognized message version.
at System.ServiceModel.Channels.ReceivedMessage.ReadStart...
I'm using a ComboBox control in my app. I understand that there is no supported Metro theme for it - but a ComboBox fits my needs perfectly, so here we are... So my predicament is that I need to create a metro theme from scratch or I need to spend like 2 days to recreate the ComboBox control. I tried the first option (creating a metro...
My question is simply: is it even possible?
Suppose I want to style a ListBoxItem such that it has a black foreground by default, blue when selected, and red when the mouse is over it. I ended up with something like this:
<!-- assume the default foreground color is black -->
<ControlTemplate TargetType="ListBoxItem">
<Grid Backgrou...
How is the best way to handle any occuring errors in a Sivlerlight application?
I am not talking about error handling in a development environment.
But what would be the best way to log errors and look them up for fute reference?
...
I have a small out-of-browser app, and want to save and restore its window width+height+state between sessions using IsolatedStorageSettings.ApplicationSettings.
I'm trying to save settings like this (on Application_Exit):
IsolatedStorageSettings appSettings = IsolatedStorageSettings.ApplicationSettings;
Window mainWindow = Application...
I'm trying to install a XAP file offline using sllauncher but it is not working.
UPDATE I erased all the existing references and folders for my app and now it seems to be working. I will leave this up as it has some good clues on how to solve this.
C:\Documents and Settings\Rod\Local Settings\Application Data\Microsoft\Silverlight\OutOf...
when add service reference to Silverlight 4 Project, I got this error:Custom tool error: Failed to generate code for the service reference 'BaseInfoServices'. Please check other error and warning messages for details.
but when the endpoint "/ConfigurationService" have been removed, the service be added successful.
How to fixed the err...
Hi,
As far as I understand to develop a SL 4.0 application I will need to upgrade VS 2010 because CoreCLR of SL 4.0 seems to use some parts of .NET 4.0.
Which means extra cost for me regarding to licensing of VS 2010 + Resharper 5.0.
But if I prefer SL 3.0 instead of SL 4.0 I won't need anything to upgrade and I can go on with my VS 2...
Hi
I have a usercontrol which is responsible for presenting creation and change of users.
The usercontrol is bound to an entity delivered by a RIA Service:
[MetadataType(typeof(User.UserMetadata))]
public partial class User
{
internal class UserMetadata
{
protected UserMetadata() {}
[Required]
public st...
I try to use link button click event to create a popup with some data list.but the default position of popup is top-left of the whole browser window.
It seems different control need different way to position popup. like Image control with LeftButtondown/up event would be different from click event for button/link button.
How to set the...
i have a ViewModel that have a Method to receive a Func<Uri,bool> for navigation and a button that i implement ICommand which execute that method(i instantiate ViewModel in Code behind and pass Navigate of Frame to that).
i navigate between pages properly but there is a no idea to pass an object(e.g Person) to another page because ther...
Hi
i have a button which has a Command property .
However , i want that button to be disable (user can't click on it) until another button has been clicked. For example, user can only click on the Save button after the New button has been clicked
So i do the following
<telerik:RadButton Content="Save" Height="22" HorizontalAlignment="R...
Hello all,
I am able to bind a "MyDictionary.Value" to a ComboBox and see the Values in it:
Dictionary<string, Friends> friend_list = new Dictionary<string, Friends>();
Friend_chat_list.ItemsSource = friend_list.Values;
And here is the XAML code:
<ComboBox x:Name="Friend_chat_list" Width="90" ItemsSource="{Binding}" SelectionChanged...
I have a custom control in Silverlight, the change of property via property window is not getting updated until I build the application once again. What could be the problem?
Say for example. I have a control called Shapes. If I select type of the shape as "Octane" it should show a sample octane in blend design-time surface.
But, in m...
I'm developing a silverlight 4 application and I often use Listboxes and databinding. What I would like to do is set the scrollbar position to the bottom of my Listbox. Is there a simple way to do this?
By the way I've tried this but it doesn't work:
COTO_dg.ScrollIntoView(COTO_dg.Items[COTO_dg.Items.Count - 1]);
Thank You, Ephismen....