This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +22
-14
lines changed
Expand file tree Collapse file tree 7 files changed +22
-14
lines changed Original file line number Diff line number Diff line change 202202 <Project >{6AFE2E2D-6DB0-4430-A2EA-F5F5388D2F78}</Project >
203203 <Name >GitHub.Extensions</Name >
204204 </ProjectReference >
205+ <ProjectReference Include =" ..\GitHub.UI.Reactive\GitHub.UI.Reactive.csproj" >
206+ <Project >{158b05e8-fdbc-4d71-b871-c96e28d5adf5}</Project >
207+ <Name >GitHub.UI.Reactive</Name >
208+ </ProjectReference >
205209 <ProjectReference Include =" ..\GitHub.UI\GitHub.UI.csproj" >
206210 <Project >{346384dd-2445-4a28-af22-b45f3957bd89}</Project >
207211 <Name >GitHub.UI</Name >
Original file line number Diff line number Diff line change 11using System ;
22using System . Collections . ObjectModel ;
3+ using GitHub . ViewModels ;
34using GitHub . InlineReviews . ViewModels ;
4- using GitHub . Models ;
5- using GitHub . SampleData ;
6- using ReactiveUI ;
75
86namespace GitHub . InlineReviews . SampleData
97{
10- class CommentTooltipViewModelDesigner : ICommentTooltipViewModel
8+ class CommentTooltipViewModelDesigner : ViewModelBase , ICommentTooltipViewModel
119 {
1210 public ObservableCollection < ICommentViewModel > Comments { get ; }
1311 = new ObservableCollection < ICommentViewModel > ( ) ;
Original file line number Diff line number Diff line change 11using System ;
22using System . Reactive ;
3+ using ReactiveUI ;
34using GitHub . InlineReviews . ViewModels ;
45using GitHub . Models ;
56using GitHub . SampleData ;
6- using ReactiveUI ;
7+ using GitHub . ViewModels ;
78
89namespace GitHub . InlineReviews . SampleData
910{
10- class CommentViewModelDesigner : ICommentViewModel
11+ class CommentViewModelDesigner : ViewModelBase , ICommentViewModel
1112 {
1213 public CommentViewModelDesigner ( )
1314 {
Original file line number Diff line number Diff line change 11using System ;
22using System . Collections . ObjectModel ;
3+ using GitHub . ViewModels ;
34
45namespace GitHub . InlineReviews . ViewModels
56{
67 /// <summary>
78 /// Base view model for a tooltip that displays comments.
89 /// </summary>
9- public class CommentTooltipViewModel : ICommentTooltipViewModel
10+ public class CommentTooltipViewModel : ViewModelBase , ICommentTooltipViewModel
1011 {
1112 /// <inheritdoc/>
1213 public ObservableCollection < ICommentViewModel > Comments { get ; } =
Original file line number Diff line number Diff line change 11using System ;
22using System . Collections . ObjectModel ;
3- using GitHub . Models ;
43using ReactiveUI ;
4+ using GitHub . Models ;
5+ using GitHub . ViewModels ;
56
67namespace GitHub . InlineReviews . ViewModels
78{
89 /// <summary>
910 /// A comment tooltip.
1011 /// </summary>
11- public interface ICommentTooltipViewModel
12+ public interface ICommentTooltipViewModel : IViewModel
1213 {
1314 /// <summary>
1415 /// Gets the comments in the thread.
Original file line number Diff line number Diff line change 1- <UserControl x : Class =" GitHub.InlineReviews.Views.CommentTooltipView"
1+ <local : GenericCommentTooltipView x : Class =" GitHub.InlineReviews.Views.CommentTooltipView"
22 xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33 xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
44 xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
4040 </ItemsControl >
4141 </ScrollViewer >
4242 </DockPanel >
43- </UserControl >
43+ </local : GenericCommentTooltipView >
Original file line number Diff line number Diff line change 11using System ;
2- using System . ComponentModel ;
3- using System . Windows . Controls ;
2+ using GitHub . UI ;
3+ using GitHub . InlineReviews . ViewModels ;
44
55namespace GitHub . InlineReviews . Views
66{
7- public partial class CommentTooltipView : UserControl
7+ public class GenericCommentTooltipView : ViewBase < ICommentTooltipViewModel , CommentTooltipView >
8+ { }
9+
10+ public partial class CommentTooltipView : GenericCommentTooltipView
811 {
912 public CommentTooltipView ( )
1013 {
You can’t perform that action at this time.
0 commit comments