wpftoolkit

Multiple Series Charts with WPFtoolkit

試著忘記壹切 提交于 2019-11-29 02:16:56
Does anyone of you know the way to create multiple series charts with wpftoolkit? In a nutshell what I want is to have more dependent values for the same independent value. So far I couldn't find any comprehensive mechanism to get this working. Any help is deeply appreciated. Tom Dudfield You might want to consider the alternatives , from past experience the charting components in the WPF Toolkit are extremely rigid and hard to extend. I've also had numerous issues with bugs in the toolkit and active development seems to have completely ground to a halt. There are some very good free

How do I create a new row in WPF DataGrid when it is bound to an XmlDataProvider?

夙愿已清 提交于 2019-11-29 01:40:20
I have a project with an XmlDataProvider bound to a WPF DataGrid control. I have the bindings on the DataGrid set up as follows: <dg:DataGrid ItemsSource="{Binding Source={StaticResource XmlData}, XPath=Root/People/Person}" AutoGenerateColumns="False"> <dg:DataGrid.Columns> <dg:DataGridTextColumn Header="ID" Binding="{Binding XPath=ID}"/> <dg:DataGridTextColumn Header="Name" Binding="{Binding XPath=Name}"/> </dg:DataGrid.Columns> </dg:DataGrid> Users can edit entries using the DataGrid without any problems. What I cannot manage to accomplish is allowing the user to add a new row (i.e. a new

WPF toolkit for tile listview

老子叫甜甜 提交于 2019-11-28 21:40:05
问题 I need to create tiles of well formatted buttons, something like the Windows 8 start page. Is there any toolkit available for a custom ListView which may support tile view or grid view, with some formatting and may be some animation options. I tried creating my own custom listview but it seemed to be a complicated task. 回答1: I am not aware of a nice free tile control. DevExpress has a nice looking commercial version. If you'd specify your exact requirements (i.e. what properties do you need

WPF DataGrid style-Silverlight DataGrid?

两盒软妹~` 提交于 2019-11-28 21:16:09
That's not a secret: Silverlight's DataGrid default style is beautiful while WPF's is poor. Instead of reinventing the wheel let me ask the community if anyone has copied the SL styles to use in WPF. Please take a look at the screenshots and judge for yourself how the Silverlight and WPF teams invest in their products. Silverlight default-style DataGrid: WPF default-style DataGrid (updated after Saied K's answer): T. Webster I haven't found any projects with a working Silverlight-style DataGrid , so I created one on Codeplex: http://datagridthemesfromsl.codeplex.com Doesn't have all the themes

Hide legend of WPF Toolkit chart with more than one data series

*爱你&永不变心* 提交于 2019-11-28 18:47:24
I am trying to use charts from the WPF Toolkit (with LineSeries) and I don't want a legend at all. I need this since I have 10 such charts each with data from a different source and I would like to draw one legend for all 10, to save screen real estate. By default the legend appears the moment you add a second LineSeries. Is there any way to prevent it from even appearing? Thanks, sprite. Quartermeister There doesn't seem to be an especially clean way. One simple approach is to set the Legend's Width to zero using LegendStyle: <charting:Chart> <charting:Chart.LegendStyle> <Style TargetType=

WPF (MVVM): Closing a view from Viewmodel?

百般思念 提交于 2019-11-28 15:58:26
Anybody come across a clever way of closing a view in a viewmodel using MVVM? Maybe there is a way of using binding to signal the view (window) to close? I would really appreciate any input anyone has. Basically i have a loginView that is bound to a loginViewModel, in the viewmodel (using binding on a command) i test to see if the login is successful and if it is i basically load up a new View (mainview) and attach its datacontext... but i still have the loginView shown - so i need to signal it to unload.. I was also hoping for a generic solution because i am sure that i am going to need to do

I need the Expand / Collapse for RowDetailsTemplate

末鹿安然 提交于 2019-11-28 09:50:14
I have a WPFToolkit DataGrid. It has DataGrid.RowDetailsTemplate. I need to do like, when a button is clicked it must Expand / Collapse. <Custom:DataGrid RowDetailsVisibilityMode="VisibleWhenSelected" SelectionMode="Extended" CanUserAddRows="False" CanUserDeleteRows="False" CanUserResizeRows="False" CanUserSortColumns="False"> <Custom:DataGrid.RowDetailsTemplate> <DataTemplate> <Custom:DataGrid> <Custom:DataGrid.Columns> <Custom:DataGridTextColumn Binding="{Binding idClient, Mode=Default}" Header="Ид" IsReadOnly="True"/> <Custom:DataGridTextColumn Binding="{Binding name_client, Mode=Default}"

WpfToolkit DataGrid: Highlight modified rows

有些话、适合烂在心里 提交于 2019-11-28 09:38:55
问题 Is there a way to highlight all the modified rows on a DataGrid? Since the grid is bound to a System.Data.DataTable I figured I might be able to bind the colour of each row to it's RowState (example below), but that doesn't seem to work. Any ideas? xmlns:data="clr-namespace:System.Data;assembly=System.Data" <Style x:Key="DataGridRowStyle" TargetType="{x:Type toolkit:DataGridRow}"> <Style.Triggers> <Trigger Property="IsSelected" Value="true"> <Setter Property="Background" Value="Blue" /> <

wpf datagrid.How to Merge or group cells..?

不羁岁月 提交于 2019-11-28 09:17:10
问题 I am trying to Merge cells in WPF toolkit datagrid .I am trying to do something as shown in the image below.We can do this in Winforms datagrid.But how to do this using WPF toolkit datagrid ?.Or is there any alternative controls..? Can we do this using listview or listbox..? Or is there any free controls available which have this functionality ? 来源: https://stackoverflow.com/questions/4282539/wpf-datagrid-how-to-merge-or-group-cells

WpfToolkit DataGrid does not work in Windows Phone 7

我与影子孤独终老i 提交于 2019-11-28 04:39:52
问题 I am trying to use WpfToolkit DataGrid in Windows Phone 7 project (Silverligt 4) and it's not working. Here is the XAML: <UserControl x:Class="SilverlightControls.Grid" 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" xmlns:wtk="clr-namespace:Microsoft.Windows.Controls