Giter Site home page Giter Site logo

wpftoolkit's People

Contributors

aydjay avatar dianexceed avatar robertmuehsig avatar ryo1988 avatar smithsoniandsp avatar stewienj avatar xceedbouchers avatar xceedsoftware avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wpftoolkit's Issues

DateTimeUpDown NullReferenceException

mieliespoor[CodePlex]
I have come across a nasty bug - I think.
nbsp
When you set the value of the DateTimeUpDown to null (dtTime.Value = null;) a NullReferenceException is thrown.
nbsp
If this is not the correct way to clear the value of the control, then I am wrong, but it should then check for null values to ensure that the value is not null.
nbsp
The Exception occurrs in private void ParseValueIntoDateTimeInfo() line 324 -gt DateTime date = DateTime.Parse(Value.ToString()); A null value cannot be converted to string...
nbsp
I changed the method as follows:
string text = string.Empty;
nbsp
_dateTimeInfoList.ForEach(info =gt
{
if (Value == null)
{
info = null;
}
else if (info.Format == null)
{
info.StartPosition = text.Length;
info.Length = info.Content.Length;
text += info.Content;
}
else
{
DateTime date = DateTime.Parse(Value.ToString());
info.StartPosition = text.Length;
info.Content = date.ToString(info.Format, DateTimeFormatInfo);
info.Length = info.Content.Length;
text += info.Content;
}
});
nbsp
I don't know if this is actually the correct way in doing it, but it worked for me in what I am doing with the control

Object not set error in ColorPicker

krystynek[CodePlex]
Hello, I have a problem with ColorPicker in my sollution. I attach source code from Codeplex and debug source code and then I see, that property SetCelectedColor is call previously than method OnApplyTemplate. In method SetCelectedColor is called method
UpdateColorShadeSelectorPosition and in this methos is setting _spectrumSlider.Value = hsv.H;. Object _spectrumSlider is null, because is set on method OnApplyTemplate.
My workaround is set _spectrumSlider and other values in constructor. And my question: Why i have this behaviour and can you repairt this to next release?
nbsp
Thanks. Pavel

XBAP messagebox usage

DEEPAKMEHTA[CodePlex]
Hi ,
How can we use Messagebox in XBAP.
The current operations on Show method are not allowed in XBAP.
Please let me know.

MaskedTextBox doesn't work when used in a template that is used by DataGridTemplateColumn’s CellEditingTemplate Property

BaMusaSoft[CodePlex]
I’m using MaskedTextBox in two templates that is used as template for CellEditingTemplate And CellTemplate Properties of DataGridTemplateColumn; when program run, the cell show the text correctly and that means the CellTemplate is function correctly, but
when the cell get’s focus and start editing the content mask disappear and no letter’s show during edit. After I navigate away from the cell text show up again
Here a snippt from xaml code:
ltDataTemplate x:Key=quotGridCellEditingquotgt
ltwpfExtended:MaskedTextBox Mask=quot## /##/ ####quot Value=quot{Binding Path=DateDue}quot/gt
lt/DataTemplategt
nbsp
ltDataTemplate x:Key=quotGridCellTemplatequotgt
ltwpfExtended:MaskedTextBox Mask=quot## /##/ ####quot Value=quot{Binding Path=DateDue}quot/gt
lt/DataTemplategt
nbsp
ltDataGridTemplateColumn Header=quotDate Duequot Width=quot2*quot
CellEditingTemplate=quot{StaticResource GridCellEditing}quot CellTemplate=quot{StaticResource GridCellTemplate}quot/gt

Control Request: DockManager

brianlagunas[CodePlex]
Great project. I found this over the weekend. Is this supported by Microsoft similar to regular WPF Toolkit? If so, is there plans on combining the 2 kits in the future? I would like to see a DockManager control added. Thanks again.

MessageBox ArgumentNullException

