Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Demo of watermark textbox in windows 8 similar to hint in Android or placeholder in iPhone
C#
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
WaterMarkProject
Readme.txt
WaterMarkProject.sln

Readme.txt

This project demostrate the Watermark TextBox.
For andriod users it's just like "Hint"
For iphone users it's "placeholder" property

Steps for including this in your project.
1. Copy WatermarkTextBox.cs and Theme folder in your project.
2. Include xmlns:watermark="using:WaterMarkProject" in your xaml file where you want to use this control.
Here is the example

<Page
    x:Class="App2.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:App2"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    xmlns:watermark="using:WaterMarkProject">

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        <watermark:WatermarkTextBox WatermarkForeground="Red" Watermark="nope" Width="300" Height="60" FontFamily="Segoe UI" FontSize="30"/>
    </Grid>
</Page>
Something went wrong with that request. Please try again.