Fix build warnings for ProfilePage and ProfileViewModel
This commit is contained in:
parent
39a840fd2d
commit
58a61122ca
@ -1,7 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:viewModels="clr-namespace:CORP_MAUI.ViewModels"
|
||||
xmlns:models="clr-namespace:CORP_MAUI.Models"
|
||||
x:Class="CORP_MAUI.Pages.ProfilePage"
|
||||
x:DataType="viewModels:ProfileViewModel"
|
||||
Title="Профиль">
|
||||
|
||||
<ScrollView>
|
||||
@ -96,7 +99,7 @@
|
||||
|
||||
<FlexLayout BindableLayout.ItemsSource="{Binding Skills}" Wrap="Wrap" AlignItems="Center" AlignContent="Start">
|
||||
<BindableLayout.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<DataTemplate x:DataType="models:Skill">
|
||||
<Frame Padding="10,5" CornerRadius="10" BackgroundColor="{StaticResource Gray100}" HasShadow="False" Margin="0,0,5,5">
|
||||
<Label Text="{Binding Name}" TextColor="{StaticResource Gray800}" FontSize="14"/>
|
||||
</Frame>
|
||||
|
||||
@ -13,7 +13,6 @@ public class ProfileViewModel : INotifyPropertyChanged
|
||||
private User? _user;
|
||||
private bool _isLoading;
|
||||
private string? _localImagePath;
|
||||
private ImageSource? _imageSource;
|
||||
|
||||
public ProfileViewModel()
|
||||
{
|
||||
@ -67,8 +66,6 @@ public class ProfileViewModel : INotifyPropertyChanged
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_imageSource != null) return _imageSource;
|
||||
|
||||
if (!string.IsNullOrEmpty(_localImagePath) && File.Exists(_localImagePath))
|
||||
{
|
||||
try
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user