This commit is contained in:
NaBian committed 2022-03-15 00:01:04 +08:00
commit 04b01db546
747 files changed
+1000 -1000

No files matched your search

@@ -81,4 +81,4 @@ public class ManualObservableCollection<T> : ObservableCollection<T>
}
}
}
}
}
@@ -5,4 +5,4 @@ public interface IPool<T>
T Acquire();
bool Release(T instance);
}
}
@@ -60,4 +60,4 @@ public class SimplePool<T> : IPool<T>
}
return false;
}
}
}
@@ -24,4 +24,4 @@ public class SynchronizedPool<T> : SimplePool<T>
return base.Release(element);
}
}
}
}
@@ -332,4 +332,4 @@ public class Deque<T> : IEnumerable<T>, ICollection
void ICollection.CopyTo(Array array, int index) => CopyTo((T[]) array, index);
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
}
}
@@ -18,4 +18,4 @@ public class BackgroundSwitchElement
public static void SetMouseDownBackground(DependencyObject element, Brush value) => element.SetValue(MouseDownBackgroundProperty, value);
public static Brush GetMouseDownBackground(DependencyObject element) => (Brush) element.GetValue(MouseDownBackgroundProperty);
}
}
@@ -46,4 +46,4 @@ public class BorderElement
public static bool GetCircular(DependencyObject element)
=> (bool) element.GetValue(CircularProperty);
}
}
@@ -345,4 +345,4 @@ public class DataGridAttach
public static bool GetShowSelectAllButton(DependencyObject element)
=> (bool) element.GetValue(ShowSelectAllButtonProperty);
}
}
@@ -24,4 +24,4 @@ public class DropDownElement
public static bool GetAutoWidth(DependencyObject element)
=> (bool) element.GetValue(AutoWidthProperty);
}
}
@@ -43,4 +43,4 @@ public class EdgeElement
private static void OnEdgeContentChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) =>
SetShowEdgeContent(d, !(GetLeftContent(d) == null && GetTopContent(d) == null &&
GetRightContent(d) == null && GetBottomContent(d) == null));
}
}
@@ -92,4 +92,4 @@ public class GridAttach
public static string GetColumnName(DependencyObject element)
=> (string) element.GetValue(ColumnNameProperty);
}
}
@@ -31,4 +31,4 @@ public class IconElement
public static double GetHeight(DependencyObject element)
=> (double) element.GetValue(HeightProperty);
}
}
@@ -17,4 +17,4 @@ public class IconSwitchElement : IconElement
{
return (Geometry) element.GetValue(GeometrySelectedProperty);
}
}
}
@@ -38,4 +38,4 @@ public class ImageAttach
public static ImageSource GetSourceFailed(DependencyObject element)
=> (ImageSource) element.GetValue(SourceFailedProperty);
}
}
@@ -89,4 +89,4 @@ public class InfoElement : TitleElement
public static bool GetShowClearButton(DependencyObject element)
=> (bool) element.GetValue(ShowClearButtonProperty);
}
}
@@ -103,4 +103,4 @@ public class MenuTopLineAttach
internal static FrameworkElement GetTopLine(DependencyObject element)
=> (FrameworkElement) element.GetValue(TopLineProperty);
}
}
@@ -40,4 +40,4 @@ public class PanelElement
private static FluidMoveBehavior GetTempFluidMoveBehavior(DependencyObject element)
=> (FluidMoveBehavior) element.GetValue(TempFluidMoveBehaviorProperty);
}
}
@@ -50,4 +50,4 @@ public class PasswordBoxAttach
SetPasswordLength(passwordBox, passwordBox.Password.Length);
}
}
}
}
@@ -41,4 +41,4 @@ public class RectangleAttach
public static bool GetCircular(DependencyObject element)
=> (bool) element.GetValue(CircularProperty);
}
}
@@ -52,4 +52,4 @@ public class ScrollViewerAttach
public static Orientation GetOrientation(DependencyObject element)
=> (Orientation) element.GetValue(OrientationProperty);
}
}
@@ -24,4 +24,4 @@ public class StatusSwitchElement
public static void SetHideUncheckedElement(DependencyObject element, bool value) => element.SetValue(HideUncheckedElementProperty, ValueBoxes.BooleanBox(value));
public static bool GetHideUncheckedElement(DependencyObject element) => (bool) element.GetValue(HideUncheckedElementProperty);
}
}
@@ -67,4 +67,4 @@ public class TextBlockAttach
return formattedText.WidthIncludingTrailingWhitespace;
}
}
}
@@ -27,4 +27,4 @@ public class TipElement
public static string GetStringFormat(DependencyObject element)
=> (string) element.GetValue(StringFormatProperty);
}
}
@@ -84,4 +84,4 @@ public class TitleElement
public static Thickness GetMarginOnTheLeft(DependencyObject element)
=> (Thickness) element.GetValue(MarginOnTheLeftProperty);
}
}
@@ -49,4 +49,4 @@ public class VisualElement
public static string GetText(DependencyObject element)
=> (string) element.GetValue(TextProperty);
}
}
@@ -145,4 +145,4 @@ public static class WindowAttach
public static bool GetHideWhenClosing(DependencyObject element)
=> (bool) element.GetValue(HideWhenClosingProperty);
}
}
@@ -83,4 +83,4 @@ public abstract class AdornerElement : Control, IDisposable
protected abstract void Dispose();
void IDisposable.Dispose() => Dispose();
}
}
@@ -21,4 +21,4 @@ public class HeaderedSelectableItem : SelectableItem
get => (DataTemplate) GetValue(HeaderTemplateProperty);
set => SetValue(HeaderTemplateProperty, value);
}
}
}
@@ -12,4 +12,4 @@ public class HeaderedSimpleItemsControl : SimpleItemsControl
get => GetValue(HeaderProperty);
set => SetValue(HeaderProperty, value);
}
}
}
@@ -3,4 +3,4 @@
public interface IGravatarGenerator
{
object GetGravatar(string id);
}
}
@@ -7,4 +7,4 @@ public interface ISelectable
event RoutedEventHandler Selected;
bool IsSelected { get; set; }
}
}
@@ -5,4 +5,4 @@ namespace HandyControl.Controls;
public interface ISingleOpen : IDisposable
{
bool CanDispose { get; }
}
}
@@ -37,4 +37,4 @@ public class RegularItemsControl : SimpleItemsControl
get => (Thickness) GetValue(ItemMarginProperty);
set => SetValue(ItemMarginProperty, value);
}
}
}
@@ -107,4 +107,4 @@ public class SelectableItem : ContentControl, ISelectable
add => AddHandler(DeselectedEvent, value);
remove => RemoveHandler(DeselectedEvent, value);
}
}
}
@@ -163,4 +163,4 @@ public class SimpleItemsControl : Control
protected virtual void UpdateItems()
{
}
}
}
@@ -191,4 +191,4 @@ public class FloatingBlock : Control
return block;
}
}
}
@@ -195,4 +195,4 @@ public class RunningBlock : ContentControl
_storyboard.Children.Add(animation);
_storyboard.Begin();
}
}
}
@@ -61,4 +61,4 @@ public class RunningBorder : Border
}
private static Size ConvertThickness2Size(Thickness th) => new(th.Left + th.Right, th.Top + th.Bottom);
}
}
@@ -55,4 +55,4 @@ public class ToggleBlock : Control
get => GetValue(IndeterminateContentProperty);
set => SetValue(IndeterminateContentProperty, value);
}
}
}
@@ -37,4 +37,4 @@ public class ButtonGroup : ItemsControl
item.Style = ItemContainerStyleSelector?.SelectStyle(item, this);
}
}
}
}
@@ -19,4 +19,4 @@ public class ContextMenuButton : Button
Menu.IsOpen = true;
}
}
}
}
@@ -27,4 +27,4 @@ public class ContextMenuToggleButton : ToggleButton
}
}
}
}
}
@@ -23,4 +23,4 @@ public class ProgressButton : ToggleButton
get => (double) GetValue(ProgressProperty);
set => SetValue(ProgressProperty, value);
}
}
}
@@ -77,4 +77,4 @@ public class SplitButton : ButtonBase
SetCurrentValue(IsDropDownOpenProperty, ValueBoxes.TrueBox);
}
}
}
}
@@ -452,4 +452,4 @@ public class Carousel : SimpleItemsControl, IDisposable
{
}
}
}
@@ -5,4 +5,4 @@ namespace HandyControl.Controls;
public class CarouselItem : ContentControl
{
}
}
@@ -102,4 +102,4 @@ internal class ColorDropper
InteropMethods.ReleaseDC(desk, dc);
return Color.FromArgb(255, (byte) ((a >> 0) & 0xff), (byte) ((a >> 8) & 0xff), (byte) ((a >> 16) & 0xff));
}
}
}
@@ -739,4 +739,4 @@ public class ColorPicker : Control, ISingleOpen
}
public bool CanDispose => true;
}
}
@@ -294,4 +294,4 @@ public class CoverFlow : Control
Content = content
});
}
}
}
@@ -153,4 +153,4 @@ public class CoverFlowItem : ModelVisual3D
}
return false;
}
}
}
@@ -420,4 +420,4 @@ public class CoverView : RegularItemsControl
{
}
}
}
@@ -118,4 +118,4 @@ public class CoverViewContent : ContentControl
CanSwitch = false;
_content.BeginAnimation(HeightProperty, animation);
}
}
}
@@ -3,4 +3,4 @@
public class CoverViewItem : HeaderedSelectableItem
{
internal int Index { get; set; }
}
}
@@ -172,4 +172,4 @@ public class Dialog : ContentControl
}
}
}
}
}
@@ -5,4 +5,4 @@ namespace HandyControl.Controls;
public class DialogContainer : AdornerDecorator
{
}
}
@@ -425,4 +425,4 @@ public class Drawer : FrameworkElement
target.DataContext = newValue ?? this;
}
}
}
}
@@ -5,4 +5,4 @@ namespace HandyControl.Controls;
public class DrawerContainer : AdornerDecorator
{
}
}
@@ -917,4 +917,4 @@ public class Growl : Control
private void ButtonCancel_OnClick(object sender, RoutedEventArgs e) => Close(false);
private void ButtonOk_OnClick(object sender, RoutedEventArgs e) => Close(true);
}
}
@@ -38,4 +38,4 @@ public sealed class GrowlWindow : Window
protected override void OnSourceInitialized(EventArgs e)
=> InteropMethods.IntDestroyMenu(this.GetHwndSource().CreateHandleRef());
}
}
@@ -514,4 +514,4 @@ public class GifImage : Image, IDisposable
InvalidateVisual();
}));
}
}
}
@@ -228,4 +228,4 @@ public class ImageBlock : FrameworkElement
_currentIndex++;
return rect;
}
}
}
@@ -923,4 +923,4 @@ public class ImageViewer : Control
private void CanvasSmallImg_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e) => _imgSmallIsMouseLeftButtonDown = false;
private void CanvasSmallImg_OnMouseMove(object sender, MouseEventArgs e) => MoveSmallImg();
}
}
@@ -155,4 +155,4 @@ public class AutoCompleteTextBox : ComboBox
SetCurrentValue(IsDropDownOpenProperty, ValueBoxes.TrueBox);
}
}
}
}
@@ -5,4 +5,4 @@ namespace HandyControl.Controls;
public class AutoCompleteTextBoxItem : ComboBoxItem
{
}
}
@@ -289,4 +289,4 @@ public class CheckComboBox : ListBox, IDataInput
}
}
}
}
}
@@ -5,4 +5,4 @@ namespace HandyControl.Controls;
public class CheckComboBoxItem : ListBoxItem
{
}
}
@@ -72,7 +72,7 @@ public class ComboBox : System.Windows.Controls.ComboBox, IDataInput
_editableTextBox.SetBinding(SelectionBrushProperty, new Binding(SelectionBrushProperty.Name) { Source = this });
#if !(NET40 || NET45 || NET451 || NET452 || NET46 || NET461 || NET462 || NET47 || NET471 || NET472)
_editableTextBox.SetBinding(SelectionTextBrushProperty, new Binding(SelectionTextBrushProperty.Name) { Source = this });
_editableTextBox.SetBinding(SelectionTextBrushProperty, new Binding(SelectionTextBrushProperty.Name) { Source = this });
#endif
_editableTextBox.SetBinding(SelectionOpacityProperty, new Binding(SelectionOpacityProperty.Name) { Source = this });
_editableTextBox.SetBinding(CaretBrushProperty, new Binding(CaretBrushProperty.Name) { Source = this });
@@ -93,7 +93,7 @@ public class ComboBox : System.Windows.Controls.ComboBox, IDataInput
UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged,
Mode = BindingMode.OneWayToSource,
#if !NET40
Delay = 500,
Delay = 500,
#endif
Source = this
});
@@ -128,12 +128,12 @@ public class ComboBox : System.Windows.Controls.ComboBox, IDataInput
}
#if !NET40
protected override void OnDropDownClosed(EventArgs e)
{
base.OnDropDownClosed(e);
protected override void OnDropDownClosed(EventArgs e)
{
base.OnDropDownClosed(e);
_isAutoCompleteAction = false;
}
_isAutoCompleteAction = false;
}
#endif
private void EditableTextBox_GotFocus(object sender, RoutedEventArgs e)
@@ -271,7 +271,7 @@ public class ComboBox : System.Windows.Controls.ComboBox, IDataInput
ctl._autoCompleteTimer.Stop();
ctl._autoCompleteTimer.Start();
#else
ctl.UpdateSearchItems(e.NewValue as string);
ctl.UpdateSearchItems(e.NewValue as string);
#endif
}
@@ -298,14 +298,14 @@ public class ComboBox : System.Windows.Controls.ComboBox, IDataInput
#if !(NET40 || NET45 || NET451 || NET452 || NET46 || NET461 || NET462 || NET47 || NET471 || NET472)
public static readonly DependencyProperty SelectionTextBrushProperty =
TextBoxBase.SelectionTextBrushProperty.AddOwner(typeof(ComboBox));
public static readonly DependencyProperty SelectionTextBrushProperty =
TextBoxBase.SelectionTextBrushProperty.AddOwner(typeof(ComboBox));
public Brush SelectionTextBrush
{
get => (Brush) GetValue(SelectionTextBrushProperty);
set => SetValue(SelectionTextBrushProperty, value);
}
public Brush SelectionTextBrush
{
get => (Brush) GetValue(SelectionTextBrushProperty);
set => SetValue(SelectionTextBrushProperty, value);
}
#endif
@@ -442,4 +442,4 @@ public class ComboBox : System.Windows.Controls.ComboBox, IDataInput
SelectedValue = comboBoxItem.Content;
}
}
}
}
@@ -40,7 +40,7 @@ public class DatePicker : System.Windows.Controls.DatePicker, IDataInput
{
_textBox.SetBinding(SelectionBrushProperty, new Binding(SelectionBrushProperty.Name) { Source = this });
#if !(NET40 || NET45 || NET451 || NET452 || NET46 || NET461 || NET462 || NET47 || NET471 || NET472)
_textBox.SetBinding(SelectionTextBrushProperty, new Binding(SelectionTextBrushProperty.Name) { Source = this });
_textBox.SetBinding(SelectionTextBrushProperty, new Binding(SelectionTextBrushProperty.Name) { Source = this });
#endif
_textBox.SetBinding(SelectionOpacityProperty, new Binding(SelectionOpacityProperty.Name) { Source = this });
_textBox.SetBinding(CaretBrushProperty, new Binding(CaretBrushProperty.Name) { Source = this });
@@ -100,14 +100,14 @@ public class DatePicker : System.Windows.Controls.DatePicker, IDataInput
#if !(NET40 || NET45 || NET451 || NET452 || NET46 || NET461 || NET462 || NET47 || NET471 || NET472)
public static readonly DependencyProperty SelectionTextBrushProperty =
TextBoxBase.SelectionTextBrushProperty.AddOwner(typeof(DatePicker));
public static readonly DependencyProperty SelectionTextBrushProperty =
TextBoxBase.SelectionTextBrushProperty.AddOwner(typeof(DatePicker));
public Brush SelectionTextBrush
{
get => (Brush) GetValue(SelectionTextBrushProperty);
set => SetValue(SelectionTextBrushProperty, value);
}
public Brush SelectionTextBrush
{
get => (Brush) GetValue(SelectionTextBrushProperty);
set => SetValue(SelectionTextBrushProperty, value);
}
#endif
@@ -174,4 +174,4 @@ public class DatePicker : System.Windows.Controls.DatePicker, IDataInput
}
return !isError;
}
}
}
@@ -289,14 +289,14 @@ public class DateTimePicker : Control, IDataInput
#if !(NET40 || NET45 || NET451 || NET452 || NET46 || NET461 || NET462 || NET47 || NET471 || NET472)
public static readonly DependencyProperty SelectionTextBrushProperty =
TextBoxBase.SelectionTextBrushProperty.AddOwner(typeof(DateTimePicker));
public static readonly DependencyProperty SelectionTextBrushProperty =
TextBoxBase.SelectionTextBrushProperty.AddOwner(typeof(DateTimePicker));
public Brush SelectionTextBrush
{
get => (Brush) GetValue(SelectionTextBrushProperty);
set => SetValue(SelectionTextBrushProperty, value);
}
public Brush SelectionTextBrush
{
get => (Brush) GetValue(SelectionTextBrushProperty);
set => SetValue(SelectionTextBrushProperty, value);
}
#endif
@@ -378,7 +378,7 @@ public class DateTimePicker : Control, IDataInput
_textBox.SetBinding(SelectionBrushProperty, new Binding(SelectionBrushProperty.Name) { Source = this });
#if !(NET40 || NET45 || NET451 || NET452 || NET46 || NET461 || NET462 || NET47 || NET471 || NET472)
_textBox.SetBinding(SelectionTextBrushProperty, new Binding(SelectionTextBrushProperty.Name) { Source = this });
_textBox.SetBinding(SelectionTextBrushProperty, new Binding(SelectionTextBrushProperty.Name) { Source = this });
#endif
_textBox.SetBinding(SelectionOpacityProperty, new Binding(SelectionOpacityProperty.Name) { Source = this });
_textBox.SetBinding(CaretBrushProperty, new Binding(CaretBrushProperty.Name) { Source = this });
@@ -542,29 +542,29 @@ public class DateTimePicker : Control, IDataInput
switch (e.Key)
{
case Key.System:
{
switch (e.SystemKey)
{
case Key.Down:
switch (e.SystemKey)
{
if ((Keyboard.Modifiers & ModifierKeys.Alt) == ModifierKeys.Alt)
{
TogglePopup();
return true;
}
case Key.Down:
{
if ((Keyboard.Modifiers & ModifierKeys.Alt) == ModifierKeys.Alt)
{
TogglePopup();
return true;
}
break;
break;
}
}
break;
}
break;
}
case Key.Enter:
{
SetSelectedDateTime();
return true;
}
{
SetSelectedDateTime();
return true;
}
}
return false;
@@ -762,4 +762,4 @@ public class DateTimePicker : Control, IDataInput
}
#endregion
}
}
@@ -39,4 +39,4 @@ public interface IDataInput
/// 是否显示清除按钮
/// </summary>
bool ShowClearButton { get; set; }
}
}
@@ -133,4 +133,4 @@ public class ImageSelector : Control
get => (bool) GetValue(HasValueProperty);
set => SetValue(HasValueProperty, ValueBoxes.BooleanBox(value));
}
}
}
@@ -53,7 +53,7 @@ public class NumericUpDown : Control
{
_textBox.SetBinding(SelectionBrushProperty, new Binding(SelectionBrushProperty.Name) { Source = this });
#if !(NET40 || NET45 || NET451 || NET452 || NET46 || NET461 || NET462 || NET47 || NET471 || NET472)
_textBox.SetBinding(SelectionTextBrushProperty, new Binding(SelectionTextBrushProperty.Name) { Source = this });
_textBox.SetBinding(SelectionTextBrushProperty, new Binding(SelectionTextBrushProperty.Name) { Source = this });
#endif
_textBox.SetBinding(SelectionOpacityProperty, new Binding(SelectionOpacityProperty.Name) { Source = this });
_textBox.SetBinding(CaretBrushProperty, new Binding(CaretBrushProperty.Name) { Source = this });
@@ -311,14 +311,14 @@ public class NumericUpDown : Control
#if !(NET40 || NET45 || NET451 || NET452 || NET46 || NET461 || NET462 || NET47 || NET471 || NET472)
public static readonly DependencyProperty SelectionTextBrushProperty =
TextBoxBase.SelectionTextBrushProperty.AddOwner(typeof(NumericUpDown));
public static readonly DependencyProperty SelectionTextBrushProperty =
TextBoxBase.SelectionTextBrushProperty.AddOwner(typeof(NumericUpDown));
public Brush SelectionTextBrush
{
get => (Brush) GetValue(SelectionTextBrushProperty);
set => SetValue(SelectionTextBrushProperty, value);
}
public Brush SelectionTextBrush
{
get => (Brush) GetValue(SelectionTextBrushProperty);
set => SetValue(SelectionTextBrushProperty, value);
}
#endif
@@ -339,4 +339,4 @@ public class NumericUpDown : Control
get => (Brush) GetValue(CaretBrushProperty);
set => SetValue(CaretBrushProperty, value);
}
}
}
@@ -160,14 +160,14 @@ public class PasswordBox : Control, IDataInput
#if !(NET40 || NET45 || NET451 || NET452 || NET46 || NET461 || NET462 || NET47 || NET471 || NET472)
public static readonly DependencyProperty SelectionTextBrushProperty =
TextBoxBase.SelectionTextBrushProperty.AddOwner(typeof(PasswordBox));
public static readonly DependencyProperty SelectionTextBrushProperty =
TextBoxBase.SelectionTextBrushProperty.AddOwner(typeof(PasswordBox));
public Brush SelectionTextBrush
{
get => (Brush) GetValue(SelectionTextBrushProperty);
set => SetValue(SelectionTextBrushProperty, value);
}
public Brush SelectionTextBrush
{
get => (Brush) GetValue(SelectionTextBrushProperty);
set => SetValue(SelectionTextBrushProperty, value);
}
#endif
@@ -191,10 +191,10 @@ public class PasswordBox : Control, IDataInput
#if !NET40
public static readonly DependencyProperty IsSelectionActiveProperty =
TextBoxBase.IsSelectionActiveProperty.AddOwner(typeof(PasswordBox));
public static readonly DependencyProperty IsSelectionActiveProperty =
TextBoxBase.IsSelectionActiveProperty.AddOwner(typeof(PasswordBox));
public bool IsSelectionActive => ActualPasswordBox != null && (bool) ActualPasswordBox.GetValue(IsSelectionActiveProperty);
public bool IsSelectionActive => ActualPasswordBox != null && (bool) ActualPasswordBox.GetValue(IsSelectionActiveProperty);
#endif
@@ -314,7 +314,7 @@ public class PasswordBox : Control, IDataInput
ActualPasswordBox.SetBinding(System.Windows.Controls.PasswordBox.MaxLengthProperty, new Binding(MaxLengthProperty.Name) { Source = this });
ActualPasswordBox.SetBinding(System.Windows.Controls.PasswordBox.SelectionBrushProperty, new Binding(SelectionBrushProperty.Name) { Source = this });
#if !(NET40 || NET45 || NET451 || NET452 || NET46 || NET461 || NET462 || NET47 || NET471 || NET472)
ActualPasswordBox.SetBinding(System.Windows.Controls.PasswordBox.SelectionTextBrushProperty, new Binding(SelectionTextBrushProperty.Name) { Source = this });
ActualPasswordBox.SetBinding(System.Windows.Controls.PasswordBox.SelectionTextBrushProperty, new Binding(SelectionTextBrushProperty.Name) { Source = this });
#endif
ActualPasswordBox.SetBinding(System.Windows.Controls.PasswordBox.SelectionOpacityProperty, new Binding(SelectionOpacityProperty.Name) { Source = this });
ActualPasswordBox.SetBinding(System.Windows.Controls.PasswordBox.CaretBrushProperty, new Binding(CaretBrushProperty.Name) { Source = this });
@@ -390,4 +390,4 @@ public class PasswordBox : Control, IDataInput
VerifyData();
}
}
}
@@ -292,14 +292,14 @@ public class PinBox : Control
#if !(NET40 || NET45 || NET451 || NET452 || NET46 || NET461 || NET462 || NET47 || NET471 || NET472)
public static readonly DependencyProperty SelectionTextBrushProperty =
TextBoxBase.SelectionTextBrushProperty.AddOwner(typeof(PinBox));
public static readonly DependencyProperty SelectionTextBrushProperty =
TextBoxBase.SelectionTextBrushProperty.AddOwner(typeof(PinBox));
public Brush SelectionTextBrush
{
get => (Brush) GetValue(SelectionTextBrushProperty);
set => SetValue(SelectionTextBrushProperty, value);
}
public Brush SelectionTextBrush
{
get => (Brush) GetValue(SelectionTextBrushProperty);
set => SetValue(SelectionTextBrushProperty, value);
}
#endif
@@ -361,7 +361,7 @@ public class PinBox : Control
passwordBox.SetBinding(SelectionBrushProperty, new Binding(SelectionBrushProperty.Name) { Source = this });
#if !(NET40 || NET45 || NET451 || NET452 || NET46 || NET461 || NET462 || NET47 || NET471 || NET472)
passwordBox.SetBinding(SelectionTextBrushProperty, new Binding(SelectionTextBrushProperty.Name) { Source = this });
passwordBox.SetBinding(SelectionTextBrushProperty, new Binding(SelectionTextBrushProperty.Name) { Source = this });
#endif
passwordBox.SetBinding(SelectionOpacityProperty, new Binding(SelectionOpacityProperty.Name) { Source = this });
passwordBox.SetBinding(CaretBrushProperty, new Binding(CaretBrushProperty.Name) { Source = this });
@@ -407,4 +407,4 @@ public class PinBox : Control
}
}
}
}
}
@@ -127,4 +127,4 @@ public class SearchBar : TextBox, ICommandSource
? command.CanExecute(CommandParameter, CommandTarget)
: Command.CanExecute(CommandParameter);
}
}
}
@@ -12,4 +12,4 @@ public class TextBox : System.Windows.Controls.TextBox
SetCurrentValue(TextProperty, string.Empty);
}));
}
}
}
@@ -311,14 +311,14 @@ public class TimePicker : Control, IDataInput
#if !(NET40 || NET45 || NET451 || NET452 || NET46 || NET461 || NET462 || NET47 || NET471 || NET472)
public static readonly DependencyProperty SelectionTextBrushProperty =
TextBoxBase.SelectionTextBrushProperty.AddOwner(typeof(TimePicker));
public static readonly DependencyProperty SelectionTextBrushProperty =
TextBoxBase.SelectionTextBrushProperty.AddOwner(typeof(TimePicker));
public Brush SelectionTextBrush
{
get => (Brush) GetValue(SelectionTextBrushProperty);
set => SetValue(SelectionTextBrushProperty, value);
}
public Brush SelectionTextBrush
{
get => (Brush) GetValue(SelectionTextBrushProperty);
set => SetValue(SelectionTextBrushProperty, value);
}
#endif
@@ -473,7 +473,7 @@ public class TimePicker : Control, IDataInput
_textBox.SetBinding(SelectionBrushProperty, new Binding(SelectionBrushProperty.Name) { Source = this });
#if !(NET40 || NET45 || NET451 || NET452 || NET46 || NET461 || NET462 || NET47 || NET471 || NET472)
_textBox.SetBinding(SelectionTextBrushProperty, new Binding(SelectionTextBrushProperty.Name) { Source = this });
_textBox.SetBinding(SelectionTextBrushProperty, new Binding(SelectionTextBrushProperty.Name) { Source = this });
#endif
_textBox.SetBinding(SelectionOpacityProperty, new Binding(SelectionOpacityProperty.Name) { Source = this });
_textBox.SetBinding(CaretBrushProperty, new Binding(CaretBrushProperty.Name) { Source = this });
@@ -574,29 +574,29 @@ public class TimePicker : Control, IDataInput
switch (e.Key)
{
case Key.System:
{
switch (e.SystemKey)
{
case Key.Down:
switch (e.SystemKey)
{
if ((Keyboard.Modifiers & ModifierKeys.Alt) == ModifierKeys.Alt)
{
TogglePopup();
return true;
}
case Key.Down:
{
if ((Keyboard.Modifiers & ModifierKeys.Alt) == ModifierKeys.Alt)
{
TogglePopup();
return true;
}
break;
break;
}
}
break;
}
break;
}
case Key.Enter:
{
SetSelectedTime();
return true;
}
{
SetSelectedTime();
return true;
}
}
return false;
@@ -793,4 +793,4 @@ public class TimePicker : Control, IDataInput
}
#endregion Private Methods
}
}
@@ -32,4 +32,4 @@ public class WatermarkTextBox : TextBox
}
}
}
}
}
@@ -132,4 +132,4 @@ public abstract class LoadingBase : ContentControl
ellipse.SetBinding(Shape.StrokeProperty, new Binding(DotBorderBrushProperty.Name) { Source = this });
return ellipse;
}
}
}
@@ -209,4 +209,4 @@ public class LoadingCircle : LoadingBase
return border;
}
}
}
@@ -112,4 +112,4 @@ public class LoadingLine : LoadingBase
ellipse.Margin = new Thickness(-(dotInterval + dotDiameter) * index, 0, 0, 0);
return ellipse;
}
}
}
@@ -167,4 +167,4 @@ public class AnimationPath : Shape
}
private void Storyboard_Completed(object sender, EventArgs e) => RaiseEvent(new RoutedEventArgs(CompletedEvent));
}
}
@@ -97,4 +97,4 @@ public class Badge : ContentControl
}
protected override Geometry GetLayoutClip(Size layoutSlotSize) => null;
}
}
@@ -112,4 +112,4 @@ public class BlendEffectBox : Control
get => (FrameworkElement) GetValue(ActualContentProperty);
set => SetValue(ActualContentProperty, value);
}
}
}
@@ -83,4 +83,4 @@ public class Card : ContentControl
get => (string) GetValue(FooterStringFormatProperty);
set => SetValue(FooterStringFormatProperty, value);
}
}
}
@@ -42,4 +42,4 @@ public class ChatBubble : SelectableItem
IsRead = true;
ReadAction?.Invoke(Content);
}
}
}
@@ -666,4 +666,4 @@ public class DashedBorder : Decorator
internal readonly double BottomLeft;
internal readonly double LeftBottom;
}
}
}
@@ -78,4 +78,4 @@ public class Divider : Control
get => (DoubleCollection) GetValue(LineStrokeDashArrayProperty);
set => SetValue(LineStrokeDashArrayProperty, value);
}
}
}
@@ -32,4 +32,4 @@ public class Empty : ContentControl
public static bool GetShowEmpty(DependencyObject element)
=> (bool) element.GetValue(ShowEmptyProperty);
}
}
@@ -96,4 +96,4 @@ public class GotoTop : Button
_gotoTopAction?.Invoke();
}
}
}
@@ -54,4 +54,4 @@ public class Gravatar : ContentControl
get => (ImageSource) GetValue(SourceProperty);
set => SetValue(SourceProperty, value);
}
}
}
@@ -156,4 +156,4 @@ public class Magnifier : AdornerElement
}
this.Show();
}
}
}
@@ -97,31 +97,31 @@ public sealed class Notification : System.Windows.Window
case ShowAnimation.None:
break;
case ShowAnimation.HorizontalMove:
{
var animation = AnimationHelper.CreateAnimation(desktopWorkingArea.Width);
animation.Completed += Animation_Completed;
BeginAnimation(LeftProperty, animation);
e.Cancel = true;
_shouldBeClosed = true;
}
{
var animation = AnimationHelper.CreateAnimation(desktopWorkingArea.Width);
animation.Completed += Animation_Completed;
BeginAnimation(LeftProperty, animation);
e.Cancel = true;
_shouldBeClosed = true;
}
break;
case ShowAnimation.VerticalMove:
{
var animation = AnimationHelper.CreateAnimation(desktopWorkingArea.Height);
animation.Completed += Animation_Completed;
BeginAnimation(TopProperty, animation);
e.Cancel = true;
_shouldBeClosed = true;
}
{
var animation = AnimationHelper.CreateAnimation(desktopWorkingArea.Height);
animation.Completed += Animation_Completed;
BeginAnimation(TopProperty, animation);
e.Cancel = true;
_shouldBeClosed = true;
}
break;
case ShowAnimation.Fade:
{
var animation = AnimationHelper.CreateAnimation(0);
animation.Completed += Animation_Completed;
BeginAnimation(OpacityProperty, animation);
e.Cancel = true;
_shouldBeClosed = true;
}
{
var animation = AnimationHelper.CreateAnimation(0);
animation.Completed += Animation_Completed;
BeginAnimation(OpacityProperty, animation);
e.Cancel = true;
_shouldBeClosed = true;
}
break;
}
}
@@ -150,4 +150,4 @@ public sealed class Notification : System.Windows.Window
};
_timerClose.Start();
}
}
}
@@ -718,4 +718,4 @@ public class NotifyIcon : FrameworkElement, IDisposable
_isDisposed = true;
}
}
}
@@ -398,4 +398,4 @@ public class Pagination : Control
}
#endregion Private Methods
}
}
@@ -325,4 +325,4 @@ public class Poptip : AdornerElement
SwitchPoptip(false);
}
}
}
@@ -208,4 +208,4 @@ public class ScrollViewer : System.Windows.Controls.ScrollViewer
get => (double) GetValue(CurrentHorizontalOffsetProperty);
set => SetValue(CurrentHorizontalOffsetProperty, value);
}
}
}
@@ -34,4 +34,4 @@ public class Shield : ButtonBase
get => (Brush) GetValue(ColorProperty);
set => SetValue(ColorProperty, value);
}
}
}
@@ -25,4 +25,4 @@ public sealed class Sprite : System.Windows.Window
return sprite;
}
}
}
@@ -104,4 +104,4 @@ public class TransitioningContentControl : ContentControl
StartTransition();
}
}
}
Loaded 100 of 747 files, more files were not shown because too many files have changed in this diff. Show more