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

@@ -27,13 +27,13 @@ public partial class App
public App() public App()
{ {
#if !NET40 #if !NET40
var cachePath = $"{AppDomain.CurrentDomain.BaseDirectory}Cache"; var cachePath = $"{AppDomain.CurrentDomain.BaseDirectory}Cache";
if (!Directory.Exists(cachePath)) if (!Directory.Exists(cachePath))
{ {
Directory.CreateDirectory(cachePath); Directory.CreateDirectory(cachePath);
} }
ProfileOptimization.SetProfileRoot(cachePath); ProfileOptimization.SetProfileRoot(cachePath);
ProfileOptimization.StartProfile("Profile"); ProfileOptimization.StartProfile("Profile");
#endif #endif
} }
@@ -80,7 +80,7 @@ public partial class App
#if NET40 #if NET40
ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072; ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;
#else #else
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
#endif #endif
} }
} }
@@ -136,4 +136,4 @@ public partial class App
} }
} }
} }
} }
@@ -10,4 +10,4 @@ internal class AppConfig
public string Lang { get; set; } = "zh-cn"; public string Lang { get; set; } = "zh-cn";
public SkinType Skin { get; set; } public SkinType Skin { get; set; }
} }
@@ -9,4 +9,4 @@ public enum DemoType
Type4, Type4,
Type5, Type5,
Type6 Type6
} }
@@ -34,4 +34,4 @@ internal class GlobalData
public static AppConfig Config { get; set; } public static AppConfig Config { get; set; }
public static bool NotifyIconIsShow { get; set; } public static bool NotifyIconIsShow { get; set; }
} }
@@ -54,4 +54,4 @@ public class MessageToken
public static readonly string SkinUpdated = nameof(SkinUpdated); public static readonly string SkinUpdated = nameof(SkinUpdated);
} }
@@ -8,4 +8,4 @@ public class AvatarModel
public string Link { get; set; } public string Link { get; set; }
public string AvatarUri { get; set; } public string AvatarUri { get; set; }
} }
@@ -7,4 +7,4 @@ public class CardModel
public string Content { get; set; } public string Content { get; set; }
public string Footer { get; set; } public string Footer { get; set; }
} }
@@ -13,4 +13,4 @@ public struct ChatInfoModel
public ChatMessageType Type { get; set; } public ChatMessageType Type { get; set; }
public object Enclosure { get; set; } public object Enclosure { get; set; }
} }
@@ -5,4 +5,4 @@ public class CoverViewDemoModel
public string ImgPath { get; set; } public string ImgPath { get; set; }
public string BackgroundToken { get; set; } public string BackgroundToken { get; set; }
} }
@@ -18,4 +18,4 @@ public class DemoDataModel
public string ImgPath { get; set; } public string ImgPath { get; set; }
public List<DemoDataModel> DataList { get; set; } public List<DemoDataModel> DataList { get; set; }
} }
@@ -34,4 +34,4 @@ public class DemoInfoModel : ViewModelBase
public bool IsGroupEnabled { get; set; } public bool IsGroupEnabled { get; set; }
public IList<DemoItemModel> DemoItemList { get; set; } public IList<DemoItemModel> DemoItemList { get; set; }
} }
@@ -23,7 +23,7 @@ public class DemoItemModel : ObservableObject
#if NET40 #if NET40
set => Set(nameof(QueriesText), ref _queriesText, value); set => Set(nameof(QueriesText), ref _queriesText, value);
#else #else
set => Set(ref _queriesText, value); set => Set(ref _queriesText, value);
#endif #endif
} }
@@ -33,7 +33,7 @@ public class DemoItemModel : ObservableObject
#if NET40 #if NET40
set => Set(nameof(IsVisible), ref _isVisible, value); set => Set(nameof(IsVisible), ref _isVisible, value);
#else #else
set => Set(ref _isVisible, value); set => Set(ref _isVisible, value);
#endif #endif
} }
} }
@@ -9,4 +9,4 @@ public class GeometryItemModel
public string Key { get; set; } public string Key { get; set; }
public bool Line { get; set; } public bool Line { get; set; }
} }
@@ -29,4 +29,4 @@ public enum Gender
{ {
Male, Male,
Female Female
} }
@@ -5,4 +5,4 @@ public class StepBarDemoModel
public string Header { get; set; } public string Header { get; set; }
public string Content { get; set; } public string Content { get; set; }
} }
@@ -5,4 +5,4 @@ public class TabControlDemoModel
public string Header { get; set; } public string Header { get; set; }
public string BackgroundToken { get; set; } public string BackgroundToken { get; set; }
} }
@@ -50,4 +50,4 @@ public partial class MainWindow
base.OnClosing(e); base.OnClosing(e);
} }
} }
} }
@@ -2556,4 +2556,4 @@ public class LangKeys
/// </summary> /// </summary>
public static string Window = nameof(Window); public static string Window = nameof(Window);
} }
@@ -15,4 +15,4 @@ public class DemoTheme : Theme
{ {
Source = new Uri("pack://application:,,,/HandyControlDemo;component/Resources/Themes/Theme.xaml") Source = new Uri("pack://application:,,,/HandyControlDemo;component/Resources/Themes/Theme.xaml")
}; };
} }
@@ -438,4 +438,4 @@ public class DataService
: "ghost1372"; : "ghost1372";
return $"https://{domainName}.github.io/handycontrol/{key}/{demoItem.Name[0].ToString().ToLower()}{demoItem.Name.Substring(1)}"; return $"https://{domainName}.github.io/handycontrol/{key}/{demoItem.Name[0].ToString().ToLower()}{demoItem.Name.Substring(1)}";
} }
} }
@@ -29,4 +29,4 @@ public class HatchBrushConverter : IValueConverter
{ {
throw new NotSupportedException(); throw new NotSupportedException();
} }
} }
@@ -17,4 +17,4 @@ public class String2BrushConverter : IValueConverter
{ {
throw new NotSupportedException(); throw new NotSupportedException();
} }
} }
@@ -41,4 +41,4 @@ public class StringRepeatConverter : IValueConverter
{ {
throw new NotSupportedException(); throw new NotSupportedException();
} }
} }
@@ -8,4 +8,4 @@ public class LangExtension : HandyControl.Tools.Extension.LangExtension
{ {
Source = LangProvider.Instance; Source = LangProvider.Instance;
} }
} }
@@ -33,4 +33,4 @@ internal class AssemblyHelper
return null; return null;
} }
} }
} }
@@ -35,7 +35,7 @@ internal class VersionHelper
#elif NET6_0 #elif NET6_0
var netVersion = "NET 60"; var netVersion = "NET 60";
#elif NETCOREAPP3_0 #elif NETCOREAPP3_0
var netVersion = "CORE 30"; var netVersion = "CORE 30";
#elif NETCOREAPP3_1 #elif NETCOREAPP3_1
var netVersion = "CORE 31"; var netVersion = "CORE 31";
#endif #endif
@@ -44,4 +44,4 @@ internal class VersionHelper
internal static string GetCopyright() => internal static string GetCopyright() =>
FileVersionInfo.GetVersionInfo(Assembly.GetEntryAssembly().Location).LegalCopyright; FileVersionInfo.GetVersionInfo(Assembly.GetEntryAssembly().Location).LegalCopyright;
} }
@@ -10,4 +10,4 @@ internal class Win32Helper
[DllImport("winmm.dll", EntryPoint = "mciSendString", CharSet = CharSet.Auto)] [DllImport("winmm.dll", EntryPoint = "mciSendString", CharSet = CharSet.Auto)]
public static extern int MciSendString(string lpstrCommand, string lpstrReturnString, int uReturnLength, int hwndCallback); public static extern int MciSendString(string lpstrCommand, string lpstrReturnString, int uReturnLength, int hwndCallback);
} }
@@ -76,4 +76,4 @@ internal class HighlightingProviderDark : HighlightingProvider
["C#"] = new(() => LoadDefinition("CSharp-Dark")), ["C#"] = new(() => LoadDefinition("CSharp-Dark")),
}; };
} }
} }
@@ -36,4 +36,4 @@ public partial class Avatar
get => (string) GetValue(LinkProperty); get => (string) GetValue(LinkProperty);
set => SetValue(LinkProperty, value); set => SetValue(LinkProperty, value);
} }
} }
@@ -18,4 +18,4 @@ public partial class ChatBox
_scrollViewer ??= VisualHelper.GetChild<ScrollViewer>(ListBoxChat); _scrollViewer ??= VisualHelper.GetChild<ScrollViewer>(ListBoxChat);
_scrollViewer?.ScrollToBottom(); _scrollViewer?.ScrollToBottom();
} }
} }
@@ -15,4 +15,4 @@ public partial class GeometryItem
get => (GeometryItemModel) GetValue(InfoProperty); get => (GeometryItemModel) GetValue(InfoProperty);
set => SetValue(InfoProperty, value); set => SetValue(InfoProperty, value);
} }
} }
@@ -3,4 +3,4 @@
internal interface IFull internal interface IFull
{ {
} }
@@ -6,4 +6,4 @@ public partial class InteractiveDialog
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class TextDialog
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -20,4 +20,4 @@ public partial class TextDialogWithTimer
{ {
ButtonClose.Command.Execute(null); ButtonClose.Command.Execute(null);
} }
} }
@@ -6,4 +6,4 @@ public partial class AnimationPathDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class AutoCompleteTextBoxDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class BadgeDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -36,4 +36,4 @@ public partial class ButtonGroupDemoCtl
get => (string) GetValue(LinkProperty); get => (string) GetValue(LinkProperty);
set => SetValue(LinkProperty, value); set => SetValue(LinkProperty, value);
} }
} }
@@ -6,4 +6,4 @@ public partial class CalendarWithClockDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class CardDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -7,4 +7,4 @@ public partial class CarouselDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class ChatBubbleDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class CheckComboBoxDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class CirclePanelDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -7,4 +7,4 @@ public partial class ClockDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -7,4 +7,4 @@ public partial class ColorPickerDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class ComboBoxDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -7,4 +7,4 @@ public partial class CompareSliderDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -24,4 +24,4 @@ public partial class CoverFlowDemoCtl
CoverFlowMain.PageIndex = 2; CoverFlowMain.PageIndex = 2;
} }
} }
@@ -6,4 +6,4 @@ public partial class CoverViewDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class DatePickerDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class DateTimePickerDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class DialogDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class DividerDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class DrawerDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class ElementGroupDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class FlexPanelDemoCtl : IFull
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class FlipClockDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class FloatingBlockDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -13,4 +13,4 @@ public partial class GifImageDemoCtl : IDisposable
{ {
GifImageMain.Dispose(); GifImageMain.Dispose();
} }
} }
@@ -6,4 +6,4 @@ public partial class GotoTopDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class GravatarDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class GridDemoCtl : IFull
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -7,4 +7,4 @@ public partial class GrowlDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class HoneycombPanelDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class ImageBlockDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -7,4 +7,4 @@ public partial class ImageBrowserDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class ImageSelectorDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -7,4 +7,4 @@ public partial class LoadingDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class MagnifierDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class NotificationDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -17,4 +17,4 @@ public partial class NotifyIconDemoCtl
private void NotifyIconDemoCtl_Unloaded(object sender, RoutedEventArgs e) => ViewModelLocator.Instance.NotifyIconDemo.Cleanup(); private void NotifyIconDemoCtl_Unloaded(object sender, RoutedEventArgs e) => ViewModelLocator.Instance.NotifyIconDemo.Cleanup();
private void ButtonPush_OnClick(object sender, RoutedEventArgs e) => NotifyIconContextContent.CloseContextControl(); private void ButtonPush_OnClick(object sender, RoutedEventArgs e) => NotifyIconContextContent.CloseContextControl();
} }
@@ -6,4 +6,4 @@ public partial class NumericUpDownDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class OutlineTextDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -7,4 +7,4 @@ public partial class PaginationDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class PasswordBoxDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -17,4 +17,4 @@ public partial class PinBoxDemoCtl
Growl.Info(pinBox.Password); Growl.Info(pinBox.Password);
} }
} }
} }
@@ -6,4 +6,4 @@ public partial class PoptipDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -7,4 +7,4 @@ public partial class PreviewSliderDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -7,4 +7,4 @@ public partial class ProgressBarDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -61,4 +61,4 @@ public partial class ProgressButtonDemoCtl
_timer.Start(); _timer.Start();
} }
} }
} }
@@ -27,4 +27,4 @@ public partial class PropertyGridDemoCtl
get => (PropertyGridDemoModel) GetValue(DemoModelProperty); get => (PropertyGridDemoModel) GetValue(DemoModelProperty);
set => SetValue(DemoModelProperty, value); set => SetValue(DemoModelProperty, value);
} }
} }
@@ -6,4 +6,4 @@ public partial class RangeSliderDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class RateDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class RelativePanelDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class RunningBlockDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -29,4 +29,4 @@ public partial class ScreenshotDemoCtl : IDisposable
} }
public void Dispose() => Screenshot.Snapped -= Screenshot_Snapped; public void Dispose() => Screenshot.Snapped -= Screenshot_Snapped;
} }
@@ -7,4 +7,4 @@ public partial class ScrollViewerDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class SearchBarDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class ShieldDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class SideMenuDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -13,4 +13,4 @@ public partial class SplitButtonDemoCtl
{ {
MessageBox.Show("123"); MessageBox.Show("123");
} }
} }
@@ -6,4 +6,4 @@ public partial class SpriteDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -7,4 +7,4 @@ public partial class StepBarDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class TabControlDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class TagDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -6,4 +6,4 @@ public partial class TextBoxDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
@@ -16,4 +16,4 @@ public partial class TimeBarDemoCtl
TimeBarDemo.Hotspots.Add(new DateTimeRange(DateTime.Today.AddHours(-hour), DateTime.Today.AddHours(-hour + 1))); TimeBarDemo.Hotspots.Add(new DateTimeRange(DateTime.Today.AddHours(-hour), DateTime.Today.AddHours(-hour + 1)));
} }
} }
} }
@@ -6,4 +6,4 @@ public partial class TimePickerDemoCtl
{ {
InitializeComponent(); InitializeComponent();
} }
} }
Loaded 100 of 747 files, more files were not shown because too many files have changed in this diff. Show more