mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-09 16:06:09 +02:00
US-1889327: Suggestion/warning fixes for WPF. (#1314)
* Suggestion/warning fixes for US-1889327. * Updated H2s. * Minor content edit. * Review edits. * Minor edits. * Update dotnet-desktop-guide/framework/wpf/advanced/localization-attributes-and-comments.md Co-authored-by: Andy (Steve) De George <[email protected]>
This commit is contained in:
co-authored by
Andy De George
parent
22741516f0
commit
caa62283b8
@@ -1,6 +1,8 @@
|
||||
---
|
||||
title: "How to: Rotate Ink"
|
||||
ms.date: "03/30/2017"
|
||||
ms.custom: devdivchpfy22
|
||||
description: Learn how to rotate Ink.
|
||||
dev_langs:
|
||||
- "csharp"
|
||||
- "vb"
|
||||
@@ -10,14 +12,14 @@ helpviewer_keywords:
|
||||
ms.assetid: fac36cc9-dd01-41ca-9bde-9d33e3790bbe
|
||||
---
|
||||
# How to: Rotate Ink
|
||||
## Example
|
||||
## Example to rotate Ink
|
||||
The following example copies the ink from an <xref:System.Windows.Controls.InkCanvas> to a <xref:System.Windows.Controls.Canvas> that contains an <xref:System.Windows.Controls.InkPresenter>. When the application copies the ink, it also rotates the ink 90 degrees clockwise.
|
||||
|
||||
[!code-xaml[HowToRotateInk#1](~/samples/snippets/csharp/VS_Snippets_Wpf/HowToRotateInk/CSharp/Window1.xaml#1)]
|
||||
|
||||
[!code-csharp[HowToRotateInk#2](~/samples/snippets/csharp/VS_Snippets_Wpf/HowToRotateInk/CSharp/Window1.xaml.cs#2)]
|
||||
|
||||
## Example
|
||||
## Adorner for Strokes
|
||||
The following example is a custom <xref:System.Windows.Documents.Adorner> that rotates the strokes on an <xref:System.Windows.Controls.InkPresenter>.
|
||||
|
||||
[!code-csharp[AdornerForStrokes#1](~/samples/snippets/csharp/VS_Snippets_Wpf/AdornerForStrokes/CSharp/RotatingAdornerForStrokes.cs#1)]
|
||||
|
||||
Reference in New Issue
Block a user