brianlagunas[CodePlex]
Hi, I'm getting an ArgumentNullException when using the new MessageBox. This is happening on a call to MessageBox.Show(). Strangely, this only happens if I hit a breakpoint before Show() is called.
nbsp
I have the calls to show encapsulated in a Module. Am I doing something wrong?
nbsp
Here is the StackTrace:
nbsp
Value cannot be null.
Parameter name: dependencyObject
nbsp
at System.Windows.Window.GetWindow(DependencyObject dependencyObject)
at Microsoft.Windows.Controls.MessageBox.CreateContainer()
at Microsoft.Windows.Controls.MessageBox.InitializeMessageBox(String text, String caption, MessageBoxButton button, MessageBoxImage image)
at Microsoft.Windows.Controls.MessageBox.ShowCore(String messageText, String caption, MessageBoxButton button, MessageBoxImage icon)
at Microsoft.Windows.Controls.MessageBox.Show(String messageText, String caption, MessageBoxButton button, MessageBoxImage icon)
at Reporting.Client.DataVaultCentre.Dialogs.MessageDialogs.Show(String messageText, MessageBoxImage icon) in C:\Dev\Reporting\Client\DataVaultCentre\Reporting.Client.DataVaultCentre\Utils\MessageDialogs.vb:line 14
at Reporting.Client.DataVaultCentre.Dialogs.MessageDialogs.ShowInformation(String messageText) in C:\Dev\Reporting\Client\DataVaultCentre\Reporting.Client.DataVaultCentre\Utils\MessageDialogs.vb:line 26
at Reporting.Client.DataVaultCentre.ViewModels.VaultItemViewModel.SaveDataGridCompleted(Object sender, RunWorkerCompletedEventArgs e) in C:\Dev\Reporting\Client\DataVaultCentre\Reporting.Client.DataVaultCentre\ViewModels\VaultItemViewModel.vb:line
468
at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Booleanamp handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Booleanamp handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSGamp msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at Reporting.Client.DataVaultCentre.Application.Main() in C:\Dev\Reporting\Client\DataVaultCentre\Reporting.Client.DataVaultCentre\obj\x86\Debug\Application.g.vb:line 76
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)
at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)
at System.Activator.CreateInstance(ActivationContext activationContext)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

RichTextBoxFormatBar not showing up

Using your example code the bar is not showing up.

<xctk:RichTextBox>
   <xctk:RichTextBoxFormatBarManager.FormatBar>
       <xctk:RichTextBoxFormatBar />
   </xctk:RichTextBoxFormatBarManager.FormatBar>

</xctk:RichTextBox>

What am i doing wrong?

Control Request: TimePicker

brianlagunas[CodePlex]
Request for a new TimePicker control. This control should have similar functionality to the TimePicker in the Silverlight Toolkit

A bug in NumericUpDown

brianlagunas[CodePlex]
Great job! I encountered what appears to be a bug in NumericUpDown. When initial Value is the same as Maximum, Spinner button still allows an increase by 1. To fix it, I added to OnIncrement() the following test preceding actual increment: if (Value lt
Maximum).
nbsp
For completeness, I also added if (Value gt Minimum) preceding decrement in OnDecrement().
nbsp
Regards,
nbsp
GG

BusyIndicator : an other focus issue

gherold[CodePlex]
Just after setting IsBusy = false, it's not possible to focus the inner control.
I tried using the new template with ltContentControl IsTabStop=quotFalsequot Focusable=quotTruequot...
but the problem is still there.
If I do not perform a IsBusy=true / IsBusy= True then my focus works. So, my focus problem is linked to the BusyIndicator

RichTextBox and custom TextFormatter when used in a DataTemplate and listbox, SetText not called

