In traditional winforms development I have become accustomed to the [DesignerSerializationVisibility] attribute to prevent the designer trying to serialize properties that shouldn't be serialized at design time.
This doesn't seem to exist in silverlight. What is the equivalent way to hide a property from the designer.
...
I'm trying to do something along these lines:
private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
{
try
{
e.Handled = true;
var errorMessage = BuildErrorMessage(e.ExceptionObject);
var service = new MyService(Constants.MyBinding, Constants.MyServiceUri);
...
I have a silverlight class library (not a top-level application) with several user controls that are shared by different silverlight applications. I have gone through and pulled out several styles and brushes for the controls and put them in a separate XAML file as a resource dictionary which I bring into each control as a merged resourc...
The question is how to implement INotifyPropertyChanged on a static property because the event you implement is not static, and cannot be called by a static property. Also, you cannot bind to a static property in silverlight.
I've seen this question pop up an a few forums with a variety of solutions, none of which were very satisfying.
...
Is there any good opensource project of silverlight that deals with control gallery? I am looking for some cool control like chart control, line control, buttons etc built in silverlight.
...
I have a Dataform with EditTemplate,
in the EditTemplate, these are a few tabs using TabControl.
One the tap has my custom user control with x:Name="ctlAttachment".
How can I reference my control in the code behind?
I tried .FindNameInContent, but now work.
Please advice, Thanks!
...
what is the advantages/disadvantages of using RIA against WCF without RIA?
...
I have all data in the code behind, and defined in xaml:
<dds:DomainDataSource x:Name="ddsContAttachment" QueryName="GetMContAttachment" AutoLoad="True" LoadSize="20">
<dds:DomainDataSource.DomainContext>
<employee:ContractSrv />
</dds:DomainDataSource.DomainContext>
<dds:DomainDataSource.SortDesc...
I recently added a control library project to my Silverlight app's solution, so the solution now has three projects:
SLClient
SLClient.Controls
SLClient.Web
SLClient has a project reference to SLClient.Controls, which contains the following:
Themes
Generic.xaml (contains default CustomTextBox template)
Templates.xaml (contains add...
I need to constantly display large amounts of colored text in WPF or Silverlight, and I need the user to percieve it as showing up instantly.
Currently I'm doing this using a canvas and textblocks, one textblock per 80-character line, with multiple runs to a textblock to handle the different colors. There can often be 20+ runs to a lin...
Is it possible, while debugging a Silverlight app, to view all current references to an object?
I know that WPF developers have the ability to use the SOS.dll, but that cannot be loaded in the VS2008 IDE while debugging a Silverlight app. I've tried it, but the load command gives me the error:
.load C:\Program Files\Microsoft Silve...
I have a textbox that I want to validate, but when I validate it and whatever way I am setting the border seems to actually wrap the actual border I want to change inside the textbox i.e. it adds another border outside the textbox.
Has anyone got any example of how to set a pixel perfect border that doesn't look pants on an event?
...
I have two tables in a database and using entity framework and ria services to display data in a simple datagrid. Here is the database/EF structure
Cars Make
----- ----
CarId MakeId
Car Make
MakeId
In my Silverlight datagrid I want to show the following two columns, for example
Car Make
--- -----
Escort ...
Is there a way to determine if a wma file is DRM'd? I'd like to be able to do this in a trusted, out of browser Silverlight 4 application so pinvoke isn't an option. I supposed I could just try to play the file in a MediaElement but that doesn't seem efficient.
...
As learned from Sliverlight forum, WCF ria Service does not support ComplexType, but EF 4.0 supply complextype for results of stored procedure.
So if I want to use the results from stored procedure to feed data for datagrid in silverlight client, what's the solution? how to resolve it?
...
I have the following in my XAML:
<Grid x:Name="LayoutRoot" Background="White">
<Grid.RowDefinitions>
<RowDefinition Height="20"/>
<RowDefinition Height="7"/>
<RowDefinition Height="57"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" FontSize="18">Title Text</TextBlock>
<Rectangle Grid.Row="1" M...
I'm trying to create a control in Silverlight that inherits from Button so that I can perform a specific action everytime it is clicked. I'm doing this because I'd like to reuse this custom button in several locations with the same functionality.
I'd like to create the control in such a way so that I have a can set the custom Button's ...
When I add Dependency Property to my user control, I always finded it in Miscellaneous panel on a properties window (in Expression Blend).
But, some times i've too many custom properties and all they are in Miscellaneous panel.
How I can put properties to othe panel? May be I can make my own panel? But I do not know - how.
...
I have a set of styles and brushes defined in a ResourceDictionary that I am loading as a MergedDictionary in XAML of my top-level control:
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/MyAssembly;component/Styles.xaml"/>
</ResourceDictionary.MergedDictionaries>
I am trying to optionally replace some of the...
I am looking into creating type-safe generic controls. This is targeting the (reduced) generics support in WPF 4 and future Silverlight, and will include a hierarchy of generic controls.
I have two questions:
Can you use style setters and template bindings for non-generic properties defined on a generic control?
In Silverlight, is the...