Skip to content

Commit

Permalink
Added documentation for drag and drop samples and removed some sample…
Browse files Browse the repository at this point in the history
… apps that added no specific value. Concepts in these apps are covered in other sections in the sample repository
  • Loading branch information
Harikm committed Aug 16, 2015
1 parent 66f6f94 commit 6debd9e
Show file tree
Hide file tree
Showing 38 changed files with 20 additions and 2,012 deletions.
1 change: 1 addition & 0 deletions Drag and Drop/DragDropOpenTextFile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This sample will open and display the contents of a file dropped on the sample. Methods demonstrated in this sample include:
- GetData
- GetDataPresent

In this sample, event handlers monitor the PreviewDragOver and PreviewDrop events on a TextBox. When an object is dragged over the TextBox, a PreviewDragOver event handler checks to see if the object is a single file, and adjusts the DragDropEffects to indicate that a single file can be dropped, and anything else cannot. When a single file is dropped on the TextBox, a PreviewDrop event handler displays the file contents in the TextBox.

## Build the sample
Expand Down
7 changes: 0 additions & 7 deletions Elements/ContextMenuOpening/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@

# %Sample% sample

This sample shows how to use the %objective

## Remarks


## Build the sample

The easiest way to use these samples without using Git is to download the zip file containing the current version (using the link below or by clicking the "Download ZIP" button on the repo page). You can then unzip the entire archive and use the samples in [Visual Studio 2015](https://www.visualstudio.com/wpf-vs).

### Deploying the sample

- Select Build > Deploy Solution.

### Deploying and running the sample

- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging.

11 changes: 2 additions & 9 deletions Elements/FindingElementInPanel/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@

# %Sample% sample

This sample shows how to use the %objective

## Remarks

# Finding the Index of an Element in a Panel Sample
This example describes how to find the index number of a newly added element within a panel, using the IndexOf method.

## Build the sample

The easiest way to use these samples without using Git is to download the zip file containing the current version (using the link below or by clicking the "Download ZIP" button on the repo page). You can then unzip the entire archive and use the samples in [Visual Studio 2015](https://www.visualstudio.com/wpf-vs).

### Deploying the sample

- Select Build > Deploy Solution.

### Deploying and running the sample

- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging.

11 changes: 2 additions & 9 deletions Elements/FocusVisualStyle/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@

# %Sample% sample

This sample shows how to use the %objective

## Remarks

# Creating a FocusVisualStyle Sample
This example describes how to create a style for use as a FocusVisualStyle on a control.

## Build the sample

The easiest way to use these samples without using Git is to download the zip file containing the current version (using the link below or by clicking the "Download ZIP" button on the repo page). You can then unzip the entire archive and use the samples in [Visual Studio 2015](https://www.visualstudio.com/wpf-vs).

### Deploying the sample

- Select Build > Deploy Solution.

### Deploying and running the sample

- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging.

11 changes: 2 additions & 9 deletions Elements/HeightProperties/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@

# %Sample% sample

This sample shows how to use the %objective

## Remarks

# Height Properties Sample
This sample shows the differences among the height-related properties in Windows Presentation Foundation (WPF). The sample demonstrates the effects of three properties declared by FrameworkElement that describe the height characteristics of an element. These values can conflict and when they do, the MinHeight value takes precedence over the MaxHeight value, which in turn takes precedence over the Height value.

## Build the sample

The easiest way to use these samples without using Git is to download the zip file containing the current version (using the link below or by clicking the "Download ZIP" button on the repo page). You can then unzip the entire archive and use the samples in [Visual Studio 2015](https://www.visualstudio.com/wpf-vs).

### Deploying the sample

- Select Build > Deploy Solution.

### Deploying and running the sample

- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging.

11 changes: 2 additions & 9 deletions Elements/LoadedEvent/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@

# %Sample% sample

This sample shows how to use the %objective

## Remarks

# Loaded Event Sample
This example shows you how to create a button when the page loads.

## Build the sample

The easiest way to use these samples without using Git is to download the zip file containing the current version (using the link below or by clicking the "Download ZIP" button on the repo page). You can then unzip the entire archive and use the samples in [Visual Studio 2015](https://www.visualstudio.com/wpf-vs).

### Deploying the sample

- Select Build > Deploy Solution.

### Deploying and running the sample

- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging.

11 changes: 2 additions & 9 deletions Elements/SettingMargins/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@

# %Sample% sample

This sample shows how to use the %objective

## Remarks

# Setting Margins Sample
This example describes how to set margins, by changing any existing property value for the margin in code-behind. The Margin property is a property of the FrameworkElement base element, and is thus inherited by a variety of controls and other elements.

## Build the sample

The easiest way to use these samples without using Git is to download the zip file containing the current version (using the link below or by clicking the "Download ZIP" button on the repo page). You can then unzip the entire archive and use the samples in [Visual Studio 2015](https://www.visualstudio.com/wpf-vs).

### Deploying the sample

- Select Build > Deploy Solution.

### Deploying and running the sample

- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging.

11 changes: 2 additions & 9 deletions Elements/ThicknessConverter/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@

# %Sample% sample

This sample shows how to use the %objective

## Remarks

# ThicknessConverter Sample
This sample shows how to convert the contents of a ListBoxItem to an instance of Thickness by using the ThicknessConverter object.

## Build the sample

The easiest way to use these samples without using Git is to download the zip file containing the current version (using the link below or by clicking the "Download ZIP" button on the repo page). You can then unzip the entire archive and use the samples in [Visual Studio 2015](https://www.visualstudio.com/wpf-vs).

### Deploying the sample

- Select Build > Deploy Solution.

### Deploying and running the sample

- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging.

11 changes: 2 additions & 9 deletions Elements/UsingElements/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@

# %Sample% sample

This sample shows how to use the %objective

## Remarks

# Using Elements Sample
This sample shows how to add, remove, clear, insert, and find the index of elements in a tree.

## Build the sample

The easiest way to use these samples without using Git is to download the zip file containing the current version (using the link below or by clicking the "Download ZIP" button on the repo page). You can then unzip the entire archive and use the samples in [Visual Studio 2015](https://www.visualstudio.com/wpf-vs).

### Deploying the sample

- Select Build > Deploy Solution.

### Deploying and running the sample

- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging.

11 changes: 2 additions & 9 deletions Elements/VisibiltyChanges/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@

# %Sample% sample

This sample shows how to use the %objective

## Remarks

# Visibility Changes to a UIElement Sample
This sample shows how to change the Visibility property of a UIElement.

## Build the sample

The easiest way to use these samples without using Git is to download the zip file containing the current version (using the link below or by clicking the "Download ZIP" button on the repo page). You can then unzip the entire archive and use the samples in [Visual Studio 2015](https://www.visualstudio.com/wpf-vs).

### Deploying the sample

- Select Build > Deploy Solution.

### Deploying and running the sample

- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging.

11 changes: 2 additions & 9 deletions Elements/WidthProperties/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@

# %Sample% sample

This sample shows how to use the %objective

## Remarks

# Width Properties Comparison Sample
This sample shows the differences among the width-related properties in Windows Presentation Foundation (WPF). The sample exposes four properties on FrameworkElement that describe the width characteristics of an element. These values can conflict and when they do, the MinWidth value takes precedence over the MaxWidth value, which in turn takes precedence over the Width value.

## Build the sample

The easiest way to use these samples without using Git is to download the zip file containing the current version (using the link below or by clicking the "Download ZIP" button on the repo page). You can then unzip the entire archive and use the samples in [Visual Studio 2015](https://www.visualstudio.com/wpf-vs).

### Deploying the sample

- Select Build > Deploy Solution.

### Deploying and running the sample

- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging.

6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -485,13 +485,9 @@ For more info about the programming models, platforms, languages, and APIs demon
</tr>
<tr>
<td><a href="Accessibility">Sticky Notes</a></td>
<td><a href="Accessibility">Traffic Alert</a></td>
<td><a href="Accessibility">Video Text</a></td>
<td><a href="Accessibility">WPF Photo Viewer</a></td>
<td><a href="Accessibility">XAML to HTML Conversion</a></td>
</tr>
<tr>
<td><a href="Accessibility">Video Viewer</a></td>
<td><a href="Accessibility">Video Viewer</a></td>
</tr>
</table>

Expand Down
7 changes: 0 additions & 7 deletions Sample Applications/TrafficAlertDemo/App.config

This file was deleted.

14 changes: 0 additions & 14 deletions Sample Applications/TrafficAlertDemo/App.cs

This file was deleted.

5 changes: 0 additions & 5 deletions Sample Applications/TrafficAlertDemo/App.xaml

This file was deleted.

Loading

0 comments on commit 6debd9e

Please sign in to comment.