mirror of
https://github.com/digital-jellyfish/Virtu.git
synced 2024-11-30 20:49:26 +00:00
14 lines
736 B
Plaintext
14 lines
736 B
Plaintext
|
<UserControl x:Class="Jellyfish.Library.FrameRateCounter" x:Name="frameRateControl"
|
||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
xmlns:jl="clr-namespace:Jellyfish.Library;assembly=Jellyfish.Library">
|
||
|
<UserControl.Resources>
|
||
|
<jl:StringFormatConverter x:Key="StringFormatConverter"/>
|
||
|
</UserControl.Resources>
|
||
|
<TextBlock FontFamily="Consolas" FontSize="12" Foreground="White">
|
||
|
<TextBlock.Text>
|
||
|
<Binding Path="FrameRate" ElementName="frameRateControl" Converter="{StaticResource StringFormatConverter}" ConverterParameter="{}{0:D} fps"/>
|
||
|
</TextBlock.Text>
|
||
|
</TextBlock>
|
||
|
</UserControl>
|