mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-24 11:55:31 +00:00
noimage fix
This commit is contained in:
parent
5bb940d4d5
commit
af39f43cec
@ -171,6 +171,7 @@ function Invoke-WPFUIElements {
|
|||||||
$image.Width = 40
|
$image.Width = 40
|
||||||
$image.Height = 40
|
$image.Height = 40
|
||||||
$image.Margin = New-Object Windows.Thickness(0, 0, 10, 0)
|
$image.Margin = New-Object Windows.Thickness(0, 0, 10, 0)
|
||||||
|
$image.Source = $noimage
|
||||||
if (-not [string]::IsNullOrEmpty($kaka)) {
|
if (-not [string]::IsNullOrEmpty($kaka)) {
|
||||||
try {
|
try {
|
||||||
$packageinfo = (choco info $entryInfo.choco --limit-output).Split(' ')[0]
|
$packageinfo = (choco info $entryInfo.choco --limit-output).Split(' ')[0]
|
||||||
@ -187,9 +188,8 @@ function Invoke-WPFUIElements {
|
|||||||
} catch {
|
} catch {
|
||||||
$image.Source = $noimage
|
$image.Source = $noimage
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
$image.Source = $noimage
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#$image.Source = $noimage
|
#$image.Source = $noimage
|
||||||
$image.Clip = New-Object Windows.Media.RectangleGeometry
|
$image.Clip = New-Object Windows.Media.RectangleGeometry
|
||||||
$image.Clip.Rect = New-Object Windows.Rect(0, 0, $image.Width, $image.Height)
|
$image.Clip.Rect = New-Object Windows.Rect(0, 0, $image.Width, $image.Height)
|
||||||
|
Loading…
Reference in New Issue
Block a user