codingoptions[CodePlex]
When the RichTextBox control and a custom TextFormatter is used in a DataTemplate for a listboxitem, SetText() on the custom TextFormatter isn't called.
nbsp
It seems to work fine when not in a DataTemplate, but when used with a DataTemplate it seems due to the ordering of the way XAML binds it first fires the OnTextPropertyChanged() BEFORE the TextFormatter property on the RTB is set (thus it initially defaults
to creating the default RTFFormatter and calling SetText() on that instead of the custom TextFormatter).
nbsp
Seems there needs to be a way to postpone the initial OnTextPropertyChanged firing and/or fire it again if a TextFormatter is set (optimally it wouldn't fire the first time). As a workaround that works for my scenario although probably not generically the best
solution is to do the latter and call SetText again on the quotsettingquot of the new formatter:
nbsp
public ITextFormatter TextFormatter
{
get
{
if (_textFormatter == null)
_textFormatter = new RtfFormatter(); //default is rtf
nbsp
return _textFormatter;
}
set
{
_textFormatter = value;

// BEGIN CHANGE
_textHasLoaded = false;
_textFormatter.SetText(Document, Text);
_textHasLoaded = true;
// END CHANGE
}
}

MaskedTextBox throwing exception

lustuyck[CodePlex]
Hi,
I use the MaskedTextBox as follows:
nbsp
lttoolkit:MaskedTextBox Grid.Row=quot2quot Grid.Column=quot2quot Mask=quot+00(#0)000.00.00quot Text=quot{Binding ActiveCustomer.Member1PhoneNumber, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}quot/gt
nbsp
Initially Member1PhoneNumber is null, and MaskedTextBox throws exception: Object reference not set to an instance of an object.
on line SetValue(InputBase.ValueProperty, ConvertTextToValue(newValue.ToString())); in operation SyncTextAndValueProperties, because newValue is null...

ColorPicker: Add default colors

LisaTatum[CodePlex]
Hey Brian,
nbsp
The typical ColorPicker we are used to allow me to pick easily a color I have choosen before by having default colors as colored squares. Prolly 10 are enough.
nbsp
Using your ColorPicker I have to search always the exact same color value by point and click and aha-that-could be the same color :P
nbsp
Havent tried the colorpicker yet but judging your screenshots I see now displayed values like Hex-number or RGB etc. So a default color palette would be useful.

XBAP messagebox usage

DEEPAKMEHTA[CodePlex]
Hi ,
How can we use Messagebox in XBAP.
The current operations on Show method are not allowed in XBAP.
Please let me know.

CheckComboBox will not updated Text

When checking or unchecking an item, the text is not updated.

As Items I'm usign a structure
public struct cMenuItem {
public string caption { get; set; }
public object underlying { get; set; }

    public override string ToString( ) {
        return caption;
    }

}

And checking an item won't update text...

Child Window crashes XBAP

brianlagunas[CodePlex]
@deepakmehta
The program crashes on startup (Stack Overflow).
nbsp
@brianlagunas
quotSo I have looked into it and have found some interesting behavior when dealing with an XBAP. I can probably say that you have specifically set the width or height on the ChildWindow, something like Width=quot250quot. Take that width off and it will
work. But then another issue occurs. The window will not center. This is because for some reason inside an XBAP the parent container has no Height or Width initially. If you hit refresh on your browser then the ChildWIndow will re-center. All these problems
are due to the fact that for some reason the parent has a Height and Width of 0, which means that the ChildWindow cannot poisiton itself, and which also cause your stack overflow exception you saw when setting the Width and/or Height. Honestly I don't know
if this can be fixed, but I will definitely see what I can come up with.quot

Control Request: MediaElement MediaStreamSource

brianlagunas[CodePlex]
One of the strangest omissions in the WPF MediaElement is the ability to set a MediaStreamSource.
nbsp
http://msdn.microsoft.com/en-us/library/system.windows.media.mediastreamsource(VS.95).aspx
nbsp
The MediaStreamSource is a piece of the Silverlight runtime that removes a the influence of a media file's container, giving developers direct access to APIs for manipulating encoded elementary audio and video streams.
nbsp
Why do silverlight web developers have a better multimedia playback tool than
native WPF apps??? Is MS purposefully trying to kill off WPF? Because without such tools we are forced to build/find third party tools/hacks which (especially in multimedia) are often a huge source of pain and suffering.
nbsp
I'm not sure if that is the kind of thing your project aims to tackle. If so, that would seriously rock. However, I think I am mostly just ranting because from all the new stuff in SL and the lack of features in WPF it seems WPF has been left to atrophy while
they pump up quotthe next big thingquot
nbsp

nbsp
Edit: Ughh...and maybe someone at codeplex could work on a rich text editor that works in browsers other than IE!

ArgumentException is thrown when setting IncludeLiterals="False" for MaskedTextBox used inside DataGridTemplateColumn

BaMusaSoft[CodePlex]
When setting IncludeLiterals=quotFalsequot for MaskedTextBox which used as template for CellTemplate Or CellEditingTemplate properties of DataGridTemplateColumn, ArgumentException is thrown with “The Mask value cannot be null or empty.
Parameter name: mask” message.
Setting this property to false when use MaskedTextBox outside the DataGridTemplateColumn no exception is thrown.

Why is that?
Here is a small but complete demo:
ltWindow.Resourcesgt
ltDataTemplate x:Key=quotcellTemplatequotgt
ltexten:MaskedTextBox Mask=quot## /##/ ####quot Value=quot{Binding Path=DateDue}quot IncludeLiterals=quotFalsequot/gt
lt/DataTemplategt
lt/Window.Resourcesgt
ltGridgt
ltexten:MaskedTextBox Mask=quot## /##/ ####quot Value=quot{Binding Path=RegisterDate}quot Height=quot39quot Width=quot508quot Margin=quot12,55,87,313quot /gt
ltDataGrid ItemsSource=quot{Binding Details}quot AutoGenerateColumns=quotFalsequot Margin=quot-8,116,12,12quot RowHeaderWidth=quot20quotgt
ltDataGrid.Columnsgt
ltDataGridTemplateColumn Header=quotDateDuequot CellEditingTemplate=quot{StaticResource cellTemplate}quot
CellTemplate=quot{StaticResource cellTemplate}quot/gt
lt/DataGrid.Columnsgt
lt/DataGridgt
nbsp
lt/Gridgt
nbsp
Test t = new Test();
public MainWindow()
{
InitializeComponent();
DataContext = t;
}
nbsp
nbsp
public class Test : INotifyPropertyChanged
{
ListltDetailsgt list;
public Test()
{
list = new ListltDetailsgt() { new Details() { DateDue = quot01012011quot } };
}
string registerDate;
public string RegisterDate
{
get { return registerDate; }
nbsp
set
{
registerDate = value;
NotifyProprtyChanged(quotRegisterDatequot);
}
}
public ObservableCollectionltDetailsgt Details
{
get { return new ObservableCollectionltDetailsgt(list); }
}
public event PropertyChangedEventHandler PropertyChanged;
void NotifyProprtyChanged(string propertyName)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
public void Save()
{
nbsp
}
}
public class Details : INotifyPropertyChanged
{
string dateDue;
public string DateDue
{
get { return dateDue; }
set
{
dateDue = value;
NotifyProprtyChanged(quotDateDuequot);
}
nbsp
}
nbsp
public event PropertyChangedEventHandler PropertyChanged;
void NotifyProprtyChanged(string propertyName)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
nbsp
}

can't style it in expression blend

laughingman[CodePlex]
Very happy about these controls, just have one problem with it
Can't style it in expression blend and can't create numericUpDown more than one - i think the problem in constructor
nbsp
i think it should be static or at leask OverrideMetadata should be in static constructor
nbsp
public NumericUpDown()
: base()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(NumericUpDown), new FrameworkPropertyMetadata(typeof(NumericUpDown)));
}

