@@ -45,14 +45,16 @@ public MyList(ListBlock listBlock)
4545        } 
4646
4747        _stackPanel . Orientation  =  Orientation . Vertical ; 
48+         _stackPanel . Margin  =  new  Thickness ( left :  0 ,  top :  8 ,  right :  0 ,  bottom :  8 ) ; 
4849        _container . Child  =  _stackPanel ; 
4950        _paragraph . Inlines . Add ( _container ) ; 
5051    } 
5152
5253    public  void  AddChild ( IAddChild  child ) 
5354    { 
5455        var  grid  =  new  Grid ( ) ; 
55-         grid . ColumnDefinitions . Add ( new  ColumnDefinition ( )  {  Width  =  new  GridLength ( 1 ,  GridUnitType . Auto )  } ) ; 
56+         grid . ColumnDefinitions . Add ( new  ColumnDefinition ( )  {  Width  =  new  GridLength ( 20 ,  GridUnitType . Pixel )  } ) ; 
57+         grid . ColumnDefinitions . Add ( new  ColumnDefinition ( )  {  Width  =  new  GridLength ( 10 ,  GridUnitType . Pixel )  } ) ; 
5658        grid . ColumnDefinitions . Add ( new  ColumnDefinition ( )  {  Width  =  new  GridLength ( 1 ,  GridUnitType . Star )  } ) ; 
5759        string  bullet ; 
5860        if  ( _isOrdered ) 
@@ -79,11 +81,12 @@ public void AddChild(IAddChild child)
7981        } ; 
8082        textBlock . SetValue ( Grid . ColumnProperty ,  0 ) ; 
8183        textBlock . VerticalAlignment  =  VerticalAlignment . Top ; 
84+         textBlock . TextAlignment  =  TextAlignment . Right ; 
8285        grid . Children . Add ( textBlock ) ; 
8386        var  flowDoc  =  new  MyFlowDocument ( ) ; 
8487        flowDoc . AddChild ( child ) ; 
8588
86-         flowDoc . RichTextBlock . SetValue ( Grid . ColumnProperty ,  1 ) ; 
89+         flowDoc . RichTextBlock . SetValue ( Grid . ColumnProperty ,  2 ) ; 
8790        flowDoc . RichTextBlock . Padding  =  new  Thickness ( 0 ) ; 
8891        flowDoc . RichTextBlock . VerticalAlignment  =  VerticalAlignment . Top ; 
8992        grid . Children . Add ( flowDoc . RichTextBlock ) ; 
0 commit comments