Browse Source

180更新

样式分支
taoye 2 years ago
parent
commit
83851d9b06
3 changed files with 15 additions and 8 deletions
  1. +1
    -1
      BPASmartClient.JXJFoodSmallStation/View/RecipeSettingsView.xaml
  2. +6
    -7
      FryPot_DosingSystem/View/RecipesSendDown.xaml
  3. +8
    -0
      FryPot_DosingSystem/View/RecipesSendDown.xaml.cs

+ 1
- 1
BPASmartClient.JXJFoodSmallStation/View/RecipeSettingsView.xaml View File

@@ -148,7 +148,7 @@
</Grid>--> </Grid>-->
<!--#endregion--> <!--#endregion-->


<ScrollViewer Grid.Row="2">
<ScrollViewer Grid.Row="2" HorizontalScrollBarVisibility="Disabled">
<ListView <ListView
Margin="5" Margin="5"
VerticalAlignment="Top" VerticalAlignment="Top"


+ 6
- 7
FryPot_DosingSystem/View/RecipesSendDown.xaml View File

@@ -50,9 +50,8 @@
<RowDefinition/> <RowDefinition/>
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Button HorizontalAlignment="Right" VerticalAlignment="Center" Content="配方一键下发" Width="110" Height="30" Margin="0,0,10,0" Cursor="Hand" Command="{Binding AllRecipeSetDownCommand}"></Button> <Button HorizontalAlignment="Right" VerticalAlignment="Center" Content="配方一键下发" Width="110" Height="30" Margin="0,0,10,0" Cursor="Hand" Command="{Binding AllRecipeSetDownCommand}"></Button>
<ScrollViewer Grid.Row="1" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" >
<ScrollViewer Name="sv" Grid.Row="1" PreviewMouseWheel="ScrollViewer_PreviewMouseWheel" VerticalScrollBarVisibility="Hidden" >
<ListView <ListView
Margin="5"
VerticalAlignment="Top" VerticalAlignment="Top"
Background="Transparent" Background="Transparent"
BorderThickness="0" BorderThickness="0"
@@ -60,16 +59,17 @@
ScrollViewer.HorizontalScrollBarVisibility="Disabled"> ScrollViewer.HorizontalScrollBarVisibility="Disabled">
<ListView.ItemsPanel> <ListView.ItemsPanel>
<ItemsPanelTemplate> <ItemsPanelTemplate>
<UniformGrid
<!--<UniformGrid
HorizontalAlignment="Left" HorizontalAlignment="Left"
VerticalAlignment="Top" VerticalAlignment="Top"
Columns="8" />
Columns="8" />-->
<WrapPanel/>
</ItemsPanelTemplate> </ItemsPanelTemplate>
</ListView.ItemsPanel> </ListView.ItemsPanel>


<ListView.ItemTemplate> <ListView.ItemTemplate>
<DataTemplate> <DataTemplate>
<Border Margin="5" Background="LightSkyBlue">
<Border Margin="3.5" Width="230" Height="280" Background="LightSkyBlue">
<Grid> <Grid>
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition /> <RowDefinition />
@@ -91,13 +91,12 @@
Name="gr" Name="gr"
Grid.Row="2" Grid.Row="2"
Height="30" Height="30"
Margin="0,0,0,-9"
Background="#00BEFA"> Background="#00BEFA">


<pry:IcoButton <pry:IcoButton
Width="{Binding ElementName=gr, Path=ActualWidth}" Width="{Binding ElementName=gr, Path=ActualWidth}"
Height="{Binding ElementName=gr, Path=ActualHeight}" Height="{Binding ElementName=gr, Path=ActualHeight}"
HorizontalAlignment="Center"
VerticalAlignment="Center"
BorderThickness="0" BorderThickness="0"
Command="{Binding DataContext.RecipeSetDownCommand, RelativeSource={RelativeSource AncestorType=ListView, Mode=FindAncestor}}" Command="{Binding DataContext.RecipeSetDownCommand, RelativeSource={RelativeSource AncestorType=ListView, Mode=FindAncestor}}"
CommandParameter="{Binding RecipeId}" CommandParameter="{Binding RecipeId}"


+ 8
- 0
FryPot_DosingSystem/View/RecipesSendDown.xaml.cs View File

@@ -24,5 +24,13 @@ namespace FryPot_DosingSystem.View
{ {
InitializeComponent(); InitializeComponent();
} }

private void ScrollViewer_PreviewMouseWheel(object sender, MouseWheelEventArgs e)
{
var eventArg = new MouseWheelEventArgs(e.MouseDevice, e.Timestamp, e.Delta);
eventArg.RoutedEvent = UIElement.MouseWheelEvent;
eventArg.Source = sender;
sv.RaiseEvent(eventArg);
}
} }
} }

Loading…
Cancel
Save