Control Request: Office 2010 Format Bar

LisaTatum[CodePlex]
Hello Brian wink
nbsp
now I make my request officially! That control would be a very nice addition to the RTFBox
above all when someone is using a RTFBox as Cell editor of a DataGrid.
You have not to go up and down and up and down to format words etc...
nbsp
Cheers,
nbsp
Lisa

Feature Request NumericUpDown: validate value against Min/Max and add validation event

brianlagunas[CodePlex]
TryParseInt() sets result to the prior Value if input text is not a number. It would be nice to do it if the input is out of bounds as well. For example,
nbsp
protected override double ParseValue(string text) {
NumberFormatInfo info = NumberFormatInfo.GetInstance(CultureInfo.CurrentCulture);
double result;
if (text.Contains(info.PercentSymbol))
result = TryParcePercent(text, info);
else
result = TryParceDouble(text, info);
return CheckBounds(result);
}

private double CheckBounds(double number) {
    double result = number;
    if (number lt Minimum || number gt Maximum) {
        //the input is out of bounds; now lets reset our value, text, and the text in the textbox
        result = Value;
        TextBox.Text = Text = FormatValue();
    }
    return result;
}

nbsp
In fact, ParseValue() performs a partial input validation. It would be nice to to allow to use the existing validation schemes. Maybe, you could add an additional DependencyProperty IsValidationUsed, and if it set true, allow an user to do her own validation.
nbsp
Thanks a lot,
nbsp
GG

MaskedTextBox in Blend: error

