silverlight

Silverlight Toolkit Modifying October 2009 Source

↘锁芯ラ 提交于 2020-01-05 03:44:09
问题 I have some changes I need to make to the Silverlight toolkit Charting source I downloaded the Silverlight toolkit ... unzipped the source to a new directory Added the Controls.DataVisualization.Toolkit.csproj Project to my Solution Removed The reference in my silverlight application to System.Windows.Controls.DataVisualization.Toolkit and Added A project Reference to The Controls.DataVisualization.Toolkit.csproj Project I then changed the Legend.xaml to <Style TargetType="datavis:Legend">

FontSize Style Ignored by TextBlock in DataTemplate

不羁岁月 提交于 2020-01-05 02:51:05
问题 The style for TextBlock (below) has no effect on the DataTemplate's TextBlock. If I change TextBlock to TextBox in both the style and template, the style applies as I would expect. Why does TextBlock ignore the style? Thank you, Ben <UserControl x:Class="SilverlightApplication1.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas

How to modify Silverlight template at runtime?

三世轮回 提交于 2020-01-04 15:59:55
问题 I have a custom control containing a path that has a templated tooltip. I want to be able to get a reference to a grid in the template at runtime so that I can modify it's children depending on use. I thought I could use GetTemplateChild to get a reference to the grid in the template from within the OnApplyTemplate method of the control but this method is not firing. public override void OnApplyTemplate() { base.OnApplyTemplate(); _tooltipDetails = (Grid)GetTemplateChild("TooltipDetailsGrid")

Silverlight vs WPF - Treeview with HierarchialDataTemplate

故事扮演 提交于 2020-01-04 15:17:27
问题 So, the following is easy enough in WPF, but how would you do it in Silverlight? Please note that the trick here is to display both Groups, and Entries on the same level. Additonally you dont know how deep the entries are nested, they might be on the first, or the nth level. This is hard in Silverlight because you lack the DataType="{x:Type local:Group}" property in the H.DataTemplate (or any DataTemplate). Building my own custom DataTempalteSelector also didnt work, because the Hierarchial

Strange behaviour with a lot of data in ListBox and Checkbox [minimal project provided]

孤人 提交于 2020-01-04 13:43:34
问题 For that problem I made a minimal project for everyone to experience this behaviour. I hope it is not just on my engine running like this. minimal project In my project I realized a listbox with a a lot of sample data. The listbox has a checkbox element for each item as well. The problem: First I check/uncheck checkboxes in my listbox. Then I scroll several times through my listbox. Now I notice that a lot of checkboxes get checked/unchecked randomly. If I cut the ListBox a bit down (see

Strange behaviour with a lot of data in ListBox and Checkbox [minimal project provided]

那年仲夏 提交于 2020-01-04 13:43:31
问题 For that problem I made a minimal project for everyone to experience this behaviour. I hope it is not just on my engine running like this. minimal project In my project I realized a listbox with a a lot of sample data. The listbox has a checkbox element for each item as well. The problem: First I check/uncheck checkboxes in my listbox. Then I scroll several times through my listbox. Now I notice that a lot of checkboxes get checked/unchecked randomly. If I cut the ListBox a bit down (see

Silverlight Datagrid: Highlight an entire column when that column is sorted

孤街浪徒 提交于 2020-01-04 13:28:26
问题 I have a DataGrid in my Silverlight application that I would like to highlight an entire column when that column is sorted. It's similar in concept to this previous question: Silverlight DataGrid: Highlight an entire column. Any ideas? I've thought maybe attaching a behavior to the LayoutUpdated event and checking a cell to see if it's in a sorted column? 回答1: There are several issues that you have to get around to do what you want to do. The biggest issue is that finding out when a column is

Silverlight Datagrid: Highlight an entire column when that column is sorted

一世执手 提交于 2020-01-04 13:28:10
问题 I have a DataGrid in my Silverlight application that I would like to highlight an entire column when that column is sorted. It's similar in concept to this previous question: Silverlight DataGrid: Highlight an entire column. Any ideas? I've thought maybe attaching a behavior to the LayoutUpdated event and checking a cell to see if it's in a sorted column? 回答1: There are several issues that you have to get around to do what you want to do. The biggest issue is that finding out when a column is

WCF and Silverlight CrossDomain.xml

邮差的信 提交于 2020-01-04 09:39:12
问题 Apologies if this has been asked before (I couldn't find the answer anywhere), but I have a WCF Service Application that I have created, and am trying to access via my Silverlight 4 app. I have added the service reference to the SilverLight App and am just trying to call one of the default pre existing methods on the service (GetData). When calling the method i get an error of: An error occurred while trying to make a request to URI "my URI" This could be due to attempting to access a service

LINQ GroupBy Count

本小妞迷上赌 提交于 2020-01-04 09:14:08
问题 I've got table which contains of EmployeeID, ProductID and ProductName. The table is called EmployeeProduct and I'd like to make query (which I'll bind to DataGrid) which will get me a result like this: Employee ID| ProductID | Name | Count(ProductID) 1 | 2 | XYZ | 3 1 | 5 | ZXY | 2 2 | 2 | XYZ | 1 I tried to get sth like this by this query, but it doesn't take a result... // UPDATED - Now I try to do this this way, but still have no result... // (Home.xaml.cs) public class ProductCount {