瀏覽代碼

180更新

样式分支
taoye 2 年之前
父節點
當前提交
83851d9b06
共有 3 個檔案被更改,包括 15 行新增8 行删除
  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 查看文件

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

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


+ 6
- 7
FryPot_DosingSystem/View/RecipesSendDown.xaml 查看文件

@@ -50,9 +50,8 @@
<RowDefinition/>
</Grid.RowDefinitions>
<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
Margin="5"
VerticalAlignment="Top"
Background="Transparent"
BorderThickness="0"
@@ -60,16 +59,17 @@
ScrollViewer.HorizontalScrollBarVisibility="Disabled">
<ListView.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid
<!--<UniformGrid
HorizontalAlignment="Left"
VerticalAlignment="Top"
Columns="8" />
Columns="8" />-->
<WrapPanel/>
</ItemsPanelTemplate>
</ListView.ItemsPanel>

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

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


+ 8
- 0
FryPot_DosingSystem/View/RecipesSendDown.xaml.cs 查看文件

@@ -24,5 +24,13 @@ namespace FryPot_DosingSystem.View
{
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…
取消
儲存