|
|
|
Binding of custom attached property to viewmodel's property
|
|||
|---|---|---|---|
|
#18+
Можна ли забиндить кастомную пропертю типа делегата на соответсвующее свойство вьюмодели? Надо просто получить доступ к методу AppendText RichtextBox'а из вьюмодели... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 30.01.2010, 16:47 |
|
||
|
Binding of custom attached property to viewmodel's property
|
|||
|---|---|---|---|
|
#18+
SomeQuestion, Так проперть или делегат? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 30.01.2010, 23:24 |
|
||
|
Binding of custom attached property to viewmodel's property
|
|||
|---|---|---|---|
|
#18+
Пропертя типа длегата: public delegate void DelegateCommand(string data); public static readonly DependencyProperty AppendTextCommandProperty = DependencyProperty.RegisterAttached( "AppendTextCommand", typeof(DelegateCommand), typeof(RichTextBoxBinding), new PropertyMetadata(new DelegateCommand((param) => { }), AppendTextCommandChanged)); ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 31.01.2010, 00:13 |
|
||
|
|

start [/forum/topic.php?fid=21&tid=1442906]: |
0ms |
get settings: |
9ms |
get forum list: |
9ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
68ms |
get topic data: |
10ms |
get forum data: |
3ms |
get page messages: |
40ms |
get tp. blocked users: |
2ms |
| others: | 225ms |
| total: | 372ms |

| 0 / 0 |
