Hello,
I have a custom control template that contains a Slider control.
I name that as a part in the class that implements the custom control:
[TemplatePart(Name = MapZoomSliderName, Type = typeof(Slider))]
In the OnApplyTemplate() override, I get the Slider:
MapZoomSlider = (Slider) GetTemplateChild("MapZoomSlider");
...
Say I have a C# Silverlight 3 application with a number of pages. The first page is called Home, and the second page is called Details. The only way to navigate to details is programmatically. How do I do this?! Looked everywhere for the answer and all i've found are xaml uri mapper implementations....
Help greatly appreciated
...
I'm writing a ChecklistBox control, which is a listbox that renders CheckBoxes inside the list. I'm then using this control inside of a DataForm's EditTemplate. Along with this control, I've got two text boxes that are bound to properties of the DataContext of the Dataform.
For reference, the ChecklistBox has three implemented propert...
Hey,
This is a pretty specific question, but I need to load a Silverlight application library into my ASP.NET MVC Web Application to reflect over the types and build a list for the user to select from. The purpose of the application is to let users upload their custom-built libraries and test it in a "sandboxed" environment.
Anyway, af...
Hello everyone,
I try to catch the MouseUp event from the slider but it never goes inside of the handler. The code is usual:
<Slider x:Name="sliderTime" Minimum="0" MouseLeftButtonDown="sliderTime_MouseLeftButtonDown" MouseLeftButtonUp="sliderTime_MouseLeftButtonUp" Width="Auto" Height="20" Margin="5" >
</Slider>
pr...
Hi all,
What are the actual conditions that make the Silverlight 3 VirtualizingStackPanel virtualise its content?
For example is it only when elements are off screen regardless of what container it is in or does the VirtualizingStackPanel have to be in a ScrollViewer before it starts applying the virtualisation?
I ask this because the...
Hello,
i have weird exception by SaveFileDialog in Silverlight 3. I don't really have a idea where the problem is.
I create instance of SaveFileDialog in Loaded event of user control. After Download button is clicked and dialogResult is true asynchronous file download is started. After file download is completed, method OpenFile() is c...
Hi guys,
I am creating a FlippingBook Silverlight application and I have run into a snag that I cannot seem to solve.
The problem is with Asyncrously loaded Images. I have written a class that loads an image from a webaddress and stores it in a BitmapImage object.
I bind to this image object to the Image Source on the silverlight imag...
I have an asp.net MVC app that also has a silverlight project for some sprinkled in effects and functionality... I just added a new file to my silverlight project and am at a loss in how to migrate it over to the clientbin in the MVC application
...
We are trying to build an application which has a UI like OUTLOOK?
Something which has a left navigation pane and then right side there is a details pane.
It would be a heavy on data side. We need to access Database numerous times to access the data to be displayed.
Is SILVERLIGHT a good option which will provide RIA effect? Or Should...
I have a SL3 application that my client wants to be able to skin for their customers.
I do not want a separate xap for each customer. I want to be able to define a resource dictionary for each customer.
Is it possible for me to have the same xap for all the customers and point to an external xaml file (resource dictionary) that I will ...
I have a silverlight business aplication that gets data from silverlight enabled webservice.
When I run the application in dev environment, it works fine.
when i deploy the application and the Asp.net web development server is working, then to the application works fine.
But when I stop the development server, the application can't ac...
I know we can use
VisualStateManager.GoToState(this,"SomeState1",true);
to enter into SomeState1 , but now how to go back to the base state, like no state, the state where the control was loaded in.
VisualStateManager.GoToState(this,"base",true);
// OR
VisualStateManager.GoToState(this,"",true);
// OR
VisualStateManager.GoToStat...
public static Dictionary<string,List<LookupItem>> dict;
if (dict == null)
{
dict = IsolatedStorage.GetDropDowns();
return dict["Priority"]
}
else
return dict["Priority"];
or
try
{
return dict["Priority"];
}
catch(KeyNotFoundException e)
{
dict = IsolatedStorage.GetDropDowns();
return dict["Priority"];
}
This is a...
How can I add a silverlight-3.0 target framework to NAnt? I tried modifying the nant.exe.config file, based on silverlight-2.0 profile, but that fails during compilation with CS0518: Type "System.Object" not defined or imported [error message translated from Polish]. Also, the silverlight-2.0 target does not seem to set "SILVERIGHT" cond...
I have a datagrid that I want to pass in a generic collection. On mouseover I want to test if the row has a specific column and return the value.
What I am trying to accomplish is to determine the type of objects in the grid based on the existence of a specific column. For example, if "SerialNo" exists I know the grid is currently holdi...
I am uisng Silverlight 3 and ADO.NET Data Services with a cusotm-built Model (separate project) and DAL (separate project)) in place. Within my Silverlight project, I create a [Service Reference] that references my .svc file that in turn points to my Model.
Here's my question: I would like to use the rich features of DataAnnotations ...
I have a silverlight app that allows the user to draw on it and save the drawing.
The strokecollection in the canvas is converted to xml attributes and stored in the database.
the only problem i have now is converting the xml back into a stroke collection.
my strokes are stored as such:
<Strokes>
<Stroke>
<Color A="255"...
It seems that a won't be visible unless a height and width is specified. Is this true?
This seems rather tedious. Couldn't the bounds of the line imply the correct width and height?
<Canvas Height="200" Width="200" HorizontalAlignment="Left" Background="Beige">
<!-- This is visible -->
<Line X1="20" Y1="40" X2="7...
Is there any way one can display the Silverlight 3 (Either toolkit version or the built-in Blend version) treeview horizontally?i.e. instead of top to bottom, I wan to go from left to right.
...