-
Notifications
You must be signed in to change notification settings - Fork 2
Ajout du bouton #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Ajout du bouton #26
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -504,6 +504,7 @@ | |
| </Storyboard> | ||
| </VisualState> | ||
| </VisualStateGroup> | ||
|
|
||
|
|
||
| <!-- VolumeMute states --> | ||
| <VisualStateGroup x:Name="VolumeMuteStates"> | ||
|
|
@@ -733,6 +734,18 @@ | |
| <FontIcon Glyph=""/> | ||
| </AppBarButton.Icon> | ||
| </AppBarButton> | ||
| <AppBarButton x:Name="ChatButton" | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suppression de la ligne en trop |
||
| MediaTransportControlsHelper.DropoutOrder ="5" | ||
| Visibility="Collapsed" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Le bouton est censé être toujours visible, non ? Ligne à supprimer. |
||
| Command="ChatVisibilityChange"> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Voilà comment on écrit une commande généralement :
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dans notre cas, je pense plutôt qu'il faut l'appeler |
||
| <AppBarButton.Icon> | ||
| <FontIcon Glyph="comment"/> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Il me semble qu'il y a une majuscule pour le nom d'une glyph. Donc ce serait |
||
| </AppBarButton.Icon> | ||
| </AppBarButton> | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suppression des lignes en trop |
||
|
|
||
|
|
||
| </CommandBar.PrimaryCommands> | ||
| </CommandBar> | ||
| </Border> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,12 +3,15 @@ | |
| using LivecodingApi.Services; | ||
| using System; | ||
| using System.Collections.Generic; | ||
| using System.Collections.ObjectModel; | ||
| using System.Linq; | ||
| using System.Text; | ||
| using System.Threading.Tasks; | ||
| using Windows.ApplicationModel.Chat; | ||
| using Windows.ApplicationModel.Core; | ||
| using Windows.Media.Core; | ||
| using Windows.UI.Core; | ||
| using Windows.UI.Xaml.Controls; | ||
|
|
||
| namespace Livecoding.UWP.ViewModels | ||
| { | ||
|
|
@@ -21,6 +24,14 @@ public class StreamViewModel : ViewModelBase | |
| #endregion | ||
|
|
||
| #region Properties | ||
| public ObservableCollection<ChatMessage> Messages { get; } = new ObservableCollection<ChatMessage>(); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, en fait la classe ChatMessage est déjà utilisé par l'OS. Il faudra créer une classe dans le dossier Models. Tu peux l'appeler LivecodingChatMessage par exemple. Et il doit y avoir les propriétés spécifiques d'un message, comme par exemple le username, le contenu du message et la date. |
||
|
|
||
| private bool _showChat; | ||
| public bool ShowChat | ||
| { | ||
| get { return _showChat; } | ||
| set { _showChat = value; RaisePropertyChanged(); } | ||
| } | ||
|
|
||
| private string _title; | ||
| public string Title | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ | |
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
| xmlns:lvcontrols="using:Livecoding.UWP.Controls" | ||
| xmlns:usercontrols="using:Livecoding.UWP.UserControls" | ||
| xmlns:controls="using:Windows.UI.Xaml.Controls" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suppression de la ligne en trop |
||
| mc:Ignorable="d" | ||
| DataContext="{Binding Stream, Source={StaticResource Locator}}" | ||
| NavigationCacheMode="Required"> | ||
|
|
@@ -23,11 +24,22 @@ | |
| <lvcontrols:LivecodingMediaTransportControls.HeaderTemplate> | ||
| <DataTemplate> | ||
| <usercontrols:StreamHeaderControl DataContext="{Binding Stream, Source={StaticResource Locator}}" /> | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suppression des lignes en trop |
||
|
|
||
| </DataTemplate> | ||
| </lvcontrols:LivecodingMediaTransportControls.HeaderTemplate> | ||
| </lvcontrols:LivecodingMediaTransportControls> | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suppression des lignes en trop |
||
| </MediaPlayerElement.TransportControls> | ||
|
|
||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suppression des lignes en trop |
||
|
|
||
| </MediaPlayerElement> | ||
|
|
||
|
|
||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suppression des lignes en trop |
||
|
|
||
|
|
||
| </Grid> | ||
| </Grid> | ||
| </Page> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suppression de la ligne en trop