Behold the following XAML:
<Grid>
<HyperlinkButton x:Name="Link" Background="Green">
<Grid Background="Red">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="12" />
</Grid.RowDefiniti...
I succesfully created some constants in Silverlight's XAML like that
<sys:Boolean x:Key="foo">True</sys:Boolean>
However, when I try to do the same with a DateTime (to initialize some DatePicker
controls)
<sys:DateTime x:Name="myDate"/>
the system throws an XamlParseException "Unknown element: DateTime. [Line: xxx Position: xxx]...
I'm using PRISM (and thus the MVVM pattern). I've got a complex DateTime picker view with radio buttons.
The user can pick today, yesterday, a date, a week of a year, etc. I use radio buttons for the different choices.
What's the best way to do that in MVVM?
I really can't think of a clean way. I could create lots of custom behaviors ...
Hi,
I have added UI Virualisation to my combobox with 1000 items in it.
<ComboBox ItemsSource="{Binding}">
<ComboBox.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel />
</ItemsPanelTemplate>
</ComboBox.ItemsPanel>
</ComboBox>
The scrolling is now superfast :-) but the initial "open" is stil...
Sorry for asking an complete n00b question, but I've tried everything I can think of and nothing has worked.
Google hasn't been too useful, all the results are from ancient versions of Silverlight :(
The problem:
I've got an Silverlight User Control. The layout root is an Grid. The grid is defined so:
<Grid.ColumnDefinitions>
<C...
I'm learning Silverlight 3 and, in all of my tests, when I press the browser refresh button, the SL application restarts.
Is there any way to avoid this?
...
Anyone used SL3 validation when binding to dependency properties rather than notification properties?
If so, where did you write your setter validation code? Do you know of any good web examples?
Thanks,
Mark
...
Hello,
I am working with the Silverlight RIA Services and I want to create custom authentication. This appears to be the only thing that has virtually no documentation (I've read through the entire RIAServicesOverview.docx).
Do you know of a way for me to create a customer authentication service? I don't want to use the default ASP.N...
As the title says...
<Grid>
<HyperlinkButton x:Name="Link" Background="Green">
<Grid Background="Red">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="12" />
</Grid.RowDefi...
I'm looking at developing a Silverlight application that displays a lot of information in a DataGrid.
I want to somehow give the users the ability to copy this into Excel via the clipboard.
Is this even possible in Silverlight 3?
...
First, I know Silverlight project can't reference to non-Silverlight based project like Windows class library or Asp.net MVC project. But I need to create my projects which can support both Silverlight-based project & Asp.net MVC project.
So, I created Silverlight-based project for my sharing source code. It works fine on VS.net 2008 &...
I've got a Silverlight control with a Data Form inside to create an entity in my db. Beside the client-side validation that comes for free with Silverlight 3 and the Data Form control, I also have server side validation rules.
How can I make those rules violations to show inside the Data Form just like the client-side rules?
...
In Silverlight 3, I am trying to create a pop up menu for navigation. I am using a HyperlinkButton as a trigger, which when moused over displays a Popup containing more HyperlinkButtons. The root node is right aligned and I want the sub-menu to appear to the left. My problem is that I am trying to position the popup using its ActualWi...
A common technical decision nowadays is whether to build a ClickOnce rich client application or a web application.
Here I'm focussing primarily on choosing between a WPF application or a Silverlight application.
The chief benefit of Silverlight is obvious - it can be hosted in a browser.
But, if a programmer used to WPF was to star...
Hey guys, I'm having problems with the ItemContainerGenerator in Silverlight 3.
In my derived Custom ListBox I'm adding this handler:
ItemContainerGenerator.ItemsChanged += new ItemsChangedEventHandler(ItemContainerGenerator_ItemsChanged);
Every time the Items change I'm getting a call back. Fine so far.
Now in the ItemContainerGene...
I have a Silverlight 3 app with RIA Services and I'm running into an issue where my DataPager is only loading data for the initial loadsize and then no longer reloading. It brings up two pages of data (PageSize=10, LoadSize=20.) It is correctly showing 119 pages of data but when I navigate to page 3, nothing appears in my datagrid and da...
Here is my data type:
using System;
namespace UI
{
public class AddressType
{
public byte ID { get; set; }
public string Name { get; set; }
}
}
Here is my collection:
using System.Collections.ObjectModel;
namespace UI
{
public class AddressTypes : ObservableCollection<AddressType>
{
}
}
...
I have a Silverlight DataGrid that contains a single template column which displays a user control. The user control has a progress bar to represent processing and when the processing is complete an animation hides the progress bar and shows a finished label.
There are two instances in which the datagrid seems not to redraw itself:
F...
I'm using RIA Services in one of my silverlight applications. I can return about 500 entites (or about 500 kb JSON) from my service successfully, but anything much over that fails on the client side - the browser crashes (both IE and Firefox).
I can hit the following link and get the JSON successfully:
http://localhost:52878/ClientBin...
Where is the best place to put Style StaticResources? I have been putting the global and default styles in app.xaml and the page specific styles in page_name.xaml. Should every control have its own style StaticResource? Is it acceptable to put some style attributes right in the control? I have a page with 5 TextBoxes on it, should there ...