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

View File

@ -27,13 +27,13 @@ public partial class App
public App()
{
#if !NET40
var cachePath = $"{AppDomain.CurrentDomain.BaseDirectory}Cache";
if (!Directory.Exists(cachePath))
{
Directory.CreateDirectory(cachePath);
}
ProfileOptimization.SetProfileRoot(cachePath);
ProfileOptimization.StartProfile("Profile");
var cachePath = $"{AppDomain.CurrentDomain.BaseDirectory}Cache";
if (!Directory.Exists(cachePath))
{
Directory.CreateDirectory(cachePath);
}
ProfileOptimization.SetProfileRoot(cachePath);
ProfileOptimization.StartProfile("Profile");
#endif
}
@ -80,7 +80,7 @@ public partial class App
#if NET40
ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;
#else
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
#endif
}
}
@ -136,4 +136,4 @@ public partial class App
}
}
}
}
}

View File

@ -10,4 +10,4 @@ internal class AppConfig
public string Lang { get; set; } = "zh-cn";
public SkinType Skin { get; set; }
}
}

View File

@ -9,4 +9,4 @@ public enum DemoType
Type4,
Type5,
Type6
}
}

View File

@ -34,4 +34,4 @@ internal class GlobalData
public static AppConfig Config { get; set; }
public static bool NotifyIconIsShow { get; set; }
}
}

View File

@ -54,4 +54,4 @@ public class MessageToken
public static readonly string SkinUpdated = nameof(SkinUpdated);
}
}

View File

@ -8,4 +8,4 @@ public class AvatarModel
public string Link { get; set; }
public string AvatarUri { get; set; }
}
}

View File

@ -7,4 +7,4 @@ public class CardModel
public string Content { get; set; }
public string Footer { get; set; }
}
}

View File

@ -13,4 +13,4 @@ public struct ChatInfoModel
public ChatMessageType Type { get; set; }
public object Enclosure { get; set; }
}
}

View File

@ -5,4 +5,4 @@ public class CoverViewDemoModel
public string ImgPath { get; set; }
public string BackgroundToken { get; set; }
}
}

View File

@ -18,4 +18,4 @@ public class DemoDataModel
public string ImgPath { get; set; }
public List<DemoDataModel> DataList { get; set; }
}
}

View File

@ -34,4 +34,4 @@ public class DemoInfoModel : ViewModelBase
public bool IsGroupEnabled { get; set; }
public IList<DemoItemModel> DemoItemList { get; set; }
}
}

View File

@ -23,7 +23,7 @@ public class DemoItemModel : ObservableObject
#if NET40
set => Set(nameof(QueriesText), ref _queriesText, value);
#else
set => Set(ref _queriesText, value);
set => Set(ref _queriesText, value);
#endif
}
@ -33,7 +33,7 @@ public class DemoItemModel : ObservableObject
#if NET40
set => Set(nameof(IsVisible), ref _isVisible, value);
#else
set => Set(ref _isVisible, value);
set => Set(ref _isVisible, value);
#endif
}
}
}

View File

@ -9,4 +9,4 @@ public class GeometryItemModel
public string Key { get; set; }
public bool Line { get; set; }
}
}

View File

@ -29,4 +29,4 @@ public enum Gender
{
Male,
Female
}
}

View File

@ -5,4 +5,4 @@ public class StepBarDemoModel
public string Header { get; set; }
public string Content { get; set; }
}
}

View File

@ -5,4 +5,4 @@ public class TabControlDemoModel
public string Header { get; set; }
public string BackgroundToken { get; set; }
}
}

View File

@ -50,4 +50,4 @@ public partial class MainWindow
base.OnClosing(e);
}
}
}
}

View File

@ -2556,4 +2556,4 @@ public class LangKeys
/// </summary>
public static string Window = nameof(Window);
}
}

View File

@ -15,4 +15,4 @@ public class DemoTheme : Theme
{
Source = new Uri("pack://application:,,,/HandyControlDemo;component/Resources/Themes/Theme.xaml")
};
}
}

View File

@ -438,4 +438,4 @@ public class DataService
: "ghost1372";
return $"https://{domainName}.github.io/handycontrol/{key}/{demoItem.Name[0].ToString().ToLower()}{demoItem.Name.Substring(1)}";
}
}
}

View File

@ -29,4 +29,4 @@ public class HatchBrushConverter : IValueConverter
{
throw new NotSupportedException();
}
}
}

View File

@ -17,4 +17,4 @@ public class String2BrushConverter : IValueConverter
{
throw new NotSupportedException();
}
}
}

View File

@ -41,4 +41,4 @@ public class StringRepeatConverter : IValueConverter
{
throw new NotSupportedException();
}
}
}

View File

@ -8,4 +8,4 @@ public class LangExtension : HandyControl.Tools.Extension.LangExtension
{
Source = LangProvider.Instance;
}
}
}

View File

@ -33,4 +33,4 @@ internal class AssemblyHelper
return null;
}
}
}
}

View File

@ -35,7 +35,7 @@ internal class VersionHelper
#elif NET6_0
var netVersion = "NET 60";
#elif NETCOREAPP3_0
var netVersion = "CORE 30";
var netVersion = "CORE 30";
#elif NETCOREAPP3_1
var netVersion = "CORE 31";
#endif
@ -44,4 +44,4 @@ internal class VersionHelper
internal static string GetCopyright() =>
FileVersionInfo.GetVersionInfo(Assembly.GetEntryAssembly().Location).LegalCopyright;
}
}

View File

