示例#1
0
        public override void UpdateTitleBar(TitleBarData data)
        {
            // title-bar background
            if (MainTitleBar != null)
            {
                {
                    System.Reflection.PropertyInfo property = MainTitleBar.GetType().GetProperty("Background");
                    property.SetValue(MainTitleBar, data.TitleBarBackgroundColor ?? defaultMainTitleBarBackground, null);
                }

                // title-bar foreground
                {
                    //System.Reflection.PropertyInfo property = MainTitleBar.GetType().GetProperty("Foreground");
                    //property.SetValue(MainTitleBar, data.TitleBarForegroundColor ?? defaultMainTitleBarForeground, null);
                }
            }

            // title-bar text
            {
                var title = data.TitleBarText ?? defaultMainTitleBarText;
                if (Window.Title != title)
                {
                    Window.Title = title;
                }
            }

            var k = PrimeTitleInfoBlock;

            // title-bar-infos for visual studio 2019
            {
                // something something
            }
        }
示例#2
0
 public override void UpdateTitleBar(TitleBarData data)
 {
     throw new NotImplementedException();
 }
示例#3
0
 public abstract void UpdateTitleBar(TitleBarData data);