lustuyck[CodePlex]
If I use MaskedTextBox as follows:
nbsp
lttoolkit:MaskedTextBox Grid.Row=quot2quot Grid.Column=quot2quot Mask=quot+00(#0)000.00.00quot IncludeLiterals=quotFalsequot Value=quot{Binding ActiveCustomer.Member1PhoneNumber, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}quot
/gt
nbsp
it works fine but if I open it in Expression Blend, it gives an error: quotObject reference not set to an instance of an objectquot, and it isn't displayed.

Control Request: TimePicker

brianlagunas[CodePlex]
I don't know if this is in Silverlight, but it could of course still be useful.. :)
nbsp
In the quototherquot WPF toolkit - and now in the official framework - you have the calendar and datepicker. I would love to have the possibility to specify a time as well as the date.
nbsp
Of course, this could happen in several ways; Either a separate timepicker control, or a combined DateTimePicker, or maybe some other way that escapes me.
nbsp
I don't have the skill to make this, but I would use it, and I don't think I am the only one. :)

MessageBox: make OK button default

brianlagunas[CodePlex]
Make the OK/Yes buttons default controls so when the user hits the enter button, the corresponding button will execute its click.

Office 2010 Format Bar: Add color picker

brianlagunas[CodePlex]
I have a FEATURE REQUEST for the RichTextFormatBar:
nbsp
Integrate your ColorPicker as TextForegroundColorPicker and TextBackgroundColorPicker, what do you think?

Feature Request: Numeric Up Down and null/empty value

SeeSharp[CodePlex]
See attached file. It is NumericUpDown with minor changes to support empty values.

Added bool property AllowNullValue Some changes in methods with text lt-gt value conversion Some decimal variables in inner logic of methods replaced to double, because real value in control interface has double type.
NOTE: First of all property AlloNullValue should be set to true, otherwise standard behavior will be used. When user puts null, property Value have value double.NaN and Text property have string.Empty.
If you want use this feature in XAML, you should bind to property NumericUpDown.Text to text representation of view model. Example:
XAML:
xmlns:wpfExt=quotclr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit.Extendedquot


ltwpfExt:NumericUpDown AllowNullValue=quotTruequot
Text=quot{Binding ValueAsString, Mode=TwoWay}quot
Minimum=quot{Binding Minimum}quot
Maximum=quot{Binding Maximum}quot
FormatString=quot{Binding FormatString}quot/gt
nbsp
ViewModel:
public double? Value{… }
public string ValueAsString
{
get
{
return Value.HasValue ? Value.Value.ToString() : string.Empty;
}
set
{
if (string.IsNullOrEmpty(value))
{
Value = null;
}
else
{
double v;
if (double.TryParse(value, out v))
Value = v;
else
throw new FormatException(quotCannot convert string to double.quot);
}
}
}

DateTimePicker Invalid UpDown Value Error

I just started using this toolkit and am very new to WPF, so I may be missing something here, anyway I have found an issue with the DateTimePicker when using the up and down arrows (or the mouse wheel) to increment and decrement date values and time values.

If more than 1 time/date value is selected or blank space is highlighted (anything considered invalid to increase/decrease in other words) an exception is thrown stating that a "Nullable object must have a value".

If this is a bug, please can someone fix this issue.

DateTimePicker xaml:
<wpfTool:DateTimePicker Grid.Column="0" Format="Custom" DefaultValue="{x:Static sys:DateTime.Now}" FormatString="dd MM yyyy | HH:mm" FontSize="18" Height="40" Margin="0,0,10,0"/>

Selected text in DTP:
image

Error:
image

BusyIndicator Focus issue

brianlagunas[CodePlex]
Hey, first of all, the BusyIndicator is great, and I am using it very successfully in my project. I thought I'd tip you off about one minor problem without though, luckily it is easy to fix.
nbsp
I put my UserControl inside a BusyIndicator and everything worked fine except that I noticed when I used the keyboard to tab out of the last control in my UserControl that the whole Window appeared to have focus. After using Snoop I was able to determine that
it the focus was in the Visual Tree of the BusyIndicator itself. I tried setting IsTabStop=False and Focusable=False on the BusyIndicator itself but that didn't fix it.
nbsp
I fixed it by changing the BusyIndicator's ControlTemplate, specifically I added IsTabStop=False and Focusable=False on the ContentControl that is named quotcontentquot. Then my app's keyboard navigation was back to normal.
nbsp
Just a heads up, thanks again for all your work.
nbsp
Josh

