|
3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 | 4 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
5 | 5 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 6 | + xmlns:i="http://schemas.microsoft.com/xaml/behaviors" |
6 | 7 | xmlns:local="clr-namespace:OnnxStack.UI.Views" |
| 8 | + xmlns:behaviors="clr-namespace:OnnxStack.UI.Behaviors" |
7 | 9 | xmlns:userControls="clr-namespace:OnnxStack.UI.UserControls" |
8 | 10 | mc:Ignorable="d" |
9 | 11 | d:DesignWidth="500" Name="UI"> |
|
51 | 53 | <Label>Inference Steps</Label> |
52 | 54 | <TextBlock Text="{Binding ElementName=SliderInferenceSteps, Path=Value, StringFormat={}{0}}" VerticalAlignment="Bottom" HorizontalAlignment="Right" FontSize="10" Margin="0,0,6,0" FontWeight="Medium" /> |
53 | 55 | </DockPanel> |
54 | | - <Slider Name="SliderInferenceSteps" Value="{Binding SchedulerOptions.InferenceSteps}" Minimum="4" Maximum="100" TickFrequency="1" IsSnapToTickEnabled="true"/> |
| 56 | + <Slider Name="SliderInferenceSteps" Value="{Binding SchedulerOptions.InferenceSteps}" Minimum="4" Maximum="100" TickFrequency="1" IsSnapToTickEnabled="True" SmallChange="0.1" LargeChange="0.1" > |
| 57 | + <i:Interaction.Behaviors> |
| 58 | + <behaviors:SliderMouseWheelBehavior /> |
| 59 | + </i:Interaction.Behaviors> |
| 60 | + </Slider> |
55 | 61 | </StackPanel> |
56 | 62 | <StackPanel Margin="5,0,0,0"> |
57 | 63 | <DockPanel> |
58 | 64 | <Label>Guidance Scale</Label> |
59 | 65 | <TextBlock Text="{Binding ElementName=SliderGuidanceScale, Path=Value, StringFormat={}{0:F2}}" VerticalAlignment="Bottom" HorizontalAlignment="Right" FontSize="10" Margin="0,0,6,0" FontWeight="Medium" /> |
60 | 66 | </DockPanel> |
61 | | - <Slider Name="SliderGuidanceScale" Value="{Binding SchedulerOptions.GuidanceScale}" Minimum="0" Maximum="30" TickFrequency="0.1" IsSnapToTickEnabled="true"/> |
| 67 | + <Slider Name="SliderGuidanceScale" Value="{Binding SchedulerOptions.GuidanceScale}" Minimum="0" Maximum="30" TickFrequency="0.1" IsSnapToTickEnabled="True" SmallChange="0.1" LargeChange="0.1"> |
| 68 | + <i:Interaction.Behaviors> |
| 69 | + <behaviors:SliderMouseWheelBehavior /> |
| 70 | + </i:Interaction.Behaviors> |
| 71 | + </Slider> |
62 | 72 | </StackPanel> |
63 | 73 | </UniformGrid> |
64 | 74 |
|
|
78 | 88 | <Label>Initial Noise</Label> |
79 | 89 | <TextBlock Text="{Binding ElementName=SliderInitialNoiseLevel, Path=Value, StringFormat={}{0:F2}}" VerticalAlignment="Bottom" HorizontalAlignment="Right" FontSize="10" Margin="0,0,6,0" FontWeight="Medium" /> |
80 | 90 | </DockPanel> |
81 | | - <Slider Name="SliderInitialNoiseLevel" Value="{Binding SchedulerOptions.InitialNoiseLevel}" Minimum="-1" Maximum="1" TickFrequency="0.1" IsSnapToTickEnabled="true"/> |
| 91 | + <Slider Name="SliderInitialNoiseLevel" Value="{Binding SchedulerOptions.InitialNoiseLevel}" Minimum="-1" Maximum="1" TickFrequency="0.1" IsSnapToTickEnabled="true" SmallChange="0.1" LargeChange="0.1"> |
| 92 | + <i:Interaction.Behaviors> |
| 93 | + <behaviors:SliderMouseWheelBehavior /> |
| 94 | + </i:Interaction.Behaviors> |
| 95 | + </Slider> |
82 | 96 | </StackPanel> |
83 | 97 |
|
84 | 98 | <StackPanel Margin="5,0,0,0"> |
85 | 99 | <DockPanel> |
86 | 100 | <Label>Strength</Label> |
87 | 101 | <TextBlock Text="{Binding ElementName=SliderStrength, Path=Value, StringFormat={}{0:F2}}" VerticalAlignment="Bottom" HorizontalAlignment="Right" FontSize="10" Margin="0,0,6,0" FontWeight="Medium" /> |
88 | 102 | </DockPanel> |
89 | | - <Slider Name="SliderStrength" Value="{Binding SchedulerOptions.Strength}" Minimum="0" Maximum="1" TickFrequency="0.01" IsSnapToTickEnabled="true"/> |
| 103 | + <Slider Name="SliderStrength" Value="{Binding SchedulerOptions.Strength}" Minimum="0" Maximum="1" TickFrequency="0.01" IsSnapToTickEnabled="true" SmallChange="0.01" LargeChange="0.01"> |
| 104 | + <i:Interaction.Behaviors> |
| 105 | + <behaviors:SliderMouseWheelBehavior /> |
| 106 | + </i:Interaction.Behaviors> |
| 107 | + </Slider> |
90 | 108 | </StackPanel> |
91 | 109 | </UniformGrid> |
92 | 110 |
|
|
0 commit comments