I am hosting a silverlight 3.0 control on my Sharepoint 2010 page. I am using the built-in SilverlightWebPart web part, where I have provided the path for .xap file.
Its displaying properly, but when I try to access the System.Windows.Browser, its throwing an error. My code is:
public static string GetQueryString(string key)
{...
I am new to programming in Silverlight. Can anyone tell me the difference between
FrameworkElement obj=sender as FrameworkElement
and
FrameworkElement obj=(FrameworkElement)someobject
...
Hi I want to bind a lists position to its own height in XAML. So its lower left corner always will be at 0.0 of the canvas. I'm using elementBinding to get the ActualHeight and a converter to invert the property. But the height sent to the converter is 0. How do I solve this or am I going at this the wrong way?
<Canvas x:Name="DisplayS...
I have to use localization for Telerik RadDataPager in silverlight. For this i have developed a class inheriting RadDataPager by overriding OnApplyBaseTemplate Method. but after using this custom class now error is coming for PageSize, Source, DisplayMode etc are not found in class, Please reply if someone has done localization in RadDat...
I have a question . What is the difference between Canvas.SetTop(objFrameworkElement,10); and objFrameworkElement.SetValue(Canvas.TopProperty,20)
...
I'm creating a silverlight 4 custom control. The control's template is defined through generic.xaml.
The control includes ItemsSource and ItemTemplate properties similar to an ItemsControl. The template includes (amongst other things) and ItemsControl which has its own DataTemplate, however inside that DataTemplate I have a ContentContr...
<sdk:DataGridTemplateColumn>
<sdk:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<StackPanel Loaded ="SPImage_Loaded" Orientation="Horizontal" Background="Transparent" >
<Button x:Name="myButton"
Click="Btn_Click">
...
Wondering how to accomplish setting the Style xaml with the code in F#. The code is simple enough:
this.DefaultStyleKey <- typeof<MyControl>
In a C# project the build options allow you to mark the XAML as a resource custom build command of: MSBuild:Compile
I don't see it in the properties panel, so I tried to add it by hand to the p...
I have defined a Control with:
static member ItemsProperty : DependencyProperty =
DependencyProperty.Register(
"Items",
typeof<MyMenuItemCollection>,
typeof<MyMenu>,
null);
member this.Items
with get () : MyMenuItemCollection = this.GetValue(MyMenu.ItemsProperty) :?> My...
I am wondering if there is anything built in to Silverlight, or possibly c# to allow for printing reports?
I'd be happy with any number of methods: exporting files to a pdf format and printing from there, exporting as a text document of some sort and printing from there, or just simply showing the print dialog from the web application i...
hi,
this is my xaml code.
<sdk:DataGrid x:Name="dgMarks" CanUserResizeColumns="False" SelectionMode="Single" AutoGenerateColumns="False" VerticalAlignment="Top" IsReadOnly="True" Margin="13,44,0,0" RowDetailsVisibilityChanged="dgMarks_RowDetailsVisibilityChanged" RowDetailsVisibilityMode="Collapsed" Height="391" HorizontalAlig...
Does anyone have an example for any of the following scenarios.
Given, these are all dynamically populated trees. Not using a Heirarchal data template, but by iterating through object collections manually and appending children at the appropriate level.
Treeview1 has 3 levels, but items can only be reordered within their level. So, ...
Since you apparently can't create a Silverlight DataTemplate in C#, I'm trying to create one in XAML. I have a converter that I need to refer to, that I have defined in C# in another namespace. I've tried doing this:
<UserControl.Resources>
<DataTemplate x:Key="PriceTemplate">
<TextBlock Text="{Binding Price, Convert...
It's a pretty classic problem. The company I work for has numerous business reports that are used to track sales, data feeds, and various other metrics. Of course this also means that there is a conglomerate of disparate frameworks, ASP.net pages, and areas where these reports can be found. There have been some attempts at consolidating ...
Hello,
I would like du create a basic webdesktop in silverlight 4.
How can I do a windows manager ?
I want to move, resize, minimized, maximized each windows like http://mesh.com...
Does it exist something to create easily a windows manager ?
Do I have to create everything from scratch ?
How ?
...
I'm using a Silverlight 3 DataGrid control and have set the SelectionMode to Extended. The DataGrid takes care of managing the extended selection for me in an almost perfect manner out of the box, but a key piece of the logic is interfering with me.
I have a cell that can function as a drag and drop thumb and initiate a drag operation b...
Space between items is to much. how can I lessen it?
...
I've got two custom cursors for my app, MyCursor and MyOtherCursor, both of which were designed in xaml, and I added some behaviour in the xaml.cs for each of them. This behaviour was the same for both so I had them inherit from a base class to reduce code duplication.
xaml:
<UserControl x:Class="MyProject.MyCursor"
xmlns="http://s...
AJAX is the big thing...but it seems (to me) that with Silverlight 4 Microsoft has offered a really robust method for creating UI interfaces for the web. I'm wondering - what is the future of AJAX? Do AJAX and Silverlight complement each other or will Silverlight replace AJAX, etc.?
...
I need to reflect progress of execution of numerous tasks in real time.
I wondering is it any WPF\Silverlight control which do this.
Here what I found, but this controls don't meet my needs:
http://blogs.msdn.com/llobo/archive/2010/04/30/sl-timeline-control-for-sharepoint.aspx
http://timeline.codeplex.com/
http://timelinecontrol.co...