1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- using Prism.Commands;
- using Prism.Mvvm;
- using Prism.Regions;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- namespace PDF_Office.ViewModels.EditTools.Watermark
- {
- public class WatermarkCreateFileContentViewModel : BindableBase,INavigationAware
- {
- private List<string> _opacityList = new List<string>();
- public List<string> OpacityList
- {
- get { return _opacityList; }
- set
- {
- SetProperty(ref _opacityList, value);
- }
- }
- public WatermarkCreateFileContentViewModel()
- {
- }
- private void InitOpacityList()
- {
- OpacityList.Clear();
- for (int temp = 0; temp < 100; temp += 10)
- {
- OpacityList.Add(temp.ToString() + " %");
- }
- }
- public bool IsNavigationTarget(NavigationContext navigationContext)
- {
- return true;
- }
- public void OnNavigatedFrom(NavigationContext navigationContext)
- {
- }
- public void OnNavigatedTo(NavigationContext navigationContext)
- {
- InitOpacityList();
- }
- }
- }
|