Browse Source

Fixed indentation.

pull/39/head
Steven Kirk 11 years ago
parent
commit
0ee5f80980
  1. 22
      Docs/intro.md

22
Docs/intro.md

@ -100,8 +100,8 @@ Attached properties are set just like in WPF, using `SetValue()`. But what about
```csharp ```csharp
var control = new Control var control = new Control
{ {
Property1 = "Foo", Property1 = "Foo",
[Attached.Property] = "Bar", [Attached.Property] = "Bar",
} }
``` ```
@ -111,9 +111,9 @@ Nice... Lets take this further:
```csharp ```csharp
var control = new Control var control = new Control
{ {
Property1 = "Foo", Property1 = "Foo",
[Attached.Property] = "Bar", [Attached.Property] = "Bar",
[!Property2] = something.SomeObservable, [!Property2] = something.SomeObservable,
} }
``` ```
@ -125,9 +125,9 @@ Binding to a property on another control? Easy:
```csharp ```csharp
var control = new Control var control = new Control
{ {
Property1 = "Foo", Property1 = "Foo",
[Attached.Property] = "Bar", [Attached.Property] = "Bar",
[!Property2] = anotherControl[!Property1], [!Property2] = anotherControl[!Property1],
} }
``` ```
@ -136,9 +136,9 @@ Two way binding? Just add two bangs:
```csharp ```csharp
var control = new Control var control = new Control
{ {
Property1 = "Foo", Property1 = "Foo",
[Attached.Property] = "Bar", [Attached.Property] = "Bar",
[!!Property2] = anotherControl[!!Property1], [!!Property2] = anotherControl[!!Property1],
} }
``` ```

Loading…
Cancel
Save