if (this.peer != null)\r
this.peer.OnNotifyCaretChanged();\r
this.View.IsFocused = true;\r
+ this.Focus(FocusState.Programmatic);\r
this.Refresh();\r
}\r
\r
}\r
void Refresh(Rectangle updateRect)\r
{\r
- if (this.rectangle.ActualWidth == 0 || this.rectangle.ActualHeight == 0/* || !this.Render.IsCanDraw()*/)\r
+ if (this.rectangle.ActualWidth == 0 || this.rectangle.ActualHeight == 0 || this.Visibility == Windows.UI.Xaml.Visibility.Collapsed)\r
return;\r
\r
this.Render.BegineDraw();\r
{\r
source.View.HideRuler = !source.DrawRuler;\r
source._Controller.JumpCaret(source.View.CaretPostion.row, source.View.CaretPostion.col);\r
- } \r
+ }\r
}\r
#endregion\r
\r