@ -10,4 +10,4 @@ internal class Win32Helper
[DllImport("winmm.dll", EntryPoint = "mciSendString", CharSet = CharSet.Auto)]
public static extern int MciSendString(string lpstrCommand, string lpstrReturnString, int uReturnLength, int hwndCallback);
}
}

View File

@ -76,4 +76,4 @@ internal class HighlightingProviderDark : HighlightingProvider
["C#"] = new(() => LoadDefinition("CSharp-Dark")),
};
}
}
}

View File

@ -36,4 +36,4 @@ public partial class Avatar
get => (string) GetValue(LinkProperty);
set => SetValue(LinkProperty, value);
}
}
}

View File

@ -18,4 +18,4 @@ public partial class ChatBox
_scrollViewer ??= VisualHelper.GetChild<ScrollViewer>(ListBoxChat);
_scrollViewer?.ScrollToBottom();
}
}
}

View File

@ -15,4 +15,4 @@ public partial class GeometryItem
get => (GeometryItemModel) GetValue(InfoProperty);
set => SetValue(InfoProperty, value);
}
}
}

View File

@ -3,4 +3,4 @@
internal interface IFull
{
}
}

View File

@ -6,4 +6,4 @@ public partial class InteractiveDialog
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class TextDialog
{
InitializeComponent();
}
}
}

View File

@ -20,4 +20,4 @@ public partial class TextDialogWithTimer
{
ButtonClose.Command.Execute(null);
}
}
}

View File

@ -6,4 +6,4 @@ public partial class AnimationPathDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class AutoCompleteTextBoxDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class BadgeDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -36,4 +36,4 @@ public partial class ButtonGroupDemoCtl
get => (string) GetValue(LinkProperty);
set => SetValue(LinkProperty, value);
}
}
}

View File

@ -6,4 +6,4 @@ public partial class CalendarWithClockDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class CardDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -7,4 +7,4 @@ public partial class CarouselDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class ChatBubbleDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class CheckComboBoxDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class CirclePanelDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -7,4 +7,4 @@ public partial class ClockDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -7,4 +7,4 @@ public partial class ColorPickerDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class ComboBoxDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -7,4 +7,4 @@ public partial class CompareSliderDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -24,4 +24,4 @@ public partial class CoverFlowDemoCtl
CoverFlowMain.PageIndex = 2;
}
}
}

View File

@ -6,4 +6,4 @@ public partial class CoverViewDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class DatePickerDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class DateTimePickerDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class DialogDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class DividerDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class DrawerDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class ElementGroupDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class FlexPanelDemoCtl : IFull
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class FlipClockDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class FloatingBlockDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -13,4 +13,4 @@ public partial class GifImageDemoCtl : IDisposable
{
GifImageMain.Dispose();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class GotoTopDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class GravatarDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class GridDemoCtl : IFull
{
InitializeComponent();
}
}
}

View File

@ -7,4 +7,4 @@ public partial class GrowlDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class HoneycombPanelDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class ImageBlockDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -7,4 +7,4 @@ public partial class ImageBrowserDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class ImageSelectorDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -7,4 +7,4 @@ public partial class LoadingDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class MagnifierDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class NotificationDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -17,4 +17,4 @@ public partial class NotifyIconDemoCtl
private void NotifyIconDemoCtl_Unloaded(object sender, RoutedEventArgs e) => ViewModelLocator.Instance.NotifyIconDemo.Cleanup();
private void ButtonPush_OnClick(object sender, RoutedEventArgs e) => NotifyIconContextContent.CloseContextControl();
}
}

View File

@ -6,4 +6,4 @@ public partial class NumericUpDownDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class OutlineTextDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -7,4 +7,4 @@ public partial class PaginationDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class PasswordBoxDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -17,4 +17,4 @@ public partial class PinBoxDemoCtl
Growl.Info(pinBox.Password);
}
}
}
}

View File

@ -6,4 +6,4 @@ public partial class PoptipDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -7,4 +7,4 @@ public partial class PreviewSliderDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -7,4 +7,4 @@ public partial class ProgressBarDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -61,4 +61,4 @@ public partial class ProgressButtonDemoCtl
_timer.Start();
}
}
}
}

View File

@ -27,4 +27,4 @@ public partial class PropertyGridDemoCtl
get => (PropertyGridDemoModel) GetValue(DemoModelProperty);
set => SetValue(DemoModelProperty, value);
}
}
}

View File

@ -6,4 +6,4 @@ public partial class RangeSliderDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class RateDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class RelativePanelDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class RunningBlockDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -29,4 +29,4 @@ public partial class ScreenshotDemoCtl : IDisposable
}
public void Dispose() => Screenshot.Snapped -= Screenshot_Snapped;
}
}

View File

@ -7,4 +7,4 @@ public partial class ScrollViewerDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class SearchBarDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class ShieldDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class SideMenuDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -13,4 +13,4 @@ public partial class SplitButtonDemoCtl
{
MessageBox.Show("123");
}
}
}

View File

@ -6,4 +6,4 @@ public partial class SpriteDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -7,4 +7,4 @@ public partial class StepBarDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class TabControlDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class TagDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -6,4 +6,4 @@ public partial class TextBoxDemoCtl
{
InitializeComponent();
}
}
}

View File

@ -16,4 +16,4 @@ public partial class TimeBarDemoCtl
TimeBarDemo.Hotspots.Add(new DateTimeRange(DateTime.Today.AddHours(-hour), DateTime.Today.AddHours(-hour + 1)));
}
}
}
}

View File

@ -6,4 +6,4 @@ public partial class TimePickerDemoCtl
{
InitializeComponent();
}
}
}

Some files were not shown because too many files have changed in this diff Show More