So, I have this issue and I have got to a point where I just can't seem to solve this problem. To cut a long story short, I narrowed down my WPF hanging issue to a simple thing which is a FontSize in a style.
This code below does not work on my desktop, but does on my laptop.
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<Window.Resources>
<ResourceDictionary>
<Style x:Key="s1" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="10"></Setter>
</Style>
</ResourceDictionary>
</Window.Resources>
<Grid>
<TextBlock Text="adfasdf" Style="{StaticResource s1}"></TextBlock>
</Grid>
</Window>
As you can see, there is nothing fancy at all. And Google does not know the answer either.
Has anyone on this earth had this issue before? Any help would be much appreciated
This code below does not work on my desktop, but does on my laptop.
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<Window.Resources>
<ResourceDictionary>
<Style x:Key="s1" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="10"></Setter>
</Style>
</ResourceDictionary>
</Window.Resources>
<Grid>
<TextBlock Text="adfasdf" Style="{StaticResource s1}"></TextBlock>
</Grid>
</Window>
As you can see, there is nothing fancy at all. And Google does not know the answer either.
Has anyone on this earth had this issue before? Any help would be much appreciated