Rotate TextBlock /!\ Resize not suported
This commit is contained in:
parent
9a422d4760
commit
5d10cef466
|
@ -96,6 +96,7 @@
|
|||
<Compile Include="ViewModel\EncodeRepas.cs" />
|
||||
<Compile Include="ViewModel\EncodeTypeEvent.cs" />
|
||||
<Compile Include="ViewModel\EncodePlats.cs" />
|
||||
<Compile Include="ViewModel\TextDefilant.cs" />
|
||||
<Compile Include="ViewModel\VM_DashBoard.cs" />
|
||||
<Compile Include="View\FicDetailEvent.xaml.cs">
|
||||
<DependentUpon>FicDetailEvent.xaml</DependentUpon>
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
TextOptions.TextRenderingMode="Auto"
|
||||
Background="{DynamicResource MaterialDesignPaper}"
|
||||
FontFamily="{DynamicResource MaterialDesignFont}"
|
||||
Name="wnd" Closing="wnd_Closing" WindowStyle="None" MouseDown="wnd_MouseDown">
|
||||
Name="wnd" Closing="wnd_Closing" WindowStyle="None" MouseDown="wnd_MouseDown"
|
||||
Loaded="wnd_Loaded">
|
||||
<Window.Resources>
|
||||
<local:DebugDummyConverter x:Key="DebugDummyConverter" />
|
||||
</Window.Resources>
|
||||
|
@ -127,7 +128,7 @@
|
|||
</LinearGradientBrush>
|
||||
</Border.Background>
|
||||
</Border>
|
||||
<TextBlock Style="{StaticResource MaterialDesignTitleTextBlock}" VerticalAlignment="Center" Height="Auto" Text="Absentéisme ou alerte" Grid.ColumnSpan="2" Margin="0,9" />
|
||||
<TextBlock x:Name="Alert" Style="{StaticResource MaterialDesignTitleTextBlock}" VerticalAlignment="Center" Height="Auto" HorizontalAlignment="Stretch" Text="{Binding TextAfficher}" Grid.ColumnSpan="2" Margin="0,9" />
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
|
|
|
@ -64,6 +64,7 @@ namespace ProjetTheAlone.View
|
|||
RepasApresDemain.DataContext = new RepaModel(DateTime.Now.AddDays(2));
|
||||
var a = testQuand.DataContext;
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void wnd_Closing(object sender, System.ComponentModel.CancelEventArgs e)
|
||||
|
@ -86,6 +87,11 @@ namespace ProjetTheAlone.View
|
|||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void wnd_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.Alert.DataContext = new ViewModel.TextDefilant(this.Alert, "UNE ALERTE QUELQUONQUE", 100);
|
||||
}
|
||||
}
|
||||
public class DebugDummyConverter : IValueConverter
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue