mirror of
https://gitee.com/chinware/atomui.git
synced 2024-12-02 11:57:42 +08:00
46 lines
3.5 KiB
XML
46 lines
3.5 KiB
XML
<UserControl x:Class="AtomUI.Demo.Desktop.ShowCase.WatermarkShowCase"
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:atom="https://atomui.net"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:desktop="clr-namespace:AtomUI.Demo.Desktop"
|
|
mc:Ignorable="d">
|
|
<desktop:ShowCasePanel>
|
|
|
|
<desktop:ShowCaseItem Title="Basic" Description="The most basic usage.">
|
|
<Border Height="300" atom:Watermark.Glyph="{atom:TextGlyph 'AtomUI'}" />
|
|
</desktop:ShowCaseItem>
|
|
|
|
<desktop:ShowCaseItem Title="Multi-line watermark"
|
|
Description="Use line-break to specify multi-line text watermark content.">
|
|
<Border Height="200"
|
|
atom:Watermark.Glyph="{atom:TextGlyph 'AtomUI
Happy Working', FontSize=18, Foreground=Gray}" />
|
|
</desktop:ShowCaseItem>
|
|
|
|
<desktop:ShowCaseItem Title="Image watermark"
|
|
Description="Specify the image address via image. To ensure that the image is high definition and not stretched, set the width and height, and upload at least twice the width and height of the logo image address.">
|
|
<Border Height="400">
|
|
<atom:Watermark.Glyph>
|
|
<atom:ImageGlyph Source="/Assets/ATOMUI-LOGO.png" />
|
|
<!-- <atom:ImageGlyph Source="/Assets/avalonia-logo.ico"/> -->
|
|
</atom:Watermark.Glyph>
|
|
</Border>
|
|
</desktop:ShowCaseItem>
|
|
|
|
<desktop:ShowCaseItem Title="Custom configuration"
|
|
Description="Preview the watermark effect by configuring custom parameters.">
|
|
<StackPanel atom:Watermark.Glyph="{atom:TextGlyph 'AtomUI'}">
|
|
<TextBlock TextWrapping="Wrap">
|
|
The light-speed iteration of the digital world makes products more complex. However, human consciousness and attention resources are limited. Facing this design contradiction, the pursuit of natural interaction will be the consistent direction of Ant Design.
|
|
<LineBreak /><LineBreak />
|
|
Natural user cognition: According to cognitive psychology, about 80% of external information is obtained through visual channels. The most important visual elements in the interface design, including layout, colors, illustrations, icons, etc., should fully absorb the laws of nature, thereby reducing the user's cognitive cost and bringing authentic and smooth feelings. In some scenarios, opportunely adding other sensory channels such as hearing, touch can create a richer and more natural product experience.
|
|
<LineBreak /><LineBreak />
|
|
Natural user behavior: In the interaction with the system, the designer should fully understand the relationship between users, system roles, and task objectives, and also contextually organize system functions and services. At the same time, a series of methods such as behavior analysis, artificial intelligence and sensors could be applied to assist users to make effective decisions and reduce extra operations of users, to save users' mental and physical resources and make human-computer interaction more natural.
|
|
</TextBlock>
|
|
<Image Source="/Assets/watermark-sample.png" />
|
|
</StackPanel>
|
|
</desktop:ShowCaseItem>
|
|
|
|
</desktop:ShowCasePanel>
|
|
</UserControl> |