Hi,
The Popup control is left-aligned by default. Its left edge is aligned with the left edge of its parent.
What I would like to do is to have the control right-aligned so that its right edge is aligned with the right edge of its container.
I want this to be dynamic because I dynamically bind the data and I don't know how big the pop...
I have the following Style settings for a Silverlight PasswordBox:
<Style x:Key="s_DefaultPasswordBoxStyle" TargetType="PasswordBox">
<Setter Property="Margin" Value="0,0,30,0"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Background" Value="{StaticResource TitleBarForeSolidColorBrush}"/>
<Setter Property="F...
I have made a test project that makes HTTP POST requests in silverlight (using the HttpWebRequest and WebClient classes). I consistently get a performance of approximately 20 calls/s, which I think is very slow. The only data I send and receive are small strings (some 20 characters). What surprised me was that WCF (SOAP over HTTP) showed...
Hi,
I am debugging a code and one strange thing occurs. There is a string property say MyProperty. When I add breakpoint at the setter of the property and at the default constructor ( The only constructor ) the setter is called first. I dont know what is going on at other level of the code but this seems strange to me in any case. All th...
In Silverlight 4 it's possible to use implicit styling - and that is amazing! But what if I want to apply a style to all of my Buttons, CheckBoxes and RadioButtons (all inheriting from ButtonBase)? I can't set TargetType on the Style to ButtonBase - that doesn't work. Do I need to create a style to each of the 3 control types?
...
Hi,
I have a button which in Blend I have edited (using Edit current template). I have added my animations for mouse over etc and the button works as expected.
However, on the mouse over event I have a shape that scales. What I want to do is give the user the option to set in XAML the rotation and scaling properties.
So for example, s...
I have a View where the user can select "Basic Configuration" and "Advanced Configuration" from a radiobutton group. This view will then display one of two usercontrols (views): BasicConfigurationView and AdvancedConfigurationView. I can solve this by just hiding/showing the views when the user clik on the radiobuttons, but is there a be...
In our application we allow users to chart enum values over time. We want the values plotted on the y-axis according to their integer values. However, we want the y-axis labelled with localized strings. And we'd like the "tooltip" diplayed when you hover over a plotted point to display a localized string.
I thought this would be "simple...
The Telerik GridView for Silverlight includes the property ShowInsertRow. When you set this property to true the grid displays a special "Click here to add new item" row at the top of the grid below the header. Does anyone know how to display this special row at the bottom after the last data record?
Failing that, is it possible to add ...
Hi,
I have a control that I would like to be static, but instead of writing it in code, i would like it to be in the XAML, so that I can still design edit and play around with it in Blend.
Basically, within my class, I have the code:
public static TextBox s_notepad = new TextBox();
I've altered my code to attempt to make it easier t...
Hi all,
I have a problem with my Silverlight animation that I can't seem to fix. The problem seems to be well established, but the techniques used to solve it don't seem to work in my case.
Here is the storyboard code that I am using to animate a grid called "underGrid". underGrid is a base grid which I am applying a scale and location...
Hi,
i have two ListBoxes (in a Silverlight 3 Application), each wrapped with a ListBoxDragDropTarget.
Now i fill the SourceBox with some custom Objects (Person).
Then i wire up the DragOver Event of the Destination DragDtopTarget.
This all workd fine and i can drag & drop the elements from the first list to the second.
Now my issue: Ho...
I 'm beginning a new web project and was wondering if i could benefit from the "magical" things RIA service can offer, but in a way i was used to develop until now.
This means i would like to architect the solution so that EF POCOs should be used, which are the basis for repositories (using IoC to resolve to concrete implementations), ...
Hello,
If I was going to create an application on Windows Azure Cloud, which the end user would access through a web browser. I wonder what the requirements for the end user are in order to use that application?
If I was going to write the frontend in Silverlight, is everything the user would need be just the Silverlight runtime? Or do...
Im trying to create a simple pan and zoom app using silverlight 4, but Im having trouble updating the TranslateTransform and ScaleTransform properties after I run an animation on them.
I have tried to set the FillBehaviour to Stop, with no success.
Here is the code that I have:
<Canvas x:Name="LayoutRoot" Background="White" Width="800...
Assume I have a class that looks like this:
class Sample
{
public string Value { get; set; }
public DateTime Begin { get; set; }
public DateTime End { get; set; }
}
I want to display a list of Sample instances where each one changes color when the current time passes Begin and then changes color again when the current time...
Basically, I'm using "View-first" style of MVVM hookup - meaning that the view instantiates the viewmodel (well, it grabs it from the service locator which uses a unity container to resolve it but whatever). This works pretty well most of the time - the Navigation framework paradigm seems to work best with the view-first approach, as the...
Silverlight is awesome, most of my application users are giving positive feedback about silverlight. However some of the users are not able to live without copy/paste functionality. They are very much used to copy/paste functionality provided by HTML page out of the box.
How can I implement such a context menu as well as copy/paste func...
First, i know about clog and i do not want to implement this piece. the reason? we can't maintain severeal logging 'frameworks'.
So to my question:
Has somebody successfully implemented log4net in a silverlight application? what i want to achieve is logging to the isolated storage. i know, there's only 1mb of storage available but thi...
I would like to get the content of a RichTextBox as a string wich contains the XAML.
I seen some post wich show differents solutions with another class for parsing the xaml and transforms it into a stringbuilder. But, my goal is to have the XAML directly generated.
Thanks
...