silverlight

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*"

Silverlight: Accordion: alter arrow color in code or binding

本小妞迷上赌 提交于 2019-12-24 00:02:22
问题 I'd like to style the accordion header button's arrow by coloring it per some data provided criteria (aging it from bright to dull over time). I've delved into the accordion button's template and tuned various template styles, but I do not see any way to expose the arrow Fill or arrow Stroke through some means which will allow me to either bind the colors, bind and use a Converter to alter the colors, or access the arrow in code, through the visual tree. Any of these methods would be fine for

No smooth streaming video only audio in code behind with Silverlight 5

心已入冬 提交于 2019-12-23 23:23:57
问题 Backstory in Silverlight 5 dynamic stream URI setting. My goal (as an artifact from the link) is to resolve why I'm rendering audio fine but not video for smooth streaming files in dynamically rendered (InitParam) smooth URIs. Basically, I need to pass a dynamically generated smooth stream URI into the player and set "Media Source" correctly. Which I believe I've done. Testing statically linked MediaSource="http://playready.directtaps.net/smoothstreaming/TTLSS720VC1/To_The_Limit_720.ism

Silverlight as front-end for business application

巧了我就是萌 提交于 2019-12-23 22:34:46
问题 We are developing a new .NET based commercial application which will have a back-end running as a service on a Windows server (optionally Azure). For this, we are considering using Silverlight as the only front-end / GUI for accessing the application - primarily because this will allow for easy access from various client OS platforms. Users of the application (companies licensing it) will be running the back-end service themselves - we will not be selling this as a service - it will be an

How to programatically select an item in a data bound ListBox control

只愿长相守 提交于 2019-12-23 22:22:05
问题 I have a custom styled ListBox: <phone:PhoneApplicationPage.Resources> <Style x:Key="LayoutsListItemStyle" TargetType="ListBoxItem"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="ListBoxItem"> <Grid Height="170" Width="170" Margin="0,0,20,20"> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="LayoutStates"> <VisualState x:Name="BeforeUnloaded"/> <VisualState x:Name="BeforeLoaded"/> <VisualState x:Name="AfterLoaded"/> </VisualStateGroup>

How to group items in a list by their first letter in Silverlight?

被刻印的时光 ゝ 提交于 2019-12-23 22:09:33
问题 I have a ListBox to which I bound a sorted list of strings. I would like to display the list with dividers (headers) that announce the new letter - something like the 'Contacts' list on the iPhone. Does anybody know how to achieve this goal? Perhaps using ListBox is not the right idea. I am doing this with VS Express 2010 for Windows Phone 7. 回答1: I can't speak for silverlight, but the general .NET Practice would be as follows: var groupings = mySortedString.GroupBy(x => x.Substring(0,1));

Is it possible to only highlight certain part of image (opacity)?

半腔热情 提交于 2019-12-23 21:09:15
问题 I have applied opacity to the image. Here is the code :- <UserControl xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" x:Class="DelSilverlightApp.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.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignHeight="600" d:DesignWidth="800">

how would I implement realtime graphing in Silverlight/WP7?

倖福魔咒の 提交于 2019-12-23 20:50:21
问题 I'm trying to implement realtime graphing of data in my WP7 app. Can someone point me in the right direction on how to go about doing this? To clarify, by real-time I mean a graph that updates every second. thanks in advance 回答1: The charting controls from VisiBlox support WP7, are free and come highly recommended. There's also a video demonstrating functionality on YouTube. X-Ref: Charting Library for Windows Phone 7 with Zooming & Panning? 回答2: It may depend on what you mean by realtime but

Adding an external font to WP7 app

风格不统一 提交于 2019-12-23 20:35:36
问题 I want my WP7 app controls and to have a certain font which is not in Visual studio font selection, how can I add the font to the font list of Visual studio or directly into my controls? 回答1: Here's a post showing how to embed fonts in a silverlight project (see the section 'Custom Fonts'): http://blogs.silverlight.net/blogs/msnow/archive/2009/09/09/97060.aspx I haven't tested this in a windows phone project but it should work. 回答2: This can be easily done using Expression Blend. In your

Dependence on DependencyObject and DependencyProperty

拈花ヽ惹草 提交于 2019-12-23 20:32:11
问题 I'm building a Silverlight application and one of my caveats from last time was that if you need anything done right in Silverlight/WPF way you'd need to model your objects as a DependecyObject and use DependencyProperty(ies) I find this model to be rather cumbersome, requiring static fields and initializers in half the classes I use, so is it a good idea to use the good-old event-driven (observer pattern?) in place of DependencyObject? I'm aiming to minimize code bloat and boiler plates (I