コード例 #1
0
        public HomeRibbonItemViewModel()
        {
            IsSelected = true;
            Header     = Strings.Current.GetString(StringId.Home);
            Height     = 89;

            BarView = new BarViewModel
            {
                Items = new List <object>
                {
                    CreateFontFormattingGroup(),
                    new SeparatorViewModel(),
                    CreateParagraphFormattingGroup(),
                    new SeparatorViewModel()
                }
            };
        }
コード例 #2
0
        public ViewRibbonItemViewModel()
        {
            Header  = Strings.Current.GetString(StringId.View);
            BarView = new BarViewModel();

            BarView.Items = new List <object>
            {
                new RadioButtonViewModel
                {
                    Content     = Strings.Current.GetString(StringId.Read),
                    ImageSource = Images.Current.GetImage(ImageId.ReadModeIcon),
                },
                new RadioButtonViewModel
                {
                    IsChecked   = true,
                    Content     = Strings.Current.GetString(StringId.Edit),
                    ImageSource = Images.Current.GetImage(ImageId.EditModeIcon),
                },
                new SeparatorViewModel(),
                (ZoomLevel = new ZoomLevelGroupBarViewModel()),
                new SeparatorViewModel(),
                (ShowHide = new ShowHideGroupBarViewModel())
            };
        }