mirror of
https://github.com/ZuneDev/ZuneModdingHelper.git
synced 2026-07-27 13:12:21 -07:00
41 lines
2.2 KiB
XML
41 lines
2.2 KiB
XML
<ResourceDictionary
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
x:Class="OwlCore.Wpf.AbstractUI.Themes.AbstractProgressUIElementStyle"
|
|
xmlns:behaviors="http://schemas.microsoft.com/xaml/behaviors"
|
|
xmlns:abstractUI="clr-namespace:OwlCore.AbstractUI.ViewModels;assembly=OwlCore.AbstractUI"
|
|
xmlns:convertvis="clr-namespace:OwlCore.Wpf.Converters.Bools.Visible"
|
|
xmlns:controls="clr-namespace:OwlCore.Wpf.AbstractUI.Controls">
|
|
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="pack://application:,,,/OwlCore.Wpf;component/AbstractUI/Themes/AbstractUIResources.xaml" />
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
<DataTemplate x:Key="DefaultAbstractProgressUIElementTemplate" DataType="abstractUI:AbstractProgressIndicatorViewModel">
|
|
<StackPanel>
|
|
<TextBlock Text="{Binding Title, Mode=OneWay}" ToolTipService.ToolTip="{Binding TooltipText, Mode=OneWay}"
|
|
Style="{DynamicResource AbstractUICollectionTitleStyle}" />
|
|
|
|
<TextBlock Text="{Binding Subtitle, Mode=OneWay}"
|
|
Visibility="{Binding Path=Subtitle, TargetNullValue=Collapsed, Mode=OneWay}"
|
|
Style="{DynamicResource AbstractUICollectionSubtitleStyle}" />
|
|
|
|
<ProgressBar Value="{Binding Value, Mode=OneWay}" Minimum="{Binding Minimum, Mode=OneWay}" Maximum="{Binding Maximum, Mode=OneWay}" IsIndeterminate="{Binding IsIndeterminate, Mode=OneWay}"/>
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
|
|
<Style TargetType="controls:AbstractProgessUIElementPresenter">
|
|
<Style.Setters>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="controls:AbstractButtonPresenter">
|
|
<ContentControl ContentTemplate="{StaticResource DefaultAbstractBooleanTemplate}"
|
|
Content="{Binding}"
|
|
HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" />
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style.Setters>
|
|
</Style>
|
|
|
|
</ResourceDictionary> |