Hi guys,
Does anyone have any ideas on how I can remove the focus rectangle from a silverlight textbox? (I'm talking about the blue rectangle that appears when you click on the texblock to start typing)
I'm looking through the default style and template for the textbox but can't seem to figure out which element to tweak.
Thanks!
...
I'm working on Silverlight application that needs to display complex 2d vector graphics.
It downloads zipped XAML file from the server, parses it (XamlRead) and injects to the layout root on the page.
This works fine for fairly small xaml files. The problems is that I need to make it work with much bigger file (lots more content in it)...
It seems to me that, for structured development with both depth and breadth of capability, ASP.NET MVC and Silverlight have the potential to make a nice powerful framework with superior UI granularity and reduced AJAX exposure. Have any of you tried building such a stack with future durability in mind?
...
I have a custom CellEditingTemplate that has a textbox and a calendar control inside a grid. I've made the textbox receive the focus when the user edits the cell by pressing F2 on the keyboard. Unfortunately Silverlight's data grid hooks up to the Grid's LostFocus event so when the user clicks on the date picker control, the LostFocus ev...
Using silverlight I have always removed the Height and Width from the UserControl so that the user control would fill the viewport, no more and no less. Today I began testing with IE8 and observed that such is no longer the case, unless I view the page in compatibility mode.
I'm using the asp:silverlight server control to host the silv...
When creating a test project for a Silverlight MVVM application, should I create a standard C# test project - aimed at the ViewModel, or a Silverlight Test project aimed at the view, or (gulp) both...
...
I have a Silveright app that allows users to specify filters on a few different sets of persisted data. The persisted data can be XML or a relational database table. I'm using nHibernate for the database layer as I need to support different database options, Postgresql and MySQL at a minimum. The filter fields vary depending on which dat...
Let's say I have a simple UserControl with no codebehind:
<UserControl
xmlns= ....
x:Class="TrafficLight.LightControl">
<Grid x:Name="LayoutRoot">
<Grid x:Name="Light" >
<Ellipse x:Name="MyColor" Fill="{**I need bind this field to UserControl.Foreground**}" Stroke="#FF000000" />
<Ellipse x:Name="Shade" Fill="#E4555555" />
</Grid>
...
I want my Silverlight app to fill the entire browser window. I've set the plugin object width and height to 100%, and set my LayoutRoot container's height and width to Auto, but still no luck. Any suggestions?
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:Silverlight ID="Silverlig...
I have a silverlight app that I want to support plugin development for. I'm thinking that the plugin developer would create a dll and my main silverlight app would have some sort of config file that you would list the dll and type of the plugin, and the main app would detect, download, and load the dll for the plugin.
Does this sound...
I've created two UserControls, the first of which displays a list of objects, the second of which displays details about an object that is selected from the first. I've created a dependency property on the first control and am binding each UserControl to an object declared in my Resources collection. I've seen blog posts describing this,...
I have a parent object of type Parent and it currently has a null property called Foo of type Child and that Child class has a property of type string called Name.
If the user types into a Text Box for that Name property then I want to automatically create an instance of Child and set it as the Foo property of Parent before finally sett...
Yes, many controls have KeyUp/KeyDown propertys. But in they arguument I can catch Key class only. Not real symbol.
For example, when user type "d" symbol is become a Key.D in KeyDown. All symbols in any other langauge that stay on the same plase on keyboard will be Key.D too.
How I can get analog of KeyPress in WPF that can represent a...
Hi,
I need to deploy a Silverlight 2.0 application to an Apache Server, but it's under Linux.
Is this possible? I mean, Do I need .Net 3.5 installed in the server and a Web Site that can execute Asp.Net?
Thanks for you help...
...
In short: How would I check the type of a UI user control during a Silverlight unit test?
In detail: I am loading child views into a ContentControl on a parent view. During testing I want to check that the correct view has been loaded at the correct time. My views are in separate projects, and I don't want to add a reference to those as...
Hi. I'm trying to make a simple crossword puzzle game in Silverlight 2.0. I'm working on a UserControl-ish component that represents a square in the puzzle. I'm having trouble with binding up my UserControl's properties with its' elements. I've finally (sort of) got it working (may be helpful to some - it took me a few long hours), but w...
Can anyone explain why, when I step through my unit tests with the debugger, that I get null references whenlooking at objects or properties. For example:
1 [TestMethod]
2 [Description("Test to confirm that upon initial class creation, the login view is loaded as the default content for the TaskRegion.")]
3 pu...
I have a method in a Silverlight app that currently returns an IList and I would like to find the cleanest way to turn this into an ObservableCollection so:
public IList<SomeType> GetIlist()
{
//Process some stuff and return an IList<SomeType>;
}
public void ConsumeIlist()
{
//SomeCollection is defined in the class as an Observab...
In a Silverlight application's log in screen, i need to determine if Caps Lock is toggled. This is easy enough by handling the KeyUp or KeyDown event, however how does one determine if it is toggled on or off even if a key hasn't been pressed?
The reason I want todo this is what if the user doesn't press Caps Lock while the Silverlight ...
Hi,
i'm developing an application and i would load an image that isn't in the clientbin folder, but in a folder placed in my server. I would do something like this
BitmapImage bit = new BitmapImage();
string path = "c:/image.png";
bit.UriSource = new Uri(path, UriKind.Absolute);
identity.S...