wpftoolkit

Using WPF Extended Toolkit MessageBox from other threads and curious behavior

▼魔方 西西 提交于 2020-01-26 03:15:09
问题 I am having trouble using the WPF Extended Toolkit (version 2.1.0.0) MessageBox from other threads. The namespace is: Xceed.Wpf.Toolkit.MessageBox I replaced my regular MessageBoxs (System.Windows.MessageBox) with the Toolkit MessageBox and get errors when I launch one from another thread. The System.Windows.MessageBox has no such problems. I saw this posting that reports the problem, but there seems to be no follow up: https://wpftoolkit.codeplex.com/workitem/21046 I'm guessing there is a

Using WPF Extended Toolkit MessageBox from other threads and curious behavior

余生颓废 提交于 2020-01-26 03:15:08
问题 I am having trouble using the WPF Extended Toolkit (version 2.1.0.0) MessageBox from other threads. The namespace is: Xceed.Wpf.Toolkit.MessageBox I replaced my regular MessageBoxs (System.Windows.MessageBox) with the Toolkit MessageBox and get errors when I launch one from another thread. The System.Windows.MessageBox has no such problems. I saw this posting that reports the problem, but there seems to be no follow up: https://wpftoolkit.codeplex.com/workitem/21046 I'm guessing there is a

How can I add a horizontal line (“goal line”) for a chart in WPF?

那年仲夏 提交于 2020-01-24 10:49:10
问题 I'm using the WPF toolkit (http://www.codeproject.com/Articles/196502/WPF-Toolkit-Charting-Controls-Line-Bar-Area-Pie-Co) to create a line graph. Here's what I'm doing: <Window x:Class="TempDataAnalyzer.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525" xmlns:chartingToolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows

Programatically bringing a Datagrid column into view (horizontal scroll)

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-21 07:36:14
问题 I would like to bring a column into view programatically. I have a lot of columns and when they are off screen i would like to select a cell and bring that cell into view, i can select a cell that is off screen and when i horizontal scroll to bring the cell visible the cell is selected. i know you can do this with the rows, i.e ScrollIntoView but how about columns? anyone had any luck doing this? and if so how :) (of course) 回答1: Answer : use the datagrid method. public void ScrollIntoView

WPF Datagrid DataGridTextColumn does not allow decimal

孤者浪人 提交于 2020-01-16 15:21:24
问题 I am not able to enter decimal values in DataGridTextColumn. Below link suggest that we cannot enter decimal values if UpdateSourceTrigger = PropertyChanged. WPF DataGridTextColumn binding doesn't accept decimals But my requirement is that I have to keep UpdateSourceTrigger = PropertyChanged. Please suggest. Below is the code snippet for my Datagrid: <DataGrid x:Name="MyDataGrid" HorizontalAlignment="Left" CanUserResizeColumns="True" VerticalAlignment="Stretch" ItemsSource="{Binding

wpf datepicker

孤人 提交于 2020-01-16 05:23:27
问题 Ok i'm trying to style the datepicker from microsoft from their wpftoolkit.dll. I have it in a grid that is disabled, unfortunately it's background color stays white(despite it being disabled) unlike the other controls that gray out. Ok I did do this: <Style TargetType="{x:Type tk:DatePicker}"> <Style.Triggers> <Trigger Property="IsEnabled" Value="False"> <Setter Property="Background" Value="LightGray"/> </Trigger> </Style.Triggers> </Style> But the text inside it that displays "Show Calendar

unable to set focus to datepicker using attached property in wpf

≡放荡痞女 提交于 2020-01-15 04:19:13
问题 I have a custom datepicker with me and i am trying to set focus to this using attached property. I have the toolkit version 3.5.50211.1 which was released on Feb 2010. The focus is working fine when i do DatePicker.Focus(); in my code. My custom datepicker code is as follows: -- My DatePicker using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Windows.Controls; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System

Overriding DataGridTextColumn

℡╲_俬逩灬. 提交于 2020-01-14 12:59:27
问题 I am trying to provide a DataGrid column that behaves like the DataGridTextColumn, but with an additional button in editing mode. I looked at DataGridTemplateColumn, but it appears easier to subclass the DataGridTextColumn as below The problem is the textBox loses its binding when added to the grid. That is, changes to its Text property are not reflected in the non-editing TextBlock or the underlying view-mode Any thoughts on why this might be and how I can work around it? public class

WPF mvvm backgroundWorker busyIndicator

僤鯓⒐⒋嵵緔 提交于 2020-01-07 06:47:09
问题 I'm using the busyIndicator in my program that works with MVVM pattern, I found out that there is a problem with background worker and dealing with objects that are binded in the view so I used the Dispacher.Invoke method on all of the functions that use binded properties, after I used the Dispacher the busyIndicator showed up, but when the backgoundWorker finished my view had no elements inside, what am I doing wrong? I know it's a little low in code but i didn't know what (and if) will help

How to force WPF Toolkit DatePicker to refresh in UI after culture change?

﹥>﹥吖頭↗ 提交于 2020-01-07 02:44:29
问题 I am working on adding localization to an application that uses .NET 3.5. The application is using MVVM pattern and a command to change the culture. Everything is working well except that the DatePicker control does not change language until after I click on it. At this point, the selected date text will change properly. The dropdown calendar in the control also will not change language until I move the month either forward or backwards once. How can I force the control to refresh with the