Rotate TextBlock /!\ Resize not suported
This commit is contained in:
		@@ -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>
 | 
			
		||||
 
 | 
			
		||||
@@ -63,6 +63,7 @@ namespace ProjetTheAlone.View
 | 
			
		||||
            RepasDemain.DataContext = new RepaModel(DateTime.Now.AddDays(1));
 | 
			
		||||
            RepasApresDemain.DataContext = new RepaModel(DateTime.Now.AddDays(2));
 | 
			
		||||
            var a = testQuand.DataContext;
 | 
			
		||||
            
 | 
			
		||||
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@@ -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
 | 
			
		||||
    {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user