forked from Eppie-io/Eppie-App
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
References: Eppie-io#382
- Loading branch information
Showing
7 changed files
with
93 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
source/Eppie.App/Eppie.App.UI/Eppie.App.UI.Shared/Controls/EditMessageControl.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#if WINDOWS_UWP | ||
using Windows.UI.Xaml; | ||
using Windows.UI.Xaml.Controls; | ||
#else | ||
using Microsoft.UI.Xaml; | ||
using Microsoft.UI.Xaml.Controls; | ||
#endif | ||
|
||
namespace Eppie.App.UI.Controls | ||
{ | ||
public sealed partial class EditMessageControl : UserControl | ||
{ | ||
public string Text | ||
{ | ||
get { return (string)GetValue(TextProperty); } | ||
set { SetValue(TextProperty, value); } | ||
} | ||
|
||
public static readonly DependencyProperty TextProperty = | ||
DependencyProperty.Register(nameof(Text), typeof(string), typeof(MessageControl), new PropertyMetadata(null)); | ||
|
||
public string Html | ||
{ | ||
get { return (string)GetValue(HtmlProperty); } | ||
set { SetValue(HtmlProperty, value); } | ||
} | ||
|
||
public static readonly DependencyProperty HtmlProperty = | ||
DependencyProperty.Register(nameof(Html), typeof(string), typeof(MessageControl), new PropertyMetadata(null)); | ||
|
||
public EditMessageControl() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
source/Eppie.App/Eppie.App.UI/Eppie.App.UI.UWP/Controls/EditMessageControl.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<UserControl x:Class="Eppie.App.UI.Controls.EditMessageControl" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="using:Eppie.App.UI.Controls" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
d:DesignHeight="300" | ||
d:DesignWidth="400" | ||
mc:Ignorable="d"> | ||
|
||
<Grid> | ||
<local:RichTextEditor Html="{x:Bind Html, Mode=TwoWay}" | ||
Text="{x:Bind Text, Mode=TwoWay}" /> | ||
|
||
</Grid> | ||
</UserControl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
source/Eppie.App/Eppie.App.UI/Eppie.App.UI.Uno/Controls/EditMessageControl.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<UserControl x:Class="Eppie.App.UI.Controls.EditMessageControl" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="using:Eppie.App.UI.Controls" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
d:DesignHeight="300" | ||
d:DesignWidth="400" | ||
mc:Ignorable="d"> | ||
|
||
<Grid> | ||
|
||
<!-- ToDo: Control is not implemented --> | ||
<!-- WebView2 should be used in WinUI and WebAssembly --> | ||
|
||
<!--<xamarin:WebView HorizontalAlignment="Stretch" | ||
VerticalAlignment="Stretch" | ||
android:IsTapEnabled="True" | ||
android:Tapped="OnEmailBodyTapped" | ||
extensions:WebViewExtension.StringSource="{x:Bind ViewModel.HtmlBody, Mode=OneWay}" | ||
ios:IsTapEnabled="True" | ||
ios:Tapped="OnEmailBodyTapped" | ||
IsEnabled="{x:Bind ViewModel.LoadingContent, Mode=OneWay, Converter={StaticResource InverseBoolConverter}}" />--> | ||
|
||
<TextBlock HorizontalAlignment="Center" | ||
VerticalAlignment="Center" | ||
Text="Not Implemented" | ||
TextAlignment="Center" /> | ||
</Grid> | ||
</UserControl> |