silverlight-toolkit

How do I add the like facebook button to a silverlight application?

不羁的心 提交于 2019-12-24 19:26:30
问题 I'm new to silverlight 4 development. I need the facebook I like button to be integrated integrated on my website application? Can someone tell me how to do that? Can I download a library that will provide me a user control that is visible in my toolbox, and thus I will be able to just drag and drop this item on my page? If not, how can I implement this functionality? 回答1: You can just download a like button image from here and use the Facebook SDK to like the page. I haven't tried it myself

Scrolling is disabled/limited when keyboard is popped up in Windows Phone 7.5

北战南征 提交于 2019-12-24 10:49:49
问题 Based on the link scrollviewer to scroll to textbox position I tried to resolve scrolling issue when keyboard is launched but there is a problem in landscape mode. Problem in using (App.Current as App).RootFrame.RenderTransform = new CompositeTransform(); in landscape mode. Above solution helped me to generate a behaviour similar to New Appointment page as in the default calendar app for windows phone 7.5. But this (App.Current as App).RootFrame.RenderTransform = new CompositeTransform();does

Silverlight toolkit breaks silverlight 5 application

微笑、不失礼 提交于 2019-12-24 09:58:52
问题 I am upgrading a Silverlight 4 application to Silverlight 5. I ran the application after changing the Target Silverlight Version to Silverlight 5 (Visual Studio 2010) and received the following error before the application loaded: Unhandled Error in Silverlight Application Code: 2110 Category: InitializeError Message: AG_E_UNKNOWN_ERROR I was unable to track down the issue using the visual studio debugger so I thought it might be an issue with the references. I noticed most of the core

Silverlight Toolkit Chart: Assign Hyperlink to Axis

喜你入骨 提交于 2019-12-24 00:03:41
问题 I have a simple Silverlight Toolkit Chart which is bound to a collection of the following type: public class ChartItemClass { public string Name { get; set; } public double Value { get; set; } public string Url { get; set; } } I can get a Chart to display the Name (X-axis) and Value (Y-axis) correctly, but I would like the labels on the X-axis to be HyperlinkButtons to the Url property. The X-axis label should be something like the following: <HyperlinkButton Content="*Name Property Here*"

Pinch Zoom images bound in Listbox

可紊 提交于 2019-12-23 12:57:24
问题 I am trying to implement pinch zoom in my application. I found this article (Correct Pinch-Zoom in Silverlight) and it works perfectly fine for one image. But the problem is, my images are within listbox as shown in below XAML: <ListBox x:Name="lstImage" Margin="-20,-23,-12,32" Height="709" Width="480"> <ListBox.ItemTemplate> <DataTemplate> <Image Source="{Binding Path=ImageSource}" VerticalAlignment="Top" Margin="10,12,10,10" Width="640" Height="800"> </Image> </DataTemplate> </ListBox

“The tag 'MenuItem' does not exist in XML namespace 'clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit'” error

♀尐吖头ヾ 提交于 2019-12-23 07:26:34
问题 I'm getting an error trying to build a Silverlight application on a new machine. (Silverlight 4, Visual Studio 2010) This application compiles without error on four other machines. The error is: the tag 'MenuItem' does not exist in XML namespace 'clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit'. The references appear to be pointer to the correct assemblies. Has anyone else ever had this problem? 回答1: Another reason this issue may occur is due to missing a

How to get accordion region to expand (vertically) to dynamic content?

无人久伴 提交于 2019-12-23 07:20:07
问题 I have a main datagrid, then an accordion control below it. In one of the accordion items I have another datagrid that binds to the selected item of the first datagrid. Simple xaml is: <sdk:DataGrid Name="dgMain" ItemsSource="{Binding SomeSource}" /> <toolkit:Accordion> <toolkit:AccordionItem Header="Details"> <sdk:DataGrid ItemsSource="{Binding ElementName=dgMain, Path=SelectedItem.Children}"/> </toolkit:AccordionItem> </toolkit:Accordion> I have VerticalAlignment property of the second grid

I've customized my Toolkit pie chart but now all slices are same color

北战南征 提交于 2019-12-23 02:52:25
问题 I've implemented a resource dictionary so that I could customize my tooltip on a pie chart. But now the series returns a pie chart where the slices are all the same color. How do I get it to act like it did before I applied the resource dictionary? PieDataPoint.xaml is the file I copied into my project to use as a reesource dictionary. 回答1: I was able to solve my issue. Below is my resource dictionary. I had to manually define my colors as a style near the bottom. <ResourceDictionary xmlns=

GridSplitter MinWidth with fixed size

不羁的心 提交于 2019-12-22 06:47:54
问题 I have a Grid with 2 columns separated by a GridSplitter using the following XAML code : <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="100" MinWidth="20" /> <ColumnDefinition Width="10" /> <ColumnDefinition Width="*" MinWidth="100" /> </Grid.ColumnDefinitions> <Rectangle Fill="Blue" /> <GridSplitter Grid.Column="1" Background="LightGray" HorizontalAlignment="Stretch" /> <Rectangle Fill="Yellow" Grid.Column="2" /> </Grid> Problem : The MinWidth of the Column on the right is ignored

Silverlight Toolkit - Create a chart like Google realtime

这一生的挚爱 提交于 2019-12-22 05:41:10
问题 I want to create a chart that looks as much as possible like Google Realtime Timeline ideally it should support pan & zoom with dynamic labels for axes instead of clicking on links. Is there any way to do it? Thanks. 回答1: Sometimes it seems to me that writing blog posts take more time than writing the code. Here is the link to my implementation of this timeline control: http://vortexwolf.wordpress.com/2011/04/20/silverlight-timeline-chart/ Screenshot: Download the code at my post and write