Пример #1
0
        public LayoutWindowControl(DockView dockView) : base()
        {
            Title = AssemblyData.ShortName();
            WindowExtensions.SetTitleIcon(this, WindowExtensions.GetTitleIcon(Get.Where <IMainViewModel>()?.View));

            DockView = dockView;
            SetCurrentValue(PaddingProperty, new Thickness(5));
            //Loaded += OnLoaded;
        }
Пример #2
0
        public override object ProvideValue(IServiceProvider serviceProvider)
        {
            if (Assembly == null)
            {
                Assembly = AssemblyData.ShortName();
            }

            return(base.ProvideValue(serviceProvider));
        }
Пример #3
0
 public override object ProvideValue(IServiceProvider serviceProvider) => AssemblyData.ShortName(Assembly);
Пример #4
0
 public CurrentImage(string fileName) : base(AssemblyData.ShortName(), $"Images/{fileName}")
 {
 }
Пример #5
0
 public CurrentUri(string relativePath) : base(AssemblyData.ShortName(), relativePath)
 {
 }
Пример #6
0
 public CurrentFont(string fileName) : base(AssemblyData.ShortName(), $"Fonts/{fileName}")
 {
 }
Пример #7
0
 public TimerPanel() : base(Resources.Uri(AssemblyData.ShortName(), "/Images/PlayRound.png"))
 {
     Collection = Get.Current <Options>().Timers;
 }
Пример #8
0
 public AlarmPanel() : base(Resources.Uri(AssemblyData.ShortName(), "/Images/Music.png"))
 {
     Get.Current <Options>().Alarm.Initialize();
 }