Skip to content

Commit 74f417c

Browse files
authored
Merge pull request #3161 from Jaiganeshkumaran/patch-2
Update custom-dependency-properties.md
2 parents 2e7287c + 68ab340 commit 74f417c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

windows-apps-src/xaml-platform/custom-dependency-properties.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dev_langs:
1010
- csharp
1111
- vb
1212
- cppwinrt
13-
- cpp
13+
- cppcx
1414
---
1515
# Custom dependency properties
1616

@@ -120,7 +120,7 @@ Windows::UI::Xaml::DependencyProperty ImageWithLabelControl::m_labelProperty =
120120
...
121121
```
122122

123-
```cpp
123+
```cppcx
124124
//.h file
125125
//using namespace Windows::UI::Xaml::Controls;
126126
//using namespace Windows::UI::Xaml::Interop;
@@ -212,7 +212,7 @@ void Label(winrt::hstring const& value)
212212
...
213213
```
214214

215-
```cpp
215+
```cppcx
216216
//using namespace Platform;
217217
public:
218218
...
@@ -276,7 +276,7 @@ Windows::UI::Xaml::DependencyProperty ImageWithLabelControl::m_labelProperty =
276276
...
277277
```
278278

279-
```cpp
279+
```cppcx
280280
DependencyProperty^ ImageWithLabelControl::_LabelProperty =
281281
DependencyProperty::Register("Label",
282282
Platform::String::typeid,
@@ -356,7 +356,7 @@ void ImageWithLabelControl::OnLabelChanged(Windows::UI::Xaml::DependencyObject c
356356
}
357357
```
358358

359-
```cpp
359+
```cppcx
360360
static void OnLabelChanged(DependencyObject^ d, DependencyPropertyChangedEventArgs^ e)
361361
{
362362
ImageWithLabelControl^ iwlc = (ImageWithLabelControl^)d;
@@ -403,7 +403,7 @@ static void OnVisibilityValueChanged(Windows::UI::Xaml::DependencyObject const&
403403
}
404404
```
405405

406-
```cpp
406+
```cppcx
407407
static void OnVisibilityValueChanged(DependencyObject^ d, DependencyPropertyChangedEventArgs^ e)
408408
{
409409
if ((Visibility)e->NewValue != (Visibility)e->OldValue)
@@ -474,4 +474,4 @@ The implementation for registering a property in C++/CX is trickier than C#, bot
474474
- [**DependencyProperty.Register**](/uwp/api/windows.ui.xaml.dependencyproperty.register)
475475
- [Dependency properties overview](dependency-properties-overview.md)
476476
- [XAML user and custom controls sample](https://github.com/microsoftarchive/msdn-code-gallery-microsoft/tree/master/Official%20Windows%20Platform%20Sample/XAML%20user%20and%20custom%20controls%20sample)
477-
 
477+
 

0 commit comments

Comments
 (0)