DisplayAfter property is TimeSpan, should it be Decimal?

brianlagunas[CodePlex]
When setting the DisplayAfter value in XAML
nbsp
lttoolkit:BusyIndicator x:Name=quotbusyquot Grid.Row=quot1quot IsBusy=quotFalsequot DisplayAfter=quot5quotgt
nbsp
The value is seen as number of days instead of seconds. This is because the data type for DisplayAfter property is TimeSpan and values should be entered as
nbsp
lttoolkit:BusyIndicator x:Name=quotbusyquot Grid.Row=quot1quot IsBusy=quotFalsequot DisplayAfter=quot00:00:05.0quotgt
nbsp
This was the original behavior of the Silverlight control. Suggest changing it to use decimal seconds instead. This would help using the DisplayAfter property declaratively in XAML more intuitive
nbsp
Example:
nbsp
lttoolkit:BusyIndicator x:Name=quotbusyquot Grid.Row=quot1quot IsBusy=quotFalsequot DisplayAfter=quot1.56quotgt
nbsp
Would represent 1.56 seconds.
nbsp
What are your thoughts?

Feature Request: Numeric Up Down add SelectAllOnGotFocus property

brianlagunas[CodePlex]
Hi,
nbsp
Improvement could be add dependency property which would make selectionAll text on gotFocus on component. (When user want edit the value, now he need to use arrows on keyboard to move to right position. But when would be text selected, he can or dont need to
do this. Instead he can write value directly)
nbsp
Thanks for answers.
nbsp
submitted by: daliborx

Scrollable text in Messagebox

brianlagunas[CodePlex]
I would like to see the text in the WPFMessageBox control support long messages which would automatically show the ScrollViewer scroll bars when the text exceeds the size of the message textblock. If auto is not possible then modify the api to allow the
caller to specify when the scrollbars are displayed. I'm new to WPF so I don't feel qualified to modify the source code. Thanks...

RichTextBox update on Viewmodel property update

brianlagunas[CodePlex]
Hi,
nbsp
Extended WPF Toolkit RichTextbox does not update when the ViewModel Property associated with it is changed in the code-behind file or from any other file. And the same feature works fine with the regular WPF RichTextbox.

nbsp
I chose toolkit RichTextBox because of its Binding Property and RTF.
nbsp
Below is the sample code for reference:
nbsp
UserControl.xaml
nbsp
lttoolkit:RichTextBox Name=quotrtbTestquot Text=quot{Binding Path=EmployeeName,UpdateSourceTrigger=PropertyChanged}quot Height=quot70quot Width=quot263quot/gt

nbsp
UserControl.xaml.vb
nbsp
Dim emp As Employee = Me.DataContext
nbsp
emp.EmployeeName = quotXYZquot
nbsp
Please provide me with your feedback.
nbsp
Note: I have implemented the ViewModel with INotifyPropertyChanged.
nbsp
Thanks,
nbsp
Chitz

MaskedTextBox’s Background property doesn’t work

BaMusaSoft[CodePlex]
When setting MaskedTextBox’s Background property, the appearance of the control doesn’t show the color I choose for background.
Example:
ltextToolkit:MaskedTextBox Mask=quot##/##/###quot Margin=quot110,0,0,246quot Background=quotBluequot/gt
The control doesn't show Blue color as it's Backgound.

RichTextBoxFormatBarManager: Focus Bug when using RichTextBox as CellEditor

LisaTatum[CodePlex]
Hello Brian,
nbsp
as I said lately something in your code changes my datagrid behaviour.
nbsp
These 2 lines cause it:
if (!_richTextBox.IsFocused)
_richTextBox.Focus();
nbsp
When I load data into my datagrid having for example 8 rows each a RichTextBox the focus is oddly set to the 3rd RichTextBox therefore the datagrid gets scrolled to the position.
nbsp
Do you know a workaround/fix for that without losing your bug fix?

BusyIndicator: Bad focus handling

rickwi[CodePlex]
The content control for the busy content should not be allowed to get the focus. Add IsTabStop=quotfalsequot Focusable=quotfalsequot to